Page 1 of 1

Ubuntu + Blending = Crash

Posted: Sat Sep 25, 2010 2:30 pm
by alezakos
I recently installed BZFlag 2.0.13 on Ubuntu 10.04 (Linux 2.6.32-24), however if I turn on the "Blending" option, after some seconds the game crashes. This doesn't happen if I turn the setting off.

Re: Ubuntu + Blending = Crash

Posted: Sat Sep 25, 2010 2:33 pm
by joevano
Sounds like it is probably a video driver issue

Re: Ubuntu + Blending = Crash

Posted: Sat Sep 25, 2010 2:40 pm
by blast
Did you compile from source? Or is this the version from PlayDeb.net?

Re: Ubuntu + Blending = Crash

Posted: Sat Sep 25, 2010 2:41 pm
by alezakos
user@user-desktop:~$ bzflag -d
*********************************WARN_ONCE*********************************
File radeon_swtcl.c function r100_swtcl_flush line 323
Rendering was 1 commands larger than predicted size. We might overflow command buffer.
***************************************************************************
BZFlag version: 2.0.13.20090909-DEVEL-linux-gnu-SDL
BZFlag protocol: 0026
OpenGL vendor: Tungsten Graphics, Inc.
OpenGL version: 1.3 Mesa 7.7.1
OpenGL renderer: Mesa DRI R100 (RV100 5159) 20090101 x86/MMX+/3DNow!+/SSE NO-TCL DRI2
Depth Buffer: 24 bitplanes
LIBCURL version: libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15
Scaling texture from 128x125 to 128x128
drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream. See dmesg for more info.

Re: Ubuntu + Blending = Crash

Posted: Sat Sep 25, 2010 2:43 pm
by blast
Okay, so it isn't 2.0.16 then? And that certainly looks like an issue with your video driver. Does dmesg have more information?

Re: Ubuntu + Blending = Crash

Posted: Sat Sep 25, 2010 2:44 pm
by alezakos
blast wrote:Okay, so it isn't 2.0.16 then?
mistake...

Re: Ubuntu + Blending = Crash

Posted: Sat Sep 25, 2010 2:46 pm
by blast
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=563257
This is kernel bug and is fixed with kernel commits in 2.6.34-rc1:
7a9f0dd9c49425e2b0e39ada4757bc7a38c84873 drm: Add generic multipart buffer.
b4fe945405e477cded91772b4fec854705443dd5 drm/radeon: Fix memory
allocation failures in the preKMS command stream checking.
55a5cb5d594c18b3147a2288b00ea359c1a38cf8 drm/radeon: Fix printf type
warning in 64bit system.
So maybe see if there's a newer kernel version?

Re: Ubuntu + Blending = Crash

Posted: Sat Sep 25, 2010 7:30 pm
by Cobra_Fast
Ubuntu ships with a decent update tool, so you should use it in case you were not compiling the driver from original source. Then you should do both: Updating the kernel and recompile the latest driver version to be 100% suitable for your new kernel.

Additionally:
alezakos wrote:OpenGL vendor: Tungsten Graphics, Inc.
OpenGL version: 1.3 Mesa 7.7.1
OpenGL renderer: Mesa DRI R100 (RV100 5159) 20090101 x86/MMX+/3DNow!+/SSE NO-TCL DRI2
This indicates that you are not running on full 3D accelleration, you may need to edit your x.org configuration by hand to get it to pick the correct driver.

Re: Ubuntu + Blending = Crash

Posted: Sun Sep 26, 2010 1:41 am
by blast
What part of that indicates they are not using 3D acceleration? Looks like it's using the DRI driver for their ATI card to me.

Re: Ubuntu + Blending = Crash

Posted: Sun Sep 26, 2010 8:17 pm
by Cobra_Fast
From my experience Mesa isn't the optimate solution for an ATi card. If the proprietary ATi driver loaded fine it shows something like "ATi Radeon ..." but my memories might be false, it's been too long when I had those problems. All I remember was that certain things didn't work with Mesa on my Radeon card.

Re: Ubuntu + Blending = Crash

Posted: Sun Sep 26, 2010 10:56 pm
by blast
Well, R100 refers to older ATI cards. ATI does not provide Linux drivers for it's older graphics cards. Seems like their site only shows a Linux driver when you pick the Radeon 8500 series or higher.

Also..
http://en.wikipedia.org/wiki/Radeon#Linux
The proprietary Linux drivers could support R200 (Radeon 8500-9200, 9250) chips.
...
In 2009, the Catalyst driver officially dropped support for R500 and older chips, the FOSS driver being deemed stable and complete enough. The last driver release supporting older architectures is Catalyst 9.3.
and
http://dri.freedesktop.org/wiki/Radeon# ... 4e1001a0d9

Edit: Here's a bug reports that relate to this issue. Seems like the one I linked to initially might be a different issue:
https://bugs.launchpad.net/ubuntu/+sour ... bug/557266

Re: Ubuntu + Blending = Crash

Posted: Tue Oct 12, 2010 3:38 pm
by alezakos
With Ubuntu 10.10 and the new kernel, BZFlag crashes just when I minimize it and I reopen it again. IT ALSO crashes with blending on and when I resize the bzflag window. Crazybot players, no more bots.

In debug x2 mode, this is standard output:
bzdebug.txt
Standard output
(1.49 KiB) Downloaded 159 times
and this is standard error:
bzdebug_errors.txt
Standard error
(398 Bytes) Downloaded 138 times

Re: Ubuntu + Blending = Crash

Posted: Tue Oct 12, 2010 3:44 pm
by alezakos
UPDATE! For some reason, BZFlag is OK with older kernel.

Re: Ubuntu + Blending = Crash

Posted: Tue Oct 12, 2010 8:02 pm
by joevano
alezakos wrote:UPDATE! For some reason, BZFlag is OK with older kernel.
Kernel bug? Seems to be the issue that was identified...

Re: Ubuntu + Blending = Crash

Posted: Fri Oct 15, 2010 3:02 pm
by alezakos
Solution?

Re: Ubuntu + Blending = Crash

Posted: Fri Oct 15, 2010 5:45 pm
by joevano
Fix the kernel bug? This is not an issue with BZFlag.

Re: Ubuntu + Blending = Crash

Posted: Fri Oct 15, 2010 6:08 pm
by Cobra_Fast
Or use a working kernel.
Or wait for an update.
Or play with crashes but the current kernel.

Re: Ubuntu + Blending = Crash

Posted: Fri Oct 15, 2010 6:57 pm
by blast