Cocos2d-x 2.2.6
After a few hours of trying to figure out a strange crash in a game that I am updating, I finally isolated the issue.
Thought I would post what I found in that it might help someone else.
The problem was that I accidentally exported a background image as a PNG from Photoshop and saved it with a .jpg extension.
So it was a file called MainMenuBackground.jpg, but it was actually a PNG image.
iOS had no problem loading the image and the game ran ok.
But on Android I would get the frustrating error:
Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 16905 (Thread-459)
I was able to isolate the crash in logcat to the init method of my main menu scene.
But I couldn’t get any further information.
I then commented out all of the methods that build the main menu in the MainMenu init method and then one-by-one re-added them until I found the problem.