wine crashed with "Error of failed request: GLXBadContext" fglrx & AIGLX are enabled

Bug #189042 reported by Bismark
2
Affects Status Importance Assigned to Milestone
linux-restricted-modules-2.6.24 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Running Hardy with current updates as of Feb. 04, 2008.

When AIGLX is enabled trying to start a program in wine results in the following:
libGL error: drmMap of framebuffer failed (Cannot allocate memory)
libGL error: reverting to (slow) indirect rendering
X Error of failed request: GLXBadContext
  Major opcode of failed request: 162 (GLX)
  Minor opcode of failed request: 5 (X_GLXMakeCurrent)
  Serial number of failed request: 23
  Current serial number in output stream: 23

Disabled AIGLX allows the program to run even though it does spit out the following:
libGL error: drmMap of framebuffer failed (Cannot allocate memory)
libGL error: reverting to (slow) indirect rendering

Also when AIGLX is disabled there is pixel corruption in the lower right hand corner of the screen (I think this is a known and already reported fglrx issue however).

System Info:

[/etc/lsb-release]
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu hardy (development branch)"

[/var/X11/xorg.conf]
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
        FontPath "/usr/share/fonts/X11/Type1"
        FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
        FontPath "/usr/share/fonts/X11/75dpi"
        FontPath "/usr/share/fonts/X11/100dpi"
        FontPath "/usr/share/fonts/X11/misc"
EndSection

Section "Module"
 Load "i2c"
 Load "bitmap"
 Load "ddc"
 Load "dri"
 Load "extmod"
 Load "freetype"
 Load "glx"
 Load "int10"
 Load "vbe"
 Load "evdev"
 Load "dbe"

 SubSection "extmod"
  Option "omit xfree86-dga"
 EndSubSection
EndSection

Section "ServerFlags"
 Option "AIGLX" "true"
EndSection

Section "DRI"
 Group "video"
 Mode 0666
EndSection

Section "Extensions"
 Option "XVideo" "Enable"
 Option "XFree86-VidModeExtension" "true"
# Option "Composite" "Disable"
EndSection

Section "InputDevice"
 Identifier "Generic Keyboard"
 Driver "kbd"
 Option "CoreKeyboard"
 Option "XkbRules" "xorg"
 Option "XkbModel" "pc105"
 Option "XkbLayout" "us"
EndSection

Section "InputDevice"
 Identifier "TrackPoint"
 Driver "mouse"
 Option "CorePointer"
 Option "Device" "/dev/input/mice"
 Option "Protocol" "ExplorerPS/2"
 Option "Emulate3Buttons" "on"
 Option "Emulate3TimeOut" "50"
 Option "EmulateWheel" "on"
 Option "EmulateWheelTimeOut" "200"
 Option "EmulateWheelButton" "2"
 Option "YAxisMapping" "4 5"
 Option "XAxisMapping" "6 7"
 Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
 Identifier "UsbMouse"
        Driver "evdev"
        Option "evBits" "+1-2"
        Option "keyBits" "~272-287"
        Option "relBits" "~0-2 ~6 ~8"
        #Option "Buttons" "10"
        #Option "ZAxisMapping" "4 5"
EndSection

#Section "InputDevice"
# Identifier "UsbMouse"
# Driver "mouse"
# Option "Protocol" "auto"
# Option "Device" "/dev/input/mice"
# Option "Emulate3Buttons" "no"
# Option "ZAxisMapping" "4 5"
# Option "Buttons" "3"
#EndSection

Section "Monitor"
 Identifier "LCD"
 Option "DPMS"
EndSection

