-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
App crashes when loading images containing Exif metadata, segmentation fault (Odin) #641
Comments
I was not able to reproduce with your steps, but noticed an issue with metadata too. Steps to reproduce:
It is actually just a warning. The app does not crash. Maybe the crash is related to a different problem? Maybe the same that i reported here: #699
Photos 2.7.3 |
I'm seeing a similar segfault during import and I'm guessing it's due to a "bad" image file, but I'm not sure how to tell which file it's accessing when it crashes? |
@jjg You could try running the app from the terminal with |
I have pushed a PR #781 aimed at making the part of the code that handles photo metadata less likely to crash. |
As you guessed, the output from this didn't provide any clues (same output as running the command directly:
This was more fruitful. Here is the output from the
Thank-you @jeremypw ! |
@jjg Thanks for the further information - looks like its something to do with the date-time in the metadata. The crash is occuring in one of the batch import worker threads. Could you confirm the format of the photos you are importing (JPEG, BMP, RAW etc)? A different piece of code is used depending on the format. |
There are a lot of files and a mixture of formats. No RAW, but probably a little bit of everything else. |
What Happened
When loading images containing Exif metadata app instantly crashes if in Preferences option
Write metadata to files
is toggled off.Expected Behavior
App should handle this without a crash. In perfect case scenario it should show error message to the user or to show at least which image caused error. There are many ways how to handle it. Going through 2k photos one by one to figure out the problem is not a very convenient way to solve errors.
One last note, it is still possible to crash app even with metadata toggle enabled. I had two photos that just did that, but I haven't narrowed down exact cause. My guess is that photos contains some non standard metadata, that Photos app can't handle.
[edit:] I dug deeper and found that two photos that caused a crash had corrupted Exif metadata. By fixing it Photos app could load it. So in summary, Photos app does not handle very well metadata issues.
Steps to Reproduce
Write metadata to files
.Logs
Platform Information
OS: elementary OS 6 Odin x86_64
Host: Aspire VX5-591G V1.08
Kernel: 5.11.0-34-generic
The text was updated successfully, but these errors were encountered: