With mingw-w64 5.4, Krita SegFault when creating or opening files

Alvin Wong alvinhochun+krita at gmail.com
Sun Sep 25 08:42:31 UTC 2016


Never mind, I am an idiot.

It turns out to be a super simple issue, that a DLL failed to get
copied into the `bin` folder, causing kritadefaulttools.dll to fail to
load, and then the crash. I should have seen that in the console
output earlier so I wouldn't waste that much time.

This however, should have been easily detected by Krita when it failed
to load a critical plugin, where it should have warned the user, or
even error out, because there is no way Krita would work without that
"plugin", and this creates cryptic crashes and stack traces that
doesn't help tracking down the problem at all.

2016-09-25 3:54 GMT+08:00 Alvin Wong <alvinhochun+krita at gmail.com>:
> Just for the record, I am getting a SegFault (dereferencing null pointer) at
> this location on the third hit creating a new file.
>
> HEAD is at bcc7d63 with patches.
>
> I am getting this with both x64 and x86 mingw-w64 mingw-builds 5.4 release,
> and also tested with the x64 ones of 5.1.
>
> This doesn't happen with TDM-GCC 5.1, so it has to be caused by different
> behaviours of TDM-GCC releases.
>
> I have yet to try looking into this problem. I'm just wondering if anyone
> has any clue. It's probably either a compiler bug or some non-compliant code
> somewhere which got compiled differently.


More information about the kimageshop mailing list