aa under linux freeze
- philippeqc
- Long Poster - Project Developer - Sage
- Posts: 1526
- Joined: Mon Jul 12, 2004 8:55 am
- Location: Stockholm
- Contact:
aa under linux freeze
Hi,
Under gentoo linux, aa (0.2.7) in Internet mode (never in local mode) will crash about 5 min into the game. As all the key and mouse event are trapped by the game, it is impossible to kill it or do anything. It seem it crashed gnome too as the cpu and network meter are no longer updated.
No messages are displayed on the console (that or they are after gnome crashes, and so do not get displayed). The only recover is a cold reboot. Even the sysrequest key do not work [Alt-SysRq R, Alt-SysRq S, Alt-SysRq E, Alt-SysRq I, Alt-SysRq U, Alt-SysRq B, for
r: put the keyboard in raw mode
s: sync the disk
(the rest I'm guessing)
e: unmount the file system
I: interrupt all process
/now just give it a few sec to do it, then)
u: kill all process
b: reboot
or the mnemonic
Raising Skinny Elephants Is Utterly Boring]
Well, all that said, it freeze my system, which makes it quite hard to enjoy and develop. I've tried recompiling all sdl libraries, but to no succes.
What could be done to address the problem, anyone has some recommendations.
-ph
Under gentoo linux, aa (0.2.7) in Internet mode (never in local mode) will crash about 5 min into the game. As all the key and mouse event are trapped by the game, it is impossible to kill it or do anything. It seem it crashed gnome too as the cpu and network meter are no longer updated.
No messages are displayed on the console (that or they are after gnome crashes, and so do not get displayed). The only recover is a cold reboot. Even the sysrequest key do not work [Alt-SysRq R, Alt-SysRq S, Alt-SysRq E, Alt-SysRq I, Alt-SysRq U, Alt-SysRq B, for
r: put the keyboard in raw mode
s: sync the disk
(the rest I'm guessing)
e: unmount the file system
I: interrupt all process
/now just give it a few sec to do it, then)
u: kill all process
b: reboot
or the mnemonic
Raising Skinny Elephants Is Utterly Boring]
Well, all that said, it freeze my system, which makes it quite hard to enjoy and develop. I've tried recompiling all sdl libraries, but to no succes.
What could be done to address the problem, anyone has some recommendations.
-ph
Canis meus id comedit.
I don't know if he's suffering this or not, but SDL does have a nasty habit of locking up X when it's running full screen. I've had this sort of problem with Crimson in the past, actually, and some others. You'd think that certain keyboard interupts would always work, like the CTRL+ALT+F1, but it doesn't, sometimes. I've had AA lock up where these others didn't work, but not consistently and not in any condition where I could even identify symptoms. And since it doesn't happen very often (I think I've seen it twice, and that's it), it's difficult to identify prevaililng conditions.klax wrote:Don't know which is the problem, but have u tried switching to a raw console with CTRL+ALT+F1, login and do a killall -9 armagetronad? This way at least you will not have to reboot...
Also, I don't know if the problem is SDL itself, or if it's something SDL makes possible and the program using SDL does it, but I have noticed similar symptoms in several SDL apps, and it might well be a bug in SDL.
- philippeqc
- Long Poster - Project Developer - Sage
- Posts: 1526
- Joined: Mon Jul 12, 2004 8:55 am
- Location: Stockholm
- Contact:
If I recall properly, even CTRL-ALT-F! where jammed. Yes it really froze all the input and outputs.
but not anymore. I've recompiled a lot of gnome stuff during the night, and now its seems to work fine. The starngest thing, is that I didnt even restart gnome. That is quite something. And SDL was not part of the compile. Even more fun!
Guru did suggest to run it in gdb, and after trying it, I remember why I didnt repeat that.
Strangly, I get very unexpected results with gdb. First, just loading it I get
then trying to run it, I need to make a few continue to bypass an arithmetic exception and a few real-time signals
And that finally give me the menu. That is the 2.7 code, not even my modifs.
Is there a gdb doctor in the house?
-ph
but not anymore. I've recompiled a lot of gnome stuff during the night, and now its seems to work fine. The starngest thing, is that I didnt even restart gnome. That is quite something. And SDL was not part of the compile. Even more fun!
Guru did suggest to run it in gdb, and after trying it, I remember why I didnt repeat that.
Strangly, I get very unexpected results with gdb. First, just loading it I get
Code: Select all
ph@cleopatra armagetronad-map-ph $ gdb armagetronad
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
Breakpoint 1 at 0x811dd93: file tError.cpp, line 49.
(gdb)
Code: Select all
(gdb) run
Starting program: /home/ph/code/armagetronad/armagetronad-map-ph/armagetronad
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
Program received signal SIGFPE, Arithmetic exception.
0x407f104c in ?? ()
(gdb) cont
Continuing.
Program received signal SIG32, Real-time event 32.
0x40223874 in pthread_getconcurrency () from /lib/libpthread.so.0
(gdb) cont
Continuing.
Program received signal SIG32, Real-time event 32.
0x40223874 in pthread_getconcurrency () from /lib/libpthread.so.0
(gdb) cont
Continuing.
Program received signal SIG32, Real-time event 32.
0x40223874 in pthread_getconcurrency () from /lib/libpthread.so.0
(gdb) cont
Continuing.
Is there a gdb doctor in the house?
-ph
Canis meus id comedit.
Here's a pretty old redhat post:
http://sources.redhat.com/ml/gdb/2002-12/msg00055.html
Don't know if this helps or not, but you might try dynamically linking to pthread and see what happens.
http://sources.redhat.com/ml/gdb/2002-12/msg00055.html
Don't know if this helps or not, but you might try dynamically linking to pthread and see what happens.

- philippeqc
- Long Poster - Project Developer - Sage
- Posts: 1526
- Joined: Mon Jul 12, 2004 8:55 am
- Location: Stockholm
- Contact:
My problems are not over,
I realised that when I compiled some of the Gnome Modules, it removed my 3d acceleration. (it was a hand compiled package). That was what allowed everything to work.
But trying the LightCity moviepack, somehow the acceleration came back. (1). So I jump back on the net for a quick run, and yes, once again, a complete freeze.
CTRL-Alt-F# not responding either.
so, to resume:
If (hardware_accel_found & vers > 2.6 & internet_game == true) {
crash_within_five_min = true;
}
To re-install for real my hardware acceleration, I'll recompile lots of DRI code. Hopefully, they will have fix my bug. So more on that later.
-ph
1) It actually cam in a very strange way. When I first tryied the movie pack, I had a stunning 1 to 2 fps. So I remove some options, and badam, 60 fps. Wow! So combined with the change of option, somehow the game found back my hardware acceleration. I have no idea how.
Nota: I'm on xorg 6.7.0-r1 (gentoo package) with a twister-k (savage)
I realised that when I compiled some of the Gnome Modules, it removed my 3d acceleration. (it was a hand compiled package). That was what allowed everything to work.
But trying the LightCity moviepack, somehow the acceleration came back. (1). So I jump back on the net for a quick run, and yes, once again, a complete freeze.
CTRL-Alt-F# not responding either.
so, to resume:
If (hardware_accel_found & vers > 2.6 & internet_game == true) {
crash_within_five_min = true;
}
To re-install for real my hardware acceleration, I'll recompile lots of DRI code. Hopefully, they will have fix my bug. So more on that later.
-ph
1) It actually cam in a very strange way. When I first tryied the movie pack, I had a stunning 1 to 2 fps. So I remove some options, and badam, 60 fps. Wow! So combined with the change of option, somehow the game found back my hardware acceleration. I have no idea how.
Nota: I'm on xorg 6.7.0-r1 (gentoo package) with a twister-k (savage)
Canis meus id comedit.
- philippeqc
- Long Poster - Project Developer - Sage
- Posts: 1526
- Joined: Mon Jul 12, 2004 8:55 am
- Location: Stockholm
- Contact:
its the savage driver made from dri.
Video card is a Savage Pro Twister-K
The driver can be so so in stability, but the interesting factor is that is work well with 2.6, but not with anything else. What has been changed between both version that could cause that.
I'm not blaming aa, I just think its some sort of cascading error.
-ph
Video card is a Savage Pro Twister-K
The driver can be so so in stability, but the interesting factor is that is work well with 2.6, but not with anything else. What has been changed between both version that could cause that.
I'm not blaming aa, I just think its some sort of cascading error.
-ph
Canis meus id comedit.
2.6 here is AA 2.6, not LInux 2.6, I take it?philippeqc wrote:its the savage driver made from dri.
Video card is a Savage Pro Twister-K
The driver can be so so in stability, but the interesting factor is that is work well with 2.6, but not with anything else. What has been changed between both version that could cause that.
I'm not blaming aa, I just think its some sort of cascading error.
-ph
My vid card is a TNT2 with NVidia's closed source driver (that's my shameful confession of the week, running closed source stuff on my computer). How about SDL versions? I'm using AA 2.7 from the RPM on sourceforge, and it's magically working with the SDL I've got installed here.
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6712
- Joined: Thu Dec 18, 2003 7:03 pm
- philippeqc
- Long Poster - Project Developer - Sage
- Posts: 1526
- Joined: Mon Jul 12, 2004 8:55 am
- Location: Stockholm
- Contact:
with A 2.6, everything workLucifer wrote: 2.6 here is AA 2.6, not LInux 2.6, I take it?
with AA (cvs 2.7 and what ever I'm working on or just findling with), + accelerated = crash
crash mostly after just a bit of playing, never more than a few minites
Never crashed in-menu, always in-game. (Remind me of a certain candy commercial)
Code: Select all
ph@cleopatra armagetronad-map-ph $ uname -p -r -i
2.6.7-gentoo-r9 mobile AMD Athlon(tm) 4 1500+ AuthenticAMD
Code: Select all
ph@cleopatra armagetronad-map-ph $ qpkg -I sdl -v
media-libs/libsdl-1.2.7-r1 *
media-libs/sdlmm-0.1.8-r1 *
media-libs/sdl-image-1.2.3 *
media-libs/sdl-sound-1.0.1 *
media-libs/sdl-mixer-1.2.5-r1 *
media-libs/sdl-net-1.2.5 *
media-libs/sdl-gfx-2.0.11 *
media-libs/sdl-ttf-2.0.6 *
-ph
Canis meus id comedit.