Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-23-2010, 08:39 AM   #1
LQ Newbie
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
Unhappy Strange Crash on Exiting an SVGALIB program

I'm currently working on an embedded system that uses Linux. The embedded system uses a 486 chip, has 32 megs of memory, has 128 megs of solid-state storage and uses a 640x480 LCD screen. The device is using SYSLinux, I'm using Ubuntu and NetBeans as my development platform and C++ as my programming language.

My problem is this. SVGALIB seems to not like to run in 640x480 mode on this device. If I specify 640x480x16 colors, the graphics are stretched off the bottom as if SVGALIB thinks the screen is taller than it actually is.

If I specify 640x480x256 (the mode I would really like to use), everything is fine...until I exit my program, at which point SGVALIB registers a segmentation fault and my screen stops getting updates. The box is still running, I just can't see anything (graphics or text) on the screen. If I ssh into the box and rerun the graphical program, it pops back up successfully.

For the speed of my development cycle, I would like to be able to cleanly exit the software without having to reboot the embedded device. Has anyone seen anything like this and has any idea how I can quickly fix it?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox crash when exiting Thursapr Slackware 8 02-01-2010 03:51 PM
Strange console behavior after exiting X rcrules Linux - Laptop and Netbook 7 05-20-2006 10:39 PM
KDE crash handler when exiting programs Klas Mandriva 9 08-30-2004 12:03 AM
ut2004 makes X crash when exiting the game chil326 Linux - Games 6 08-25-2004 11:23 PM
Origin of strange error messages when exiting KDE... migraine Linux - Newbie 3 06-06-2004 05:07 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration