Last Comment Bug 659932 - GLXtest process should check for GLX >= 1.3 before calling glXCreatePixmap
: GLXtest process should check for GLX >= 1.3 before calling glXCreatePixmap
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: Graphics (show other bugs)
: unspecified
: All Linux
: -- normal (vote)
: mozilla9
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
: 709033 709034 (view as bug list)
Depends on:
Blocks: ogl-linux-beta
  Show dependency treegraph
 
Reported: 2011-05-26 07:45 PDT by Benoit Jacob [:bjacob] (mostly away)
Modified: 2011-12-15 14:28 PST (History)
9 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
check GLX version (2.84 KB, patch)
2011-05-26 08:12 PDT, Benoit Jacob [:bjacob] (mostly away)
dbaron: review+
Details | Diff | Splinter Review

Description Benoit Jacob [:bjacob] (mostly away) 2011-05-26 07:45:59 PDT
Per http://support.mozilla.com/en-US/questions/820538

A user is getting this message:

WARNING: Application calling GLX 1.3 function "glXCreatePixmap" when GLX 1.3 is not supported! This is an application bug! failed to create drawable
Comment 1 Benoit Jacob [:bjacob] (mostly away) 2011-05-26 08:12:06 PDT
Created attachment 535343 [details] [diff] [review]
check GLX version

David, can you please review this, as I remember that a while ago you had written code specifically to support older GLX. Does hardware acceleration on GLX <= 1.2 still matter? Currently GLXtest fails on it, so it's implicitly blacklisted. This patch just makes that clean and official. If we do want hw accel on GLX <= 1.2 then GLXtest needs to be modified to no longer use glXCreatePixmap.
Comment 2 David Baron :dbaron: ⌚️UTC+2 (mostly busy through August 4; review requests must explain patch) 2011-05-26 11:58:44 PDT
Comment on attachment 535343 [details] [diff] [review]
check GLX version

Looks fine to me; the case where I had GLX 1.2 was Intel video on Ubuntu 10.04, which no longer works due to the X error handling stuff.  (Intel on Ubuntu 11.04 is fine; it has GLX 1.4.)

r=dbaron
Comment 3 Daniel Bruce Lynes 2011-07-09 21:29:00 PDT
This is also a problem with at least the latest release of Debian (squeeze).  It is also still running OpenGL 1.2 with the Intel drivers.  If Firefox is only supporting a minimum version of OpenGL, it should at least tell you that's the reason that it's kacking.

Fwiw, it's not just glXCreatePixmap.  It's also glXDestroyPixmap.

Btw...do I understand the last comment from David Baron correctly?  Even if I install the latest Intel drivers on Ubuntu 10.04, it still won't work?  If that's true, the take up on this feature might be diminished on Linux, due to the large percentage of desktop users on Ubuntu.  I'm sure most of them are probably corporate, too, which aren't going to want to move off of an LTS release.
Comment 4 Benoit Jacob [:bjacob] (mostly away) 2011-07-24 21:13:19 PDT
We were talking about the GLX version here, not the OpenGL version. A system implementing only OpenGL 1.2 would be a system from the 1990s and it wouldn't be able to run WebGL anyways (OpenGL 2.1 is required).

You just can't install the latest intel drivers on an older Ubuntu release like 10.04, because on X11 the drivers are too intermingled with other layers such as Mesa, the X server, libdri, etc.

I agree it's important to generate precise and useful error messages, but in the case of a Ubuntu 10.04 user, he'd be using Mesa 7.7 while we require Mesa 7.10 so he'd get the message saying that this driver version is too old, suggesting to try "Mesa 7.10". Hopefully he'd realize that means upgrade Ubuntu versions, because of the way that linux distros work.
Comment 5 Chris Young 2011-08-17 14:54:17 PDT
I am getting this error since upgrading to Firefox 6.0

The full text is:
WARNING: Application calling GLX 1.3 function "glXCreatePixmap" when GLX 1.3 is not supported!  This is an application bug!
WARNING: Application calling GLX 1.3 function "glXDestroyPixmap" when GLX 1.3 is not supported!  This is an application bug!
Comment 6 Benoit Jacob [:bjacob] (mostly away) 2011-08-17 15:03:47 PDT
Oops, somehow this never landed. Doing it ASAP.
Comment 7 Benoit Jacob [:bjacob] (mostly away) 2011-08-19 08:42:49 PDT
http://hg.mozilla.org/mozilla-central/rev/39fd1683ee6f
Comment 8 Zeno R.R. Davatz 2011-09-19 02:34:05 PDT
I am getting the same error for all Versions of Firefox I am trying to use on Linux x86 32bit.

5.0.1
6.0.0
6.0.1
6.0.2
7.0b6

The error is:

WARNING: Application calling GLX 1.3 function "glXCreatePixmap" when GLX 1.3 is not supported!  This is an application bug!
failed to create drawable

I am on Gentoo but I installed directly from Firefox.com

I was able to restart with "firefox -safe-mode" but that also no longer works ;(

Best
Zeno
Comment 9 Zeno R.R. Davatz 2011-09-19 02:52:03 PDT
Ok, solved. Somehow FF was still running in the background without telling me. Killing FF with "killall -KILL firefox-bin" helped.

I also upgraded my NVIDIA drivers.

Best
Zeno
Comment 10 rsx11m 2011-12-11 08:34:40 PST
*** Bug 709034 has been marked as a duplicate of this bug. ***
Comment 11 Benoit Jacob [:bjacob] (mostly away) 2011-12-15 14:28:45 PST
*** Bug 709033 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.