Last Comment Bug 779786 - "###!!! ASSERTION: Failed to create pixmap!: 'pixmap', file /home/cjones/mozilla/inbound/gfx/gl/GLContextProviderGLX.cpp, line 1041" with NVIDIA driver, followed by abort from X error on b2g-desktop
: "###!!! ASSERTION: Failed to create pixmap!: 'pixmap', file /home/cjones/mozi...
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: Graphics (show other bugs)
: unspecified
: x86_64 Linux
: -- normal (vote)
: mozilla17
Assigned To: Karl Tomlinson (:karlt)
:
Mentors:
: 779852 (view as bug list)
Depends on:
Blocks: 707722
  Show dependency treegraph
 
Reported: 2012-08-02 03:11 PDT by Chris Jones [:cjones] inactive; ni?/f?/r? if you need me
Modified: 2012-08-20 14:19 PDT (History)
4 users (show)
karlt: in‑testsuite-
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
hack (1.85 KB, patch)
2012-08-02 03:11 PDT, Chris Jones [:cjones] inactive; ni?/f?/r? if you need me
no flags Details | Diff | Splinter Review
modified glxinfo (1.03 KB, text/x-csrc)
2012-08-02 14:09 PDT, Karl Tomlinson (:karlt)
no flags Details
modified glxinfo (40.73 KB, text/plain)
2012-08-02 14:11 PDT, Karl Tomlinson (:karlt)
no flags Details
check alpha instead of buffer size against render format (2.81 KB, patch)
2012-08-05 21:32 PDT, Karl Tomlinson (:karlt)
matt.woodrow: review+
Details | Diff | Splinter Review

Description Chris Jones [:cjones] inactive; ni?/f?/r? if you need me 2012-08-02 03:11:50 PDT
Created attachment 648288 [details] [diff] [review]
hack

Kyle mentioned this to me the other day, but I just ran into it myself.  Relatively recent regression, but don't have a range.

STR are
 (1) Build b2g for desktop (https://wiki.mozilla.org/Gaia/Hacking#Building_B2G)
 (2) Launch with MOZ_USE_OMTC=1 for omtc

We abort pretty soon after startup in a debug build.

The attached patch makes the crash stop, but it doesn't shed any light on the underlying problem.
Comment 1 Karl Tomlinson (:karlt) 2012-08-02 14:09:50 PDT
Created attachment 648478 [details]
modified glxinfo

Can someone who can reproduce compile this with "gcc -lGL glxinfo.c" and attach the output, please?

I'm suspicious of bug 707722, but that's not really "the other day".

Does this happen only with MOZ_USE_OMTC=1?
Does that turn on GL layers, or is that orthogonal?
Comment 2 Karl Tomlinson (:karlt) 2012-08-02 14:11:13 PDT
Created attachment 648481 [details]
modified glxinfo

Previous attachment was wrong file.
Comment 3 Karl Tomlinson (:karlt) 2012-08-03 02:57:08 PDT
Bug 707722 was based on http://www.opengl.org/sdk/docs/man/xhtml/glXGetFBConfigAttrib.xml

"GLX_BUFFER_SIZE

  Number of bits per color buffer.
  If the frame buffer configuration supports RGBA contexts, then
  GLX_BUFFER_SIZE is the sum of GLX_RED_SIZE, GLX_GREEN_SIZE,
  GLX_BLUE_SIZE, and GLX_ALPHA_SIZE.
  If the frame buffer configuration supports only color index contexts,
  GLX_BUFFER_SIZE is the size of the
  color indexes."

Apparently NVIDIA fbconfigs may still have quite a different interpretation.
i.e. GLX_BUFFER_SIZE always 32, even with no alpha bits.
e.g. attachment 519303 [details]
http://old.nabble.com/Re:-FBConfig%27s-p7307053.html
http://lists.kde.org/?l=kwin&m=117019830318751&w=2
Comment 4 Karl Tomlinson (:karlt) 2012-08-05 21:32:11 PDT
Created attachment 649177 [details] [diff] [review]
check alpha instead of buffer size against render format

The assumption that alpha and color bits filled up the render format depth wasn't correct anyway.
Comment 5 Karl Tomlinson (:karlt) 2012-08-06 20:06:26 PDT
https://hg.mozilla.org/integration/mozilla-inbound/rev/c392b83d5940

We don't currently run reftests with GLX layers but they do surprisingly well.
Just some border-radius tests that also fail on other platforms, and a different "Failed to create pixmap!" in scrolling/image-1.html which is kinda expected when trying to GLXCreatePixmap from a gfxImageSurface.
https://tbpl.mozilla.org/?tree=Try&rev=c91996287d43
Comment 6 Ed Morley [:emorley] 2012-08-07 07:34:20 PDT
https://hg.mozilla.org/mozilla-central/rev/c392b83d5940
Comment 7 Karl Tomlinson (:karlt) 2012-08-20 14:19:26 PDT
*** Bug 779852 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.