Section "Device"
 Identifier "FireGL"

 VendorName "ATI Technologies"
 BoardName "Mobility FireGL V5250 (M56GL)"

 Driver "fglrx"

 # True for 3D, false for power saving
 Option "DRI" "true"

 # Video Overlay for the Xv extension
 Option "VideoOverlay" "True"

 # OpenGl Overlay - Note: VideoOverlay disabled with OpenGL enabled
 Option "OpenGLOverlay" "False"

 # This is to keep fglrx from corrupting the fs buffer which Wine needs
 Option "UseFastTLS" "2"

 Option "DynamicClocks" "on"
 Option "XaaNoOffscreenPixmaps"

  Option "XaaNoOffscreenPixmaps"
  Option "FSAADisableGamma" "no"
  Option "CapabilitiesEx" "0x00000000"
  Option "ScreenOverlap" "0"
  Option "FSAAMSPosY0" "0.000000"
  Option "FSAAMSPosY1" "0.000000"
  Option "mtrr" "off"
  Option "FSAAMSPosX4" "0.000000"
  Option "ForceGenericCPU" "no"
  Option "FSAAMSPosX5" "0.000000"
  Option "FSAAMSPosY2" "0.000000"
  Option "FSAAScale" "1"
  Option "FSAAMSPosY3" "0.000000"
  Option "Capabilities" "0x00000000"
  Option "GammaCorrectionI" "0x00000000"
  Option "no_accel" "no"
  Option "FSAAMSPosY4" "0.000000"
  Option "FSAAMSPosY5" "0.000000"
  Option "FSAACustomizeMSPos" "no"
  Option "FSAAEnable" "no"
  Option "BlockSignalsOnLock" "on"
  Option "GammaCorrectionII" "0x00000000"
  Option "KernelModuleParm" "locked-userpages=0"
  Option "FSAAMSPosX0" "0.000000"
  Option "no_dri" "no"
  Option "VideoOverlay" "on"
  Option "UseInternalAGPGART" "no"
  Option "PseudoColorVisuals" "off"
  Option "StereoSyncEnable" "1"
  Option "FSAAMSPosX1" "0.000000"
  Option "OpenGLOverlay" "off"
  Option "FSAAMSPosX2" "0.000000"
  Option "Stereo" "off"
  Option "FSAAMSPosX3" "0.000000"
  Option "CenterMode" "off"

EndSection

Section "Screen"
 Identifier "Default Screen"
 Device "FireGL"
 Monitor "LCD"
 DefaultDepth 24
 SubSection "Display"
  Viewport 0 0
  Depth 8
  Virtual 1728 1050
 EndSubSection
 SubSection "Display"
  Viewport 0 0
  Depth 16
  Virtual 1728 1050
 EndSubSection
 SubSection "Display"
  Viewport 0 0
  Depth 24
  Virtual 1728 1050
 EndSubSection
EndSection

Section "ServerLayout"
 Identifier "Default Layout"
 Screen "Default Screen" 0 0
 InputDevice "Generic Keyboard"
 InputDevice "TrackPoint"
EndSection

Revision history for this message
Bismark (bismark-foofus) wrote :

Forgot to mention that I'm running x86_64 and the version of wine installed is wine-0.9.54-0ubuntu4

Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks, can you also attach your /var/log/Xorg.0.log, and if possible a screenshot or photo of the screen showing the corruption?

Changed in linux-restricted-modules-2.6.24:
status: New → Incomplete
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

We can't help if you don't provide the information that was asked.

Changed in linux-restricted-modules-2.6.24:
status: Incomplete → Invalid
Revision history for this message
Bismark (bismark-foofus) wrote :

Sorry I had stopped using AIGLX\Compositing and forgot about this one that I reported.

I just reenabled AIGLX & Compositing and tried to run the program under wine, unfortunately now I just get a straight seg fault core dump. The screen corruption I was seeing doesn't seem to be reappearing now so maybe an update fixed that, I do have a photo of it however that I'm attaching along with my Xorg log.

Sorry about the picture quality it was taken with a cellphone camera.

Revision history for this message
Bismark (bismark-foofus) wrote :

Here is the Xorg log.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

the wine problem is unrelated and known. You said that enabling composite (by removin/commenting out the "composite 0" line of xorg.conf?) fixed this?

Revision history for this message
Bismark (bismark-foofus) wrote :

No disabling composite fixed the wine issue.

wine crashed when the following were configured
Option "AIGLX" "true"
Option "Composite" "Enable"

after changing them to the following, wine no longer crashes.
Option "AIGLX" "false"
Option "Composite" "Disable"

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Right, so if you would've used the original configfile modified by the restricted driver manager, composite would have been disabled already....

Revision history for this message
Bismark (bismark-foofus) wrote :

Actually the xorg.conf that I have has been copied from prior installs on my laptop. That being said however the default xorg.conf file that I backed up had no entry for composite, actually the contents of it was surprisingly bare (pasted below).

What can I test to gather more information for you?

[xorg.conf.install]
Section "InputDevice"
        Identifier "Generic Keyboard"
        Driver "kbd"
        Option "XkbRules" "xorg"
        Option "XkbModel" "pc105"
        Option "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier "Configured Mouse"
        Driver "mouse"
EndSection

Section "Device"
        Identifier "Configured Video Device"
EndSection

Section "Monitor"
        Identifier "Configured Monitor"
EndSection

Section "Screen"
        Identifier "Default Screen"
        Monitor "Configured Monitor"
EndSection

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.