built-from-source arma crashes my X session

What do you want to see in Armagetron soon? Any new feature ideas? Let's ponder these ground breaking ideas...
Post Reply
User avatar
jessethemidget
On Lightcycle Grid
Posts: 36
Joined: Sun Apr 01, 2007 10:49 pm

built-from-source arma crashes my X session

Post by jessethemidget »

So, being new to linux, I don't really know what I'm talking about but:

I built arma from source with:
ubuntu feisty,
make 3.81
gcc 4.1.2

only ./configure flag:
--prefix="$HOME/dev/arma/test"


two problems:
a) I don't know how to get it to use opengl instead of the alternative... is this bad?

b) when I exit (through the menu) it logs me off (goes to gdm login manager... I think this means it crashes X)

does anyone know what to do? I don't know how to check logs or anything yet...
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

Do other opengl apps work? What happens if you don't play in windowed mode (use $HOME/dev/arma/test/bin/armagetronad -w)? What video card (and driver) do you use?

You can try looking at your X11 logs, usually in /var/log/Xorg.0.log.old, maybe there's a clue in there. As z-man usually says in such cases, armagetron should not be able to crash X11, no application can do that unless the opengl implementation is buggy.

Armagetronad always uses opengl if you build a client, dunno what a) is about…
There's no place like ::1
User avatar
jessethemidget
On Lightcycle Grid
Posts: 36
Joined: Sun Apr 01, 2007 10:49 pm

Post by jessethemidget »

thx, I'll try some stuff...
I think my old x log is too new (restarted a few times since I tried it) so I'll try again and come back.

yes, opengl works on other apps...
I know for sure:
blender
opengl visualizations on xmms.

video card: diamond viper v550 (basically rebranded nvidea tnt 1)
-correctly identified, using the riva tnt drivers...

I'll prolly post back in 10-20 minutes after I look around more,
thx.
User avatar
jessethemidget
On Lightcycle Grid
Posts: 36
Joined: Sun Apr 01, 2007 10:49 pm

Post by jessethemidget »

ok, windowed works ok, doesn't crash X.

here's the backtrace at the end when it crashes in fullscreen:

Code: Select all


Backtrace:
0: /usr/X11R6/bin/X(xf86SigHandler+0x81) [0x80c5d91]
1: [0xffffe420]
2: /usr/lib/xorg/modules/extensions//libGLcore.so(XMesaResizeBuffers+0x29) [0xb5a07d29]
3: /usr/lib/xorg/modules/extensions//libGLcore.so [0xb5a04900]
4: /usr/lib/xorg/modules/extensions//libglx.so [0xb7c3094a]
5: /usr/X11R6/bin/X(compPositionWindow+0x59) [0x80f6039]
6: /usr/X11R6/bin/X(ReparentWindow+0x1a7) [0x807a8a7]
7: /usr/X11R6/bin/X(ProcReparentWindow+0xd5) [0x808c055]
8: /usr/X11R6/bin/X [0x8142531]
9: /usr/X11R6/bin/X(Dispatch+0x19f) [0x808c61f]
10: /usr/X11R6/bin/X(main+0x495) [0x8074785]
11: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc) [0xb7dbeebc]
12: /usr/X11R6/bin/X(FontFileCompleteXLFD+0x1e1) [0x8073ab1]

Fatal server error:
Caught signal 11.  Server aborting
that's ok, I can run in windowed mode.... just curious why...

Thanks for the help.
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Well, the crash comes from libGLcore.so and happens after Armagetron exited (there is no trace of Arma in the backtrace). Maybe we're doing something wrong. Does anyone know of a validating OpenGL implementation? Something like a valgrind for OpenGL?
User avatar
jessethemidget
On Lightcycle Grid
Posts: 36
Joined: Sun Apr 01, 2007 10:49 pm

Post by jessethemidget »

mm... that is kinda weird...

If you want me to post any more logs or anything just ask, I'm kinda curious what this is.

On a side-note, blender used to crash my X-session when I clicked with the center wheel on the mouse (not something you're supposed to do in blender anyway really...) maybe that'll be the same error?

I'll try that and take a look at the backtrace... could be an opengl bug with the way it handles input?
Post Reply