Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seg fault with high res 16 bit JPEG2000 resources #220

Open
datschy opened this issue Dec 22, 2021 · 1 comment
Open

Seg fault with high res 16 bit JPEG2000 resources #220

datschy opened this issue Dec 22, 2021 · 1 comment
Assignees

Comments

@datschy
Copy link

datschy commented Dec 22, 2021

We at work encountered segmentation faults, if the requested resolution on 16 bit JP2 resources is very high. I've played a little bit around with builds, one setup using the current head of the master branch (efcf57f), to work with the newer version of Kakadu, and Kakadu 8.2.1 and another one using the iipsrv 1.1 release and OpenJPEG 2.4.0. I created a few simple test images and it seems that the seg faults happen just with 16 bit JP2 files above a certain resolution, independent of the used JP2 library (see table). If we define a smaller supported size in the call, it works (e.g. /<testfile>/full/4500,5500/0/default.jpg).

Test call: /<testfile>/full/full/0/default.jpg

file file size width height channels bits raw size success kdu success opj
test01.jp2 2.8 KB 5000 7000 3 16 200.3 MB yes yes
test02.jp2 4.8 KB 8000 10000 3 16 457.8 MB yes yes
test03.jp2 6.8 KB 9000 11000 3 16 566.5 MB no no
test04.jp2 7.0 KB 10000 12000 3 16 686.6 MB no no
test05.jp2 11.1 KB 12000 16000 3 16 1098.6 MB no no
test06.jp2 8.9 KB 16500 22000 3 8 1038.6 MB yes yes
test07.jp2 11.8 KB 20000 25000 3 8 1430.5 MB yes yes
@ruven ruven self-assigned this Jan 7, 2022
@ruven
Copy link
Owner

ruven commented Jan 14, 2022

This is probably a memory issue. What do you see in the iipsrv log file? If so, you should see a line which says "Error: Unable to allocate memory" for the images that don't work. The sizes are not so huge, so check whether you have any user memory limits set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants