LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-18-2015, 05:16 PM   #1
selfprogrammed
Member
 
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37, 14.2, 15.0
Posts: 659

Rep: Reputation: 156Reputation: 156
XWin hangs on SDL game window


Slackware 13.33, Linux 2.6, NVidia 6200, XFCE4,
SDL 1.2.

Discovered that some SDL games display only black screens when switching to some video mode or window.
These are programs that I used extensively before.
One game will hang XWin when trying to back out of it. It continues to run, logging execution time, while it is hung. I have to sigkill the game from another console, where upon it takes down XWin in a crash.

When one game is started in Window mode (no change of screen video mode) sometimes it shows the graphics, and sometimes it is a black window.
In these cases I can get to the console to kill the process.

The other game will back out (ESC key) from the black screen and will shutdown normally.

I have been trying to figure out what happened.
This is the recent history.

1. Installed some themes, mostly to help with a GTK+ problem. Most of them required Murrine, which Slackware does not have, so I isolated them in a separate directory. Maybe I will be able to get Murrine, or maybe not.
Maybe it has left some Murrine specific settings around in my settings ??

2. Changed the XFCE window theme to xfce-dusk.
Have changed it back again now, but no fix.

3. Changed appearance theme to Raleigh, some others, and then back to Alternate.

4. Added a line to /etc/profile.d/gt4.sh to help
gtk find its styles, to stop message
about GTK+ cannot find style. Commenting this line out again has not fixed the problem.

5. Worked on CRT monitor to fix distortion problem.

6. Have compiled, installed the Glest game and played it a few times. It runs and quits normally.
It uses GL.

I am going to start the tedious process of single stepping through a debug version of the one game.
I have already verified that it hangs the process in the game loop instead of cleanly crashing, this will not reveal the problem exactly.

Any one have any ideas or other experience that would help?
 
Old 01-19-2015, 07:49 PM   #2
selfprogrammed
Member
 
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37, 14.2, 15.0
Posts: 659

Original Poster
Rep: Reputation: 156Reputation: 156
It was suspicious that this trouble showed up right after messing with the themes.
There is a combination of causes, none of which has been the themes.

The monitor has selectively failed only for 800x600 mode. The 1600x1200, and other modes still work. To fix the distortion problem I need a 11 Amp, 400V, FET, that costs $1.50.
That will probably bring back 800x600 mode, but I don't why.

Backdoor changing the default of the one game to 640x400 has made it usable.
It has another problem that is causing a hang, and I don't know more yet. That is why it sometimes fails to display in a window.

Why killing the hung game also kills XWin, I don't know.
XWin should not crash that easily.
 
  


Reply


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
Get window size with tiling window manager in SDL Snark1994 Programming 1 02-24-2013 08:46 PM
[SOLVED] Can I create an Xwin Window from a Console App when Xwin is running? will_kranz Linux - Newbie 7 06-23-2010 01:38 PM
SDL game programming tutorials (link) Josh1billion Programming 18 01-11-2007 06:55 PM
[SDL] Platform game Cornholio Programming 5 03-17-2005 03:39 PM
SDL/game permissions noxious Fedora 0 11-15-2004 01:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:59 PM.

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