Android SDL2 Startup Crash

0

Can somebody please help me? I have a test SDL2 application which runs on my phone just fine. I took a copy of the sample app and began porting in code from my own application which builds and links just fine.

My application crashes on startup with the below error in the log (last line):

05-22 16:24:48.271 14834-14834/org.libsdl.app D/dalvikvm: Trying to load lib /data/app-lib/org.libsdl.app-13/libSDL2.so 0x42b0fb20
05-22 16:24:48.271 14834-14834/org.libsdl.app D/dalvikvm: Added shared lib /data/app-lib/org.libsdl.app-13/libSDL2.so 0x42b0fb20
05-22 16:24:48.271 14834-14834/org.libsdl.app D/dalvikvm: Trying to load lib /data/app-lib/org.libsdl.app-13/libmain.so 0x42b0fb20
05-22 16:24:48.281 14834-14834/org.libsdl.app A/libc: Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1), thread 14834 (org.libsdl.app)

I have commented out my main() code and replaced this content with the main() from the sample app and it still crashes.

I'm faced with the long-winded task of incrementally including source files and components until I can identify the cause.

Does anybody know of a common cause for this please?

I am doing a clean build and run each time.

android
android-ndk
sdl-2
asked on Stack Overflow May 22, 2016 by SparkyNZ

1 Answer

1

It looks like you have logcat's output filtering on. There should be a stack trace in the output after the 'fatal signal' line, which is visible if you select 'No filters' in logcat. Decoding that stack trace will hopefully make your search a bit narrower.

answered on Stack Overflow May 26, 2016 by Francesca Nannizzi

User contributions licensed under CC BY-SA 3.0