Pandora Crash trying to use SDL2 on Pandora


Yoyobuae

Very Active Member
Joined
Oct 23, 2009
Messages
839
I'm using the Code::Blocks PND to compile a small SDL2 program but it crashes when i run it.  I'm using version 2.1.0.12 of codeblocks.pnd.

I've attached the source code of the test program. To compile just do:

cmake .

make

From codeblocks CLI window in the dir where the source files are.

The same exact program runs perfectly on desktop, so I don't know what it could be.

View attachment sdl-test.zip
 
I haven't tested yet, but don't forget windowed mode are not really doable on the Pandora (driver & hack issue).

So, only use fullscreen mode with 800x480 res, and use export "LIBGL_FB=1" before running SDL2 software.
 
What's the error?

It was:

$ ./sdl-test
LIBGL: Initialising glshim
libGL egl backend: libEGL.so
libGL: built on Jan 17 2015 16:53:26
LIBGL: Current folder is:/media/PANCARDA/Source/PandoraPorts/code/testing/sdl-test/build
No valid X11 visual
*** glibc detected *** ./sdl-test: double free or corruption (out): 0x000432f8 ***
======= Backtrace: =========
/lib/libc.so.6[0x40323024]
[0x0]
======= Memory map: ========
00010000-00011000 r-xp 00000000 b3:01 2364340 /media/PANCARDA/Source/PandoraPorts/code/testing/sdl-test/build/sdl-test
00020000-00021000 rw-p 00000000 b3:01 2364340 /media/PANCARDA/Source/Pandora
...snip...
I haven't tested yet, but don't forget windowed mode are not really doable on the Pandora (driver & hack issue).

So, only use fullscreen mode with 800x480 res, and use export "LIBGL_FB=1" before running SDL2 software.

Thanks! That fixed it. I was going to use fullscreen in the actual program anyway, so that's not a problem. ^_^
 
Back
Top