-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Crash while importing photos #202
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
Our tests are green. Unclear if it's a known issue with |
Might be due to a fix I added to |
It would be possible that another goroutine now imports a newly created JPEG if your import directory contains non-JPEG files that need to be converted first. However, I'm 90% sure filepath.Walk() does not iterate over files added later. No idea why
|
@casidiablo Tested with 30 files and worked for me, except the expected segmentation faults from |
Even importing 500 files doesn't cause a crash... need more information! Any specific file or file type that causes this? Special filesystem? |
…#202 Signed-off-by: Michael Mayer <michael@liquidbytes.net>
@casidiablo Hope your issue is fixed with this change, if not let us know! Just merged to master, updated Docker image should be available soon. |
I will try once the image is available. |
You can pull and try, only takes ~30 minutes to build and upload. |
@casidiablo Is this fixed too? See #196 |
Downgraded |
Closing this since we received no more feedback. |
Sorry, was busy. Still happening on
|
Seems to be a JPEG file, so not related to converting RAWs? Can you send us a sample to hello@photoprism.org? |
Done. It took me a while to reproduce this with a photo that I could actually share. Also, at first I thought this could be because I was running this on a very small machine, so I moved this to a node with 16GB of ram and 4 cores and it crashed too. |
The error is Fixed that a while ago, but you need to delete your db (will be recreated automatically) or increase the size of this column manually. Check our GitHub issues, you'll find other related tickets. |
See also #227 |
So delete the dbs and run |
Index |
Deleted the db, and it did run indexing for longer without crashing until:
|
Perfect that looks like the original error this ticket was for. Does it always happen with the same file or randomly? If not randomly: can you provide a sample for fixing this? |
Yeah, I will try. Every time it fails it does so with an image that for privacy reasons I can't share. But I will keep trying. Thanks |
Maybe you can clear the sensitive image contents with Photoshop? Probably has to do with format, sidecar files or metadata, not with the image itself. |
Finally found something I can share. Sent to hello@ |
Cool, thank you :) |
It's a known issue with the JPEG implementation of Go: We can improve the error message however. Does it affect many important images for you? |
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
You can search for broken files by using the "error:true" search filter, however there is no "view error details" or "resolve errors" page yet - might do this later! |
Sure... it's fine if some images can't be indexed, as long as there is good logging AND the indexing/importing process does not crash. Otherwise you need to be running and re-running |
I'll check out the crashing, this should not happen... probably because we use a pointer somewhere to access a thumbnail that isn't there. Hope you c F438 an test again later as I didn't have issues with nil pointers for a long time over here. |
@casidiablo Only happens during |
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
@casidiablo Ok, think I found it... might also happen when there is no main file for some reason... for example because conversion failed or it is not readable. Added nil checks and some more logging, hope this works for you! We should think about what should happen when there are only sidecar files or videos. Maybe some of your errors are related to video files? We don't have video support yet, but found a sponsor for #17. |
You can test when the master build is green (soonish): https://travis-ci.org/photoprism/photoprism/builds/643669831 |
OK, I will test it when I can. Thanks for the quick response |
Reported by Cristian: Running import from the web works for a few seconds and then crashes. If I go into the container and manually run
photoprism import
it works for a while and then:The text was updated successfully, but these errors were encountered: