aferrero2707 / PhotoFlow

A fully non-destructive photo retouching program providing a complete layer-based workflow including RAW image development.
http://aferrero2707.github.io/PhotoFlow
GNU General Public License v3.0
315 stars 36 forks source link

Arch Linux: crash opening CR2 files #173

Closed Joermungand closed 6 years ago

Joermungand commented 6 years ago

Photoflow crashes (segfaults) when opening CR2 files. I’ve managed to trace the regression down to commit 30bc9c5b2b4a567a307b92816864f831084e9e26 on January 9th. Please let me know what logs you need added.

aferrero2707 commented 6 years ago

I will first try to reproduce the issue with CR2 files I have, and eventually will ask for an example of failing RAW file if I do not see the crash...

Thanks!

aferrero2707 commented 6 years ago

Would you be able to compile photoflow with -DCMAKE_BUILD_TYPE=RelWithDebInfo cmake flag, run the program through gdb and provide me the full backtrace of the crash?

Also, could you provide me an example of failing CR2 file? I tried with few that I have, and I could never observe any crash...

Thanks!

Joermungand commented 6 years ago

Sure, right away. It’ll take a while to compile, though. Meanwhile, an example it crashes with is right here.

Joermungand commented 6 years ago

Here’s the backtrace. Hope it’s useful. bt-full.log

aferrero2707 commented 6 years ago

Could you tell me the version of VIPS (or libvips) that is installed on your system? It might be some bug in VIPS itself...

Joermungand commented 6 years ago

VIPS is currently at 8.6.1. As a matter of fact the crash occurred the same day as VIPS was updated from 8.5.9 – however, I doubt this should be the case, since I also tried downgrading VIPS to 8.5.9 and the result was exactly the same: no crash with Photoflow prior to that commit, crash from then on.

aferrero2707 commented 6 years ago

Interesting... in any case, the culprit seems to be the vips_image_remove() function, so I will dig into it.

aferrero2707 commented 6 years ago

I have just committed some additional diagnostics and, hopefully, a fix. Could you please update your sources and try again?

If it still fails, I would need the full terminal output after the crash...

Thanks!

Joermungand commented 6 years ago

Yeah, looks like that to me. Please let me know if I can help in any way.

Joermungand commented 6 years ago

On it.

Joermungand commented 6 years ago

Crashed again. Here’s the complete log: crash.log. Please let me know if you need the gdb backtrace.

aferrero2707 commented 6 years ago

Please let me know if you need the gdb backtrace.

Yes, please!

Joermungand commented 6 years ago

OK. Here’s the gdb log: bt-full.log. And here’s the terminal output of running gdb: gdb-output.log.

aferrero2707 commented 6 years ago

Thanks! I have hopefully finally found the mistake: the use of a deleted image (out) here.

Please update again, and cross fingers...

Joermungand commented 6 years ago

That would explain it. Updating.

Joermungand commented 6 years ago

Yap. It looks like that was the culprit. Working fine now. Thanks a lot.

aferrero2707 commented 6 years ago

Good job, thanks a lot!

I'm closing the issue.