-
-
Notifications
You must be signed in to change notification settings - Fork 649
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
Abort/crash resizing a sequential image #1396
Comments
Tail processing in shrinkv had an implicit assumption of round-down, but of course we round to nearest. Thanks angelmixu. see #1396
Hey @angelmixu, thanks! Could you try 8.8 HEAD? It should be fixed. The >=0 was an implicit assumption of round down on shrink, but we actually round to nearest, so it's safe to remove the assert. 1345 had dropped off my radar, sorry :( I'll look again. |
This code has gone in 8.9, by the way, there's something much better, so this hacky thing is only temporary. |
Awesome! It's working correctly! Thanks :)
Don't worry! We are not in a hurry, but we'd like to close that soonish and end the migration.
Oh, would you recommend me to use master instead of the current stable branch? |
I wouldn't use master in production, though I use it myself for small things. |
Ok! Thanks again, I'll close the issue :) |
Hi! Here I am again :D
Using the latest 8.8 branch we have a crash (well, it's an g_abort from a g_assert) while processing some stuff. I have managed to get an small example for the crash and the tiff file being used:
93384_1.zip
What I have been seeing is that when resizing and using sequential access, it is asserting in shrinkv.c line 336:
In this case, unused is -4, as or->im->Ysize is 157, shrink->vshrink is 17, and resample->in->Ysize is 2665.
So the assert is false and it calls a g_abort, thus exiting the application.
Is this a bug, or should we avoid sequential access in this kind of images?
Thanks!
BTW, could anyone comment on this: #1345 ?
The text was updated successfully, but these errors were encountered: