3D games crashed with voodoo3

Bug #44112 reported by Javier Jardón
16
Affects Status Importance Assigned to Milestone
X.Org X server
Fix Released
High
xserver-xorg-video-tdfx (Ubuntu)
Fix Released
High
Ubuntu-X

Bug Description

Binary package hint: libsdl1.2debian

All 3D-acelerated games crash with this message:
"Fatal signal: Segmentation Fault (SDL Parachute Deployed)"

I get a lot of warning messages too:
libGL warning: 3D driver claims to not support visual 0x25
libGL warning: 3D driver claims to not support visual 0x26
libGL warning: 3D driver claims to not support visual 0x29
libGL warning: 3D driver claims to not support visual 0x2a
libGL warning: 3D driver claims to not support visual 0x2d
libGL warning: 3D driver claims to not support visual 0x2e
libGL warning: 3D driver claims to not support visual 0x31
libGL warning: 3D driver claims to not support visual 0x32
libGL warning: 3D driver claims to not support visual 0x35
libGL warning: 3D driver claims to not support visual 0x36
libGL warning: 3D driver claims to not support visual 0x39
libGL warning: 3D driver claims to not support visual 0x3a
libGL warning: 3D driver claims to not support visual 0x3d
libGL warning: 3D driver claims to not support visual 0x3e
libGL warning: 3D driver claims to not support visual 0x41
libGL warning: 3D driver claims to not support visual 0x42

I have DRI activated:
$:glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes

For example in armagetron I can play one match, but then the game crash.

Tags: video
Changed in xserver-xorg-driver-tdfx:
assignee: nobody → ubuntu-x-swat
Revision history for this message
Jan Klopper (janklopper-innerheight) wrote :

What kind of voodoo card are you using? i might be able to test this since i have a bunch of voodoo cards here.

Revision history for this message
Javier Jardón (jjardon) wrote :

I have a Voodoo3 2000 card

Revision history for this message
Flavio Tordini (zarlino) wrote :

I can confirm this problem on Kubuntu 6.06 with a 3Dfx Interactive, Inc. Voodoo 3 (rev 01)
Same warnings, same crash

Javier Jardón (jjardon)
Changed in xserver-xorg-driver-tdfx:
status: Unconfirmed → Confirmed
Revision history for this message
Javier Jardón (jjardon) wrote :

Try to use libsdl1.2debian-alsa instead libsdl1.2debian

Revision history for this message
Yusuf Kaka (yusufk) wrote :

Same problem, using Voodoo Banshee AGP.

Revision history for this message
Kossovics Balázs (kossovics) wrote :

Same problem with Voodoo3 3000, 16bit, 1280x1024

Revision history for this message
In , Hebertrich (hebertrich) wrote :

Gentoo bugs asked me to move this upstream :
http://bugs.gentoo.org/show_bug.cgi?id=140471

What happens is this.DRM direct rendering is showing
enabeled for the voodoo3 AGP card and has the expected
1360 fps after the update to modular X v 7.0 ( stable )
The other voodoo3 pci ( i got dual head ) is not accelerated
and has also the expected 250 fps or so with glxgears.
But any application using GL crashes with "Segmentation
fault". ( on the accelerated card, they work but real slow
on the pci card )
I have managed to produce a backtrace for TuxRacer

(gdb) bt
#0 0xb79cc237 in free () from /lib/libc.so.6
#1 0xb76ba40d in _mesa_free () from /usr/lib/xorg/modules/dri/tdfx_dri.so
#2 0xb76ba470 in _mesa_align_free () from
/usr/lib/xorg/modules/dri/tdfx_dri.so
#3 0xb76e0f8d in _mesa_free_texmemory () from
/usr/lib/xorg/modules/dri/tdfx_dri.so
#4 0xb76e0fde in _mesa_free_texture_image_data ()
   from /usr/lib/xorg/modules/dri/tdfx_dri.so
#5 0xb76e0f21 in _mesa_delete_texture_image () from
/usr/lib/xorg/modules/dri/tdfx_dri.so
#6 0xb76e2875 in _mesa_delete_texture_object ()
   from /usr/lib/xorg/modules/dri/tdfx_dri.so
#7 0xb7665780 in _mesa_halve2x2_teximage2d () from
/usr/lib/xorg/modules/dri/tdfx_dri.so
#8 0xb76e1f90 in _mesa_DeleteTextures () from
/usr/lib/xorg/modules/dri/tdfx_dri.so
#9 0x080845c3 in ?? ()
#10 0x00000001 in ?? ()
#11 0x08852f58 in ?? ()
#12 0xbf8bca04 in ?? ()
#13 0xbf8bca08 in ?? ()
#14 0xb79cc272 in free () from /lib/libc.so.6
#15 0x0804b3f1 in ?? ()

Im lost .. i tried to upgrade to xorg 7.1 the results
were even less brilliant. glxgears just showed a black
screen , no gears .. so i downgraded to 7.0

Help will be appreciated.Tell me what you need and ill
do my best :)

Thank you.

Revision history for this message
Javier Jardón (jjardon) wrote :

LIBGLIDE PACKAGE USES WRONG FILES

See bug #44115

Revision history for this message
In , Hebertrich (hebertrich) wrote :

with 7.1 things are even worse ..
i reinstalled the distro from scratch.
i installed 7.0 ( latest stable )
that didnt work .. so i went to 7.1 and then i experienced
complete server crashes.Cant even make a core dump file.
so ..
I added option aiglx off in the xorg conf and the crashes
leave me with a froxen screen but at least i can get out of X
kill the application and come back in and pick up where i left
off . Still cant produce any core dumps though .

I really could use some help here.

Revision history for this message
In , Davcen (davcen) wrote :

Hello, same problem here, with a Gentoo x86 system
Using
* xorg-7.0
* mesa-6.4 (i also tried mesa-6.5, with same results)
on a 3Dfx Voodoo3 2000

I'm trying to run Vavoom Engine (www.vavoom-engine.com)

This is a backtrace:

(gdb) bt
#0 0xb7b5bb39 in free () from /lib/tls/libc.so.6
#1 0xb6ae53ed in _mesa_free (ptr=0x8001) at imports.c:116
#2 0xb6ae54c0 in _mesa_align_free (ptr=0x8001) at imports.c:200
#3 0xb6b03aed in _mesa_free_texmemory (m=0x8001) at teximage.c:67
#4 0xb6b040d0 in _mesa_free_texture_image_data (ctx=0x84ad0e8,
texImage=0x8ebeba0)
    at teximage.c:647
#5 0xb6b06d08 in _mesa_TexImage2D (target=3553, level=0, internalFormat=4,
width=128,
    height=128, border=0, format=6408, type=5121, pixels=0x8001) at
teximage.c:2314
#6 0x08160b53 in VOpenGLDrawer::WorldDrawing (this=0xb6ce3020) at
gl_poly.cpp:524
#7 0x080b7591 in R_RenderWorld () at r_bsp.cpp:417
#8 0x080bda4d in R_RenderPlayerView () at r_main.cpp:620
#9 0x080f6603 in SCR_Update () at screen.cpp:494
#10 0x080925ce in Host_Frame () at host.cpp:353
#11 0x08158fa4 in main (argc=32769, argv=0x8001) at sys_sdl.cpp:685
#12 0xb7b0df14 in __libc_start_main () from /lib/tls/libc.so.6
#13 0x0804d6f1 in _start ()
(gdb)

I hope it helps :)

Revision history for this message
In , Lam (lam-lac) wrote :

This one was easy.

As we can see, _mesa_DeleteTextures( ) calls _mesa_free_texmemory( ), which
expects texImage->Data to be allocated using _mesa_align_malloc( ).
_mesa_align_free( ) expects texImage->Data to be prepended by one word with
actual address to pass to real free( ), but it's not, because tdfx driver uses
stock _mesa_malloc( ) without the alignment part. The bytes before
texImage->Data are garbage, so there's no way it could not crash.

I'll attach a patch in a moment, after I do some more testing (I mean play
QuakeForge, at last).

Oh, my card is PCI Voodoo3 2000. The bug happens in Mesa 6.4.2 (from FC5) and
6.5 (from AIGLX for FC5, both rebuilt for Xorg 7.0 with tdfx_dri.so enabled).
The patch will be against 6.5, because that's what I ended up with.

Revision history for this message
In , Lam (lam-lac) wrote :

Created an attachment (id=6640)
The patch for Mesa 6.5 and tdfx_dri crash

Works for me.

Revision history for this message
Rodrigo Novo (rodarvus) wrote :

Please test this again with the current (and up-to-date) development version of Ubuntu, as fixes to this problem were commited recently.

Also, this bug is by no means critical. It is not related to a critical package and doesn't implies data loss.

Changed in xserver-xorg-video-tdfx:
importance: Critical → High
Revision history for this message
In , Lam (lam-lac) wrote :

Ouch, all my work for nothing, this was fixed in Mesa CVS long time ago:

http://webcvs.freedesktop.org/mesa/Mesa/src/mesa/drivers/dri/tdfx/tdfx_tex.c?r1=1.32&r2=1.33&diff_format=u

(as ajax told me on irc)

Revision history for this message
In , Hebertrich (hebertrich) wrote :

guess we needed to ask the right person :)
unfortunately .. i have gone for a newer card since
i reported the bug.Still not fixed in gentoo though. So
Thank you for the solution/fix.

It's very appreciated.

Richard Hebert

Revision history for this message
Sod75 (launchpad-net-vernaillen) wrote :

I confirm this bug on a voodoo banshee.
Direct rendering is enabled.
I tried the upgrading to a later version by using the edgy repositories. It upgraded the xorg.core, xorg.tdfx (and all others) , glide3 , and installed a new gcc package.
However i could get even less to run ,glxgears and glxinfo just hang after the libGL "warning: 3D driver claims to not support visual 0x42" messages
Full upgrade (in case I missed anything) of all available packages did not help either.
I noticed nothing of value in the Xorg log file....

If there's a cleaner way of testing what's in development just let me know....

Revision history for this message
Francisco L. Fernandez (flufetor) wrote :

Same here with a voodo banshee 16 MB PCI / Banshe 8 MB AGP / voodo3 3000 AGP.
I think the problem is mesa-dri related. At first I thought about a mesa-dri and SDL interaction issue (SDL games crash with an "SDL parachute deployed message"), but after compiling glquake under Dapper (that not makes use of SDL), it crashed the same way with signal 11.
I have tried with other distros (FC3, Slackware 10.x) and the same problem. The last working OpenGL configuration that I could get was with Xorg 6.8.2 and mesa 6.2.1.
The bug has been reported on the dri mailing lists:
http://sourceforge.net/mailarchive/forum.php?thread_id=28752979&forum_id=6511

but no one to date has opened a bug in freedesktop stating clearly the problem.

Is there any person out there that has sucessfully run dri opengl with Xorg 6.9/7 and up, with a voodoo 3 / Banshee?.

Revision history for this message
Sod75 (launchpad-net-vernaillen) wrote :

check bug here:
https://bugs.freedesktop.org/show_bug.cgi?id=7574 (from following above link)
, supposedly this is fixed in CVS for some time already...
Anyone care to detail how we get this to work without too much hassle or even better who can make an updated package for (K)ubuntu ?

Revision history for this message
Sod75 (launchpad-net-vernaillen) wrote :

Ok I fixed it on my installation(kubuntu dapper 6.06.1) by applying the patch from CVS manually.
Here's what I did (more or less) for those interested in doing the same. It's from memory so you might need to fiddle with it a bit.

sudo apt-get install apt-src
sudo apt-src install libgl1-mesa
(this downloads the source files in the current dir, so don't just do in anywhere)
cd ./mesa-6.4.1/src/mesa/drivers/dri/tdfx/
apply patch from here : http://webcvs.freedesktop.org/mesa/Mesa/src/mesa/drivers/dri/tdfx/tdfx_tex.c?r1=1.32&r2=1.33&diff_format=u
cd ../../../../..
make linux-dri
(i had to make a symlink from /usr/X11R6/bin/makedepend to /usr/bin/makedepend, otherwise smooth compile)
cd lib
mv /usr/lib/dri/tdfx_dri.so /usr/lib/dri/tdfx_dri.so.original
cp ./tdfx_dri.so /usr/lib/dri/tdfx_dri.so

that's it ! no restart needed !
I hope this helps some people run their critical apps(*cough*games*cough* :) ) again, or better help someone make this in an updated package....

Stan Vernaillen

Revision history for this message
Kossovics Balázs (kossovics) wrote :

http://people.inf.elte.hu/kosi/mesa/
Nobody is responsible for any damage in your computers and any other loss derived from the use of this packages

Revision history for this message
Francisco L. Fernandez (flufetor) wrote :

I have tried your packages. Now it is possible to play OpenGL games (i.e. gl-117).
The problem is that you have changed the epoch from the packages and now I can't install development packages due to strict version dependency checking:

root@p2-banshee:~/mesa# LANG=en_US dpkg -i libgl1-mesa-dev_6.4.1-0ubuntu8_i386.deb
(Reading database ... 76195 files and directories currently installed.)
Preparing to replace libgl1-mesa-dev 3:6.4.1-0ubuntu8 (using libgl1-mesa-dev_6.4.1-0ubuntu8_i386.deb) ...
Unpacking replacement libgl1-mesa-dev ...
dpkg: dependency problems prevent configuration of libgl1-mesa-dev:
 libgl1-mesa-dev depends on mesa-common-dev (= 3:6.4.1-0ubuntu8); however:
  Version of mesa-common-dev on system is 6.4.1-0ubuntu8.
dpkg: error processing libgl1-mesa-dev (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libgl1-mesa-dev

Revision history for this message
Kossovics Balázs (kossovics) wrote :
Revision history for this message
Francisco L. Fernandez (flufetor) wrote : Re: 3D games crashed with voodoo3 - another bug - textures

That seem to be ok, although by this time I had built patched packages myself.
But testing those, I have found another bug.
I can compile tyrquake v0.54 or glquake from http://mfcn.ilo.de/glxquake/.
Both of them are the most close to the original engine for glquake, and both of them exhibit the same problem: textures are bad, made of big blocks of random colours, with pink like colors more predominant.

But quakeforge shows good textures and I guess that the textures API functions called by the old glquake engine are different from those used by quekeforge.

With Xorg 6.8.2/Mesa 6.2.1 both old quake engines work flawesly.

Revision history for this message
In , Javier Jardón (jjardon) wrote :

*** Bug 8034 has been marked as a duplicate of this bug. ***

Changed in xorg-server:
status: Unknown → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

mesa-6.5.2 is in Feisty, so this can be closed.

Changed in xserver-xorg-video-tdfx:
status: Confirmed → Fix Released
Revision history for this message
In , Francisco L. Fernandez (flufetor) wrote :

I have to say for future reference that DRI 3D with tdfx driver has been broken for the following releases of UBUNTU:

Breezy
Dapper
Edgy
Feisty

And that it works again (first time since Hoary) whith Gutsy (Vodoo 3/banshee).
Also the MGA (Matrox G400) driver seems to work again (in some of the past ubuntu releases the image was corrupted in 3D).

The working driver combo information for Gutsy is as follows:
DDX:
(II) Module tdfx: vendor="X.Org Foundation"
        compiled for 7.2.0, module version = 1.3.0
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 1.1
DRM:
(II) TDFX(0): [drm] loaded kernel module for "tdfx" driver
(II) TDFX(0): [drm] DRM interface version 1.3
DRI/MESA:
OpenGL renderer string: Mesa DRI VoodooBanshee 20061113 x86/MMX/SSE
OpenGL version string: 1.2 Mesa 7.0.1
OpenGL extensions:

Changed in xorg-server:
importance: Unknown → High
Changed in xorg-server:
importance: High → Unknown
Changed in xorg-server:
importance: Unknown → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.