Closed Bug 900439 Opened 7 years ago Closed 7 years ago

WebGL2 unable to initialize OpenGL on Linux/Nvidia GT 330M

Categories

(Core :: Canvas: WebGL, defect)

25 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: shakesoda, Assigned: guillaume.abadie)

References

Details

Attachments

(2 files)

Attached file glxinfo-gt330.txt
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0 (Beta/Release)
Build ID: 20130627161625

Steps to reproduce:

Context creation failed despite having all the required extensions on the host machine. Here's the code I used: http://excessive.io/demos/webgl2/.

Using NVIDIA 304.88 drivers on GeForce GT 330M with Ubuntu 13.04. Attached glxinfo output.

Nightly version is 25.0a1 (2013-07-31)



Actual results:

Error: WebGL: Error during OpenGL initialization


Expected results:

Should've gotten a usable WebGL2 context.
Blocks: 894492
Hi! Welcome on Bugzilla!

We are actually doing some changes on the OpenGL extension management. And your bug seams to be related to that. I'm looking for what could be wrong. =)

Thanks for reporting.
I don't have a similar configuration right now.
Could you give us the log of the nightly execution that only load this page?

Thank you!
Flags: needinfo?(shakesoda)
Where can I find that log? I didn't see anything more specific in the terminal output or in the debug console. Do I need a debug build or to change a flag?
Oups sorry, I have forgotten this point.

Yes indeed, you would need to build with --enable-debug and --disable-optimize. But that might take you a long time (~one hour to clone mozilla central + ~20 minutes to build on a 8 cores CPU).

Or we can wait for landing bugs 900101 and 898615 that is planing to improve that. But that might take one week.
Also, can we get a paste of your about:support?
That'll give us more info about your graphics, and also make sure you have the correct webgl2 pref flipped.
The build there crashes on startup for me - not sure what's up with that.
I did enable webgl2 in the prefs, and here's the about:support info:

Application Basics
------------------

Name: Firefox
Version: 25.0a1
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20130801 Firefox/25.0

Extensions
----------

Name: Ubuntu Firefox Modifications
Version: 2.6
Enabled: false
ID: ubufox@ubuntu.com

Name: Ubuntu Online Accounts
Version: 0.4.5
Enabled: false
ID: online-accounts@lists.launchpad.net

Name: Unity Desktop Integration
Version: 2.4.6
Enabled: false
ID: webapps-team@lists.launchpad.net

Name: Unity Websites integration
Version: 2013.04.05.beta
Enabled: false
ID: {2e1445b0-2682-11e1-bfc2-0800200c9a66}

Important Modified Preferences
------------------------------

browser.cache.disk.capacity: 358400
browser.cache.disk.smart_size_cached_value: 358400
browser.cache.disk.smart_size.first_run: false
browser.cache.disk.smart_size.use_old_max: false
browser.places.smartBookmarksVersion: 4
browser.sessionstore.upgradeBackup.latestBuildID: 20130801030223
browser.startup.homepage_override.buildID: 20130801030223
browser.startup.homepage_override.mstone: 25.0a1
extensions.lastAppVersion: 25.0a1
network.cookie.prefsMigrated: true
places.database.lastMaintenance: 1375321305
places.history.expiration.transient_current_max_pages: 100041
plugin.disable_full_page_plugin_for_types: application/pdf
plugin.importedState: true
privacy.donottrackheader.enabled: true
privacy.sanitize.migrateFx3Prefs: true
storage.vacuum.last.index: 0
storage.vacuum.last.places.sqlite: 1375321305
webgl.enable-prototype-webgl2: true
webgl.prefer-native-gl: true

Graphics
--------

Adapter Description: NVIDIA Corporation -- GeForce GT 330M/PCIe/SSE2
Device ID: GeForce GT 330M/PCIe/SSE2
Driver Version: 3.3.0 NVIDIA 304.88
GPU Accelerated Windows: 0/1 Basic
Vendor ID: NVIDIA Corporation
WebGL Renderer: NVIDIA Corporation -- GeForce GT 330M/PCIe/SSE2
windowLayerManagerRemote: false
AzureCanvasBackend: cairo
AzureContentBackend: none
AzureFallbackCanvasBackend: none
AzureSkiaAccelerated: 0

JavaScript
----------

Incremental GC: true

Accessibility
-------------

Activated: false
Prevent Accessibility: 0

Library Versions
----------------

NSPR
Expected minimum version: 4.10.1 Beta
Version in use: 4.10.1 Beta

NSS
Expected minimum version: 3.15.1 Basic ECC Beta
Version in use: 3.15.1 Basic ECC Beta

NSSSMIME
Expected minimum version: 3.15.1 Basic ECC Beta
Version in use: 3.15.1 Basic ECC Beta

NSSSSL
Expected minimum version: 3.15.1 Basic ECC Beta
Version in use: 3.15.1 Basic ECC Beta

NSSUTIL
Expected minimum version: 3.15.1 Beta
Version in use: 3.15.1 Beta
(In reply to Colby Klein from comment #7)
> The build there crashes on startup for me - not sure what's up with that.
> I did enable webgl2 in the prefs, and here's the about:support info:
> 
> Application Basics
> ------------------
> 
> Name: Firefox
> Version: 25.0a1
> User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20130801
> Firefox/25.0
> 
> Extensions
> ----------
> 
> Name: Ubuntu Firefox Modifications
> Version: 2.6
> Enabled: false
> ID: ubufox@ubuntu.com
> 
> Name: Ubuntu Online Accounts
> Version: 0.4.5
> Enabled: false
> ID: online-accounts@lists.launchpad.net
> 
> Name: Unity Desktop Integration
> Version: 2.4.6
> Enabled: false
> ID: webapps-team@lists.launchpad.net
> 
> Name: Unity Websites integration
> Version: 2013.04.05.beta
> Enabled: false
> ID: {2e1445b0-2682-11e1-bfc2-0800200c9a66}
> 
> Important Modified Preferences
> ------------------------------
> 
> browser.cache.disk.capacity: 358400
> browser.cache.disk.smart_size_cached_value: 358400
> browser.cache.disk.smart_size.first_run: false
> browser.cache.disk.smart_size.use_old_max: false
> browser.places.smartBookmarksVersion: 4
> browser.sessionstore.upgradeBackup.latestBuildID: 20130801030223
> browser.startup.homepage_override.buildID: 20130801030223
> browser.startup.homepage_override.mstone: 25.0a1
> extensions.lastAppVersion: 25.0a1
> network.cookie.prefsMigrated: true
> places.database.lastMaintenance: 1375321305
> places.history.expiration.transient_current_max_pages: 100041
> plugin.disable_full_page_plugin_for_types: application/pdf
> plugin.importedState: true
> privacy.donottrackheader.enabled: true
> privacy.sanitize.migrateFx3Prefs: true
> storage.vacuum.last.index: 0
> storage.vacuum.last.places.sqlite: 1375321305
> webgl.enable-prototype-webgl2: true
> webgl.prefer-native-gl: true
> 
> Graphics
> --------
> 
> Adapter Description: NVIDIA Corporation -- GeForce GT 330M/PCIe/SSE2
> Device ID: GeForce GT 330M/PCIe/SSE2
> Driver Version: 3.3.0 NVIDIA 304.88
> GPU Accelerated Windows: 0/1 Basic
> Vendor ID: NVIDIA Corporation
> WebGL Renderer: NVIDIA Corporation -- GeForce GT 330M/PCIe/SSE2
> windowLayerManagerRemote: false
> AzureCanvasBackend: cairo
> AzureContentBackend: none
> AzureFallbackCanvasBackend: none
> AzureSkiaAccelerated: 0
> 
> JavaScript
> ----------
> 
> Incremental GC: true
> 
> Accessibility
> -------------
> 
> Activated: false
> Prevent Accessibility: 0
> 
> Library Versions
> ----------------
> 
> NSPR
> Expected minimum version: 4.10.1 Beta
> Version in use: 4.10.1 Beta
> 
> NSS
> Expected minimum version: 3.15.1 Basic ECC Beta
> Version in use: 3.15.1 Basic ECC Beta
> 
> NSSSMIME
> Expected minimum version: 3.15.1 Basic ECC Beta
> Version in use: 3.15.1 Basic ECC Beta
> 
> NSSSSL
> Expected minimum version: 3.15.1 Basic ECC Beta
> Version in use: 3.15.1 Basic ECC Beta
> 
> NSSUTIL
> Expected minimum version: 3.15.1 Beta
> Version in use: 3.15.1 Beta
You also need to set webgl.enable-draft-extensions to true.
Thanks, that did it! I double checked the wiki, and I missed that step. Sorry for the trouble.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(shakesoda)
Resolution: --- → INVALID
Attached patch patch revision 1Splinter Review
Jeff, My mind is WebGL 2 should be independent of webgl.enable-draft-extensions. Here is the patch.
Attachment #784708 - Flags: review?(jgilbert)
(In reply to Colby Klein from comment #9)
> Thanks, that did it! I double checked the wiki, and I missed that step.
> Sorry for the trouble.
No worries! =)
And you are already subscribed to Bugzilla if you find another bug. ;)
Reopening so that the patch doesn't get lost.
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: INVALID → ---
Attachment #784708 - Flags: review?(jgilbert) → review+
https://hg.mozilla.org/mozilla-central/rev/30222c2903ef
Assignee: nobody → gabadie
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in before you can comment on or make changes to this bug.