-
Notifications
You must be signed in to change notification settings - Fork 243
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
NDPI: Prevent Null Pointer Exception #3248
Conversation
Closing/reopening to include #3251 |
@dgault is the sample file available somewhere? Should we configure it alongside our QA repository (and potentially make it public with the agreement of the author)? |
I have a copy of the sample file as it no longer appears to be available on the previous link. I will get it configured for the repo tests at least. |
Retested using the sample file uploaded as part of http://lists.openmicroscopy.org.uk/pipermail/ome-users/2019-February/007381.html. The reader initialization via the initial Looking at the server logs, it looks like the change is in the JPEGTurboService in the absence of
|
A similar report has been received in https://forum.image.sc/t/a-couple-of-problems-with-ndpi-files/23194/6 and a sample file has been provided. I will modify this PR to fix both issues and include for 6.0.1 |
After a lot of effort to rewrite the JPEGTurboServiceImpl it turns out that you can just ignore the restart markers being empty and the things are much better. The images should display but there is still an issue with the thumbnails however. |
The thumbnail issue seems to be a problem with the lowest resolution image, Im not sure if its a bug or if the image is as intended. |
At the level of the non-regression tests, the changes to the Tested the import of these two jpeg files into a server. Given the size of the planes, this leads to the generation of pyramids server-side:
Also tested the import of a few NDPI files including the ones uploaded as part of the original bug report - http://lists.openmicroscopy.org.uk/pipermail/ome-users/2018-October/007233.html Without this PR With this PR
Thanks for giving this issue another try to try and get it as part of the 6.2.0 release. Given the review, it looks like more investigation is required so I would not hold the release further. |
I propose to close this in favor of #3505, since all of the files I could find are now configured in https://github.com/openmicroscopy/data_repo_config/pull/442 |
This issue was raised on the mailing list and a sample file has been provided: http://lists.openmicroscopy.org.uk/pipermail/ome-users/2018-October/007233.html
The images failed to open due to a NullPointerException on line 176, with the
markers
variable being null.To test: