Closed Bug 1096460 Opened 11 years ago Closed 6 years ago

WebGL demo using bones fails with "too many uniforms". Shader doesn't compile

Categories

(Core :: Graphics: CanvasWebGL, defect, P3)

36 Branch
x86_64
Windows NT
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: david_rousset, Assigned: jgilbert)

Details

User Agent: Mozilla/5.0 (Windows NT 6.4; WOW64; Trident/7.0; Touch; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; Tablet PC 2.0; InfoPath.3; rv:11.0) like Gecko Steps to reproduce: 1 - Navigate to http://www.babylonjs.com/index.html?DANCEMOVES with FX (any version) 2 - It stays on the loading screen with "Streaming items..." whereas it loads a dancing girl in IE11/Chrome/Opera Actual results: Open F12/Firebug, you'll see that logged: "BJS - [19:08:31]: Unable to compile effect: default" babylon.js:3:5987 "BJS - [19:08:31]: Defines: #define DIFFUSE #define LIGHT0 #define POINTDIRLIGHT0 #define UV1 #define BONES #define BonesPerMesh 66 Expected results: The WebGL scene should display an animated bones mesh. There are 66 bones which is not supported by some mobile platforms but it works on IE11 & Chrome desktop versions. The shader should compile on Firefox on desktops.
This WFM on Firefox on OS X. You're testing on Windows 10, AIUI? Can you post the graphics section from about:support ? Does this work if you use Firefox's safe mode? ( https://support.mozilla.org/kb/troubleshoot-firefox-issues-using-safe-mode ) When you say "all versions", I'm assuming you've tried all of release (33.1), beta (34), dev edition (35) and nightly (36) ? If not, can you try nightly? ( https://nightly.mozilla.org/ )
Flags: needinfo?(david_rousset)
Reproduced the bug on nightly, using Windows 8.1 User agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:36.0) Gecko/20100101 Firefox/36.0 My whole console output: http://pastebin.com/5n0RHwBc
(In reply to florio.gabriel from comment #2) > Reproduced the bug on nightly, using Windows 8.1 > > User agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:36.0) Gecko/20100101 > Firefox/36.0 > > My whole console output: http://pastebin.com/5n0RHwBc Could you provide the graphics part of about:support for this machine, please? Does it work in Firefox's safe mode? (see comment #1)
Tentatively moving to webgl...
Component: Untriaged → Canvas: WebGL
Product: Firefox → Core
(In reply to :Gijs Kruitbosch from comment #3) > (In reply to florio.gabriel from comment #2) > > Reproduced the bug on nightly, using Windows 8.1 > > > > User agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:36.0) Gecko/20100101 > > Firefox/36.0 > > > > My whole console output: http://pastebin.com/5n0RHwBc > > Could you provide the graphics part of about:support for this machine, > please? Does it work in Firefox's safe mode? (see comment #1) Same error on safe mode. Graphics Adapter Description NVIDIA GeForce GT 635 Adapter Drivers nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um Adapter RAM 1024 Device ID 0x1280 DirectWrite Enabled false (6.3.9600.17111) Driver Date 9-13-2014 Driver Version 9.18.13.4411 GPU #2 Active false GPU Accelerated Windows 0/2 Basic (OMTC) Subsys ID 103210de Vendor ID 0x10de WebGL Renderer Google Inc. -- ANGLE (NVIDIA GeForce GT 635 Direct3D9Ex vs_3_0 ps_3_0) windowLayerManagerRemote true AzureCanvasBackend skia AzureContentBackend cairo AzureFallbackCanvasBackend cairo AzureSkiaAccelerated 0
(In reply to :Gijs Kruitbosch from comment #1) > This WFM on Firefox on OS X. You're testing on Windows 10, AIUI? Can you > post the graphics section from about:support ? Does this work if you use > Firefox's safe mode? ( > https://support.mozilla.org/kb/troubleshoot-firefox-issues-using-safe-mode ) > > When you say "all versions", I'm assuming you've tried all of release > (33.1), beta (34), dev edition (35) and nightly (36) ? If not, can you try > nightly? ( https://nightly.mozilla.org/ ) I repro it for instance on the last Firefox Developer Edition: 35.0a2 (2014-11-09), Mozilla/5.0 (Windows NT 6.4; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0 Graphics version: Date du pilote 3-11-2014 Description de la carte Intel(R) HD Graphics 4000 Direct2D activé true DirectWrite activé true (6.4.9860.0) Fenêtres avec accélération graphique 1/1 Direct3D 11 (OMTC) GPU 2 actif false ID du périphérique 0x0166 ID du sous-système 21f917aa ID du vendeur 0x8086 Pilotes de la carte igdumdim64 igd10iumd64 igd10iumd64 igdumdim32 igd10iumd32 igd10iumd32 RAM de la carte Unknown Rendu WebGL Google Inc. -- ANGLE (Intel(R) HD Graphics 4000 Direct3D9Ex vs_3_0 ps_3_0) Version du pilote 10.18.10.3496 windowLayerManagerRemote true AzureCanvasBackend direct2d AzureContentBackend direct2d 1.1 AzureFallbackCanvasBackend cairo AzureSkiaAccelerated 0
Flags: needinfo?(david_rousset)
i repro as well on my computer: Application Basics ------------------ Name: Firefox Version: 33.0 User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0 Multiprocess Windows: 0/1 Crash Reports for the Last 3 Days --------------------------------- All Crash Reports Extensions ---------- Graphics -------- Adapter Description: NVIDIA GeForce GTX 750 Adapter Drivers: nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um Adapter RAM: 1024 Device ID: 0x1381 Direct2D Enabled: true DirectWrite Enabled: true (6.4.9880.0) Driver Date: 7-2-2014 Driver Version: 9.18.13.4052 GPU #2 Active: false GPU Accelerated Windows: 1/1 Direct3D 11 (OMTC) Vendor ID: 0x10de WebGL Renderer: Google Inc. -- ANGLE (NVIDIA GeForce GTX 750 Direct3D9Ex vs_3_0 ps_3_0) windowLayerManagerRemote: true AzureCanvasBackend: direct2d AzureContentBackend: direct2d AzureFallbackCanvasBackend: cairo AzureSkiaAccelerated: 0 Important Modified Preferences ------------------------------ browser.cache.disk.capacity: 358400 browser.cache.disk.smart_size.first_run: false browser.cache.frecency_experiment: 4 browser.places.smartBookmarksVersion: 7 browser.sessionstore.upgradeBackup.latestBuildID: 20141011015303 browser.startup.homepage: about:Tabs browser.startup.homepage_override.buildID: 20141011015303 browser.startup.homepage_override.mstone: 33.0 extensions.lastAppVersion: 33.0 gfx.direct3d.last_used_feature_level_idx: 0 media.gmp-gmpopenh264.lastUpdate: 1414083330 media.gmp-gmpopenh264.version: 1.1 media.gmp-manager.lastCheck: 1415722722 network.cookie.prefsMigrated: true places.history.expiration.transient_current_max_pages: 104858 plugin.disable_full_page_plugin_for_types: application/pdf plugin.importedState: true privacy.sanitize.migrateFx3Prefs: true Important Locked Preferences ---------------------------- JavaScript ---------- Incremental GC: true Accessibility ------------- Activated: false Prevent Accessibility: 0 Library Versions ---------------- NSPR Expected minimum version: 4.10.7 Version in use: 4.10.7 NSS Expected minimum version: 3.17.1 Basic ECC Version in use: 3.17.1 Basic ECC NSSSMIME Expected minimum version: 3.17.1 Basic ECC Version in use: 3.17.1 Basic ECC NSSSSL Expected minimum version: 3.17.1 Basic ECC Version in use: 3.17.1 Basic ECC NSSUTIL Expected minimum version: 3.17.1 Version in use: 3.17.1 Experimental Features ---------------------
Confirmed in 36.0a1 (2014-11-17) Win 7 x64
Status: UNCONFIRMED → NEW
Ever confirmed: true
Firefox asks ANGLE how many vertex uniforms you can have. ANGLE says 254. You create a shader that asks for 264 uniforms in one variable. ANGLE checks the shader and ANGLE says "No". I've reproduced the same message "BJS - [17:46:19]: Error: ERROR: too many uniforms" in Google Chrome Version 39.0.2171.71 m More information on why the limit may be lower than expected, can be found in this thread: https://code.google.com/p/angleproject/issues/detail?id=401
Just tested again in Chrome 41.0.2236.0 dev-m (64 bit) on Windows 10 Technical Preview and it works. Wondering if the problem doesn't come from ANGLE on Mac OS or Linux mapping to Open GL.
Assignee: nobody → jgilbert
Priority: -- → P3
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.