-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Segfault at import #36
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
Comments
Looks like an issue with color indexing, see #7 Guess when github.com/RobCherry/vibrant is gone, the issue will be gone... |
Thanks for having a look! I tried to import only the photo that caused the segfault in a new docker instance, and the crash occurred again. |
@lastzero , @gmelchett reproducing
result:
But also I think it's better to be handling those errors properly. |
Would https://github.com/disintegration/imaging also be affected? This is what we're using for resizing etc... |
I checked github.com/disintegration/imaging is affected because photoprism/internal/photoprism/thumbnails.go Line 103 in 6844c5f
but it maynot cause segfalt if you care failed safe the error that is catches next statements. |
So ultimately that means we need to replace "image/jpeg" or we can not import certain images as the issue was closed by the golang team. Any opinions / alternatives? |
Looking at golang/go/issues/10447 it looks like the cause could be that the image is truncated, and indeed my photo is truncated. In Firefox (62), the bottom lines are white, while in Gimp (2.10) only the down right corner isn't correct. |
So ignoring it would be OK until we find a better solution? |
Yes, it would be OK. However, it would be nice it photoprism didn't crash upon such images. Ignoring them would be prefered, maybe copy/move these faulty images to a special folder with faulty images? |
Of course it shouldn't crash later, but for now this is what we want. Fail fast. Otherwise, nobody would have complained and it might not have gotten any attention. Now we know there is a problem. |
Think we can close this. |
A fresh docker install (commit 6844c5f) crashed
when importing about 3000 photos.
The text was updated successfully, but these errors were encountered: