Bug 826725

Summary: Several X11 applications fail with error GLXBadContext
Product: [openSUSE] openSUSE 12.3 Reporter: Jean Delvare <jdelvare>
Component: X.OrgAssignee: E-mail List <xorg-maintainer-bugs>
Status: RESOLVED UPSTREAM QA Contact: E-mail List <xorg-maintainer-bugs>
Severity: Normal    
Priority: P3 - Medium    
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: openSUSE 12.3   
Whiteboard:
Found By: Community User Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jean Delvare 2013-06-25 13:16:40 UTC
On a freshly installed system running Xfce, several X11 applications (totem, gnibbles, quadrapassel) fail to start with an error like:

(quadrapassel:1410): Gdk-ERROR **: The program 'quadrapassel' received an X Window System error.
This probably reflects a bug in the program.
The error was 'GLXBadContext'.
  (Details: serial 161 error_code 169 request_code 153 minor_code 6)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Hardware is a Panasonic Toughbook CF-18D, with an integrated Intel graphics chip:

00:02.0 VGA compatible controller [0300]: Intel Corporation 82852/855GM Integrated Graphics Device [8086:3582] (rev 02)

'drm' and 'i915' messages from dmesg:

[drm] Initialized drm 1.1.0 20060810
i915 0000:00:02.0: setting latency timer to 64
[drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[drm] Driver supports precise vblank timestamp query.
[drm] GMBUS [i915 gmbus panel] timed out, falling back to bit banging on pin 3
[drm] initialized overlay support
fbcon: inteldrmfb (fb0) is primary device
i915: fixme: max PWM is zero
fb0: inteldrmfb frame buffer device
drm: registered panic notifier
[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0

I noticed the following error message in /var/log/Xorg.0.log, don't know if it is related:

(II) glamor: OpenGL accelerated X.org driver based.
(II) glamor: EGL version 1.4 (DRI2):
(EE) intel(0): Failed to create EGL context
(WW) intel(0): glamor detected, failed to initialize egl.
Comment 1 Jean Delvare 2013-06-25 13:21:27 UTC
I am able to workaround the problem by adding the following xorg.conf snippet:

Section "Device"
  Identifier "Intel Graphics"
  Driver "intel"
  Option "DRI" "false"
EndSection

But of course if would be better if I didn't have to do that.
Comment 2 Jean Delvare 2013-07-08 07:20:45 UTC
I tried the latest stable kernel (3.10.0), just in case, but it didn't help.
Comment 3 Jean Delvare 2014-11-12 12:57:42 UTC
Meanwhile I have updated this laptop to openSUSE 13.2 and this bug no longer exists. So I suppose it got fixed upstream. openSUSE 12.3 is probably too close to the end of its life cycle to bother backporting, and I would no longer be able to test anyway.

Now I get a different (non-fatal) error message for the same applications:

libGL error: Version 4 or later of flush extension not found
libGL error: failed to load driver: i915

but I suppose this is a different issue so I'll open a separate bug for that.