aa under linux freeze

For all the help you need with Armagetron!
Post Reply
User avatar
philippeqc
Long Poster - Project Developer - Sage
Posts: 1526
Joined: Mon Jul 12, 2004 8:55 am
Location: Stockholm
Contact:

aa under linux freeze

Post by philippeqc »

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
Canis meus id comedit.
User avatar
klax
Project Developer
Posts: 481
Joined: Tue Jun 08, 2004 3:51 pm
Location: Barcelona, Spain
Contact:

Post by klax »

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...
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

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...
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.

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.
User avatar
philippeqc
Long Poster - Project Developer - Sage
Posts: 1526
Joined: Mon Jul 12, 2004 8:55 am
Location: Stockholm
Contact:

Post by philippeqc »

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

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)
then trying to run it, I need to make a few continue to bypass an arithmetic exception and a few real-time signals

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.
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
Canis meus id comedit.
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

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. ;)
User avatar
philippeqc
Long Poster - Project Developer - Sage
Posts: 1526
Joined: Mon Jul 12, 2004 8:55 am
Location: Stockholm
Contact:

Post by philippeqc »

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)
Canis meus id comedit.
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

That sounds like a bad driver. What kind of vid card + driver do you have?

I have occasional unexplained freezes myself, I wonder if it's the driver and not AA?
User avatar
philippeqc
Long Poster - Project Developer - Sage
Posts: 1526
Joined: Mon Jul 12, 2004 8:55 am
Location: Stockholm
Contact:

Post by philippeqc »

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
Canis meus id comedit.
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

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
2.6 here is AA 2.6, not LInux 2.6, I take it?

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.
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

Hmm... It might be the HUD drawing on the screen, as I don't think there are any engine differences that would cause a complete lockup. Can you try disabling the HUD in 2.7 & see if it freezes?
Image
User avatar
philippeqc
Long Poster - Project Developer - Sage
Posts: 1526
Joined: Mon Jul 12, 2004 8:55 am
Location: Stockholm
Contact:

Post by philippeqc »

Lucifer wrote: 2.6 here is AA 2.6, not LInux 2.6, I take it?
with A 2.6, everything work

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 *
which are the latest availble on gentoo (well, 3 days ago, last time I re-synked my ssytem)

-ph
Canis meus id comedit.
Post Reply