Closed hi5 closed 3 months ago
Thank you for filing this issue, @hi5 ! It took me some time to figure out that this only happens when loading an image by double-clicking in Windows Explorer (or elsewhere), and having PhotoDemon set to single-session mode.
When an image is double-clicked in Explorer, a new instance of PhotoDemon is launched. That new instance then checks to see if any other instances of PhotoDemon are open, and if they are, the new instance forwards the clicked file information to the previous app instance, then shuts itself down (because the first instance is going to load the image instead).
Unfortunately, before shutting down, the temporary instance of PhotoDemon was trying to unload the newly implemented PDF library.... but that library had never been loaded into that instance because the app was just going to shut down anyway (because the other PhotoDemon instance was handling the actual image load).
Trying to unload a library that was never loaded in the first place caused the silent crash. Argh 🤦
I'm so glad you caught this problem. Thanks again!
Glad you were able to find the problem and solve it!
Version information
PhotoDemon 9.2 pre-alpha (build 339), windows 10 - it happened with a few version before too I think but didn't register to me that it was with the 2nd and more images loaded (I often only work on one image at a time)
Describe the bug
I start PD, open a PNG file, that works. Now I open another PNG file and because I still have procdump installed I started noticing that when loading more than one file procdump generated crash dumps.
PD does NOT crash and opens the PNG file just fine, I can open more PNG files, each generating a crash dump but it opens the files just fine and PD doesn't crash. However I do see the following errors appear in the Windows Event Viewer and these WER logs
WER REPORT
How can I reproduce the bug?
Open a PNG file, open another PNG file, and then check Windows Event Viewer to see if you see ERRORs
Expected behavior
No errors to appear :)
Debug logs
Debug log DebugReport_0.zip
Edit: also on Windows 11 I can see the above errors and wer appear