Jump to content
  • Advertisement
Sign in to follow this  
risq

SDL code segfaults on EEEPC

This topic is 3739 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I installed SDLdev on my EEEPC and try to run several SDL code, all with the same result: segfaults on the second programm start. for instance i took the SDL fireworks demo (http://www.libsdl.org/projects/fire/) configure make ,/fire -> runs fine no i recompiled make ./fire Segmentation fault This WONT happen on any other plattform i used, only on the EEEPC Xandros OS Any clues/hints ?

Share this post


Link to post
Share on other sites
Advertisement
Maybe some uninitialized pointer somewhere I'd guess. When something like this happens to me I try running the program with valgrind.

Share this post


Link to post
Share on other sites
hm, i dont have any experience with valgrind.

i wont agree to the pointer theory, it doesnt explain why its happening on the xandros OS eeepc with every SDL programm i tried, and i never realized that programm on another plattform. so the problem is in someway plattform-dependend

Share this post


Link to post
Share on other sites
I've had the same problem, and it turned out to be something with the windowclass name inside the executable. To fix this, you have to add the following line before SDL_Init():
SDL_putenv("SDL_VIDEO_X11_WMCLASS=littlegptracker");

Also make sure that you specify the eeePC native resolution (800x480) when calling SDL_SetVideoMode for a fullscreen window.

Share this post


Link to post
Share on other sites
thx a lot !

that works for me perfect.

can anyone explain why this is necessary ..what it does in detail ?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!