tannerhelland / PhotoDemon

A free portable photo editor focused on pro-grade features, high performance, and maximum usability.
https://photodemon.org
Other
1.3k stars 192 forks source link

[BUG] - PhotoDemon 9.2 pre-alpha (build 225) - loading certain PNG closes program #507

Closed hi5 closed 6 months ago

hi5 commented 6 months ago

Version information

PhotoDemon 9.2 pre-alpha (build 225) running on Windows 10 and Windows 11

Describe the bug

When I open certain png files, doesn't matter how (file open, drag drop, path-to\PhotoDemon.exe file.png) photodemon automatically closes. This happened with the build before this one (I think 209) and the 225 build.

How can I reproduce the bug?

Try to open the attached PNG (01.png, just a 1000x1000px single red color png, but it happens with multiple PNGs, this was the most basic one I could create). The debug log last line !EXT! | LCMS returned error #13: Mismatched alpha channels

PNG 01.zip

Expected behavior

Just being able to open the PNG file for editing :)

Debug logs

Debug.zip

Note: this doesn't happen with ALL png files, just some.

tannerhelland commented 6 months ago

Thank you so much for catching and reporting, @hi5 ! This bug was caused by recent changes to a third-party library PhotoDemon uses. I have tracked down the cause and fixed it, and will upload a new nightly build shortly.

Thank you again.

hi5 commented 6 months ago

That was fast! Fix confirmed, works correctly now with build 227