[Interest] [Qt-interest] Fwd: Application crashes on Mac OS X when loading a pixmap

NoRulez norulez at me.com
Tue Nov 29 11:52:36 CET 2011


Thanks, I'll try it or to find the variable

But the strange thing is, that it would work when I don't use the "codesign" utility (which is required to submit to the Mac App Store).

-----Ursprüngliche Nachricht-----
Von: Bo Thorsen [mailto:bo at sonofthor.dk] Im Auftrag von Bo Thorsen
Gesendet: Dienstag, 29. November 2011 11:43
An: norulez at me.com
Cc: Harri Pasanen; Qt Project MailingList
Betreff: Re: [Interest] [Qt-interest] Fwd: Application crashes on Mac OS X when loading a pixmap

Hi all,

I don't know if this is the same problem on Mac as I hit a few weeks ago on Linux at a customer. I also saw some completely weird crashes in png loading that I have never seen before. I finally traced this, but it took a while.

If you have any variable called crc32, you might cause a crash because png also has a symbol with this name in the library. On some, not all, of the Linux boxes the linker chose to link the global crc32 from the customer code to the function pointer in png, so when the png libary uses the function pointer, it crashes.

If you do have a crc32 symbol in your code, try renaming it.

Bo Thorsen,
Fionia Software.

-- 

Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk




More information about the Interest mailing list