Can't create WebGL context in Chrome on Intel+NVIDIA Mac config, other WebGL demos run

1,265 views
Skip to first unread message

Floh

unread,
Aug 24, 2014, 10:46:45 AM8/24/14
to emscripte...@googlegroups.com
Hi,

I got a report from a user with OSX Mavericks and integrated Intel plus dedicated NVIDIA GPUs that the WebGL context creation fails (at least in Chrome, I don't have info about other browser):

"Could not create canvas: Web page was not allowed to create a WebGL context.,:("

Other WebGL demos run though, and use the NVIDIA GPU for rendering. Are there any known issues in emscripten WebGL context setup code (I'm using the new HTML5 setup functions) which would cause different behaviour from "traditional" WebGL demos?

If anybody has a Mac with such a config (Intel+NVIDIA GPU + Chrome) I would be grateful for feedback whether these demos run:


Thanks!
-Floh.




Jukka Jylänki

unread,
Aug 24, 2014, 11:29:39 AM8/24/14
to emscripte...@googlegroups.com
There are no known Emscripten-specific GL context creation issues that I'm aware of. Tested the Clear and Triangle samples on that site on the following two systems, and on those they both pass:

Mac mini
Late 2012

Processor  2.3 GHz Intel Core i7

Memory  4 GB 1600 MHz DDR3

Graphics  Intel HD Graphics 4000

Software  OS X 10.9.4

Chrome 36.0.1985.143


MacBook Pro

Retina, 15-inch, Early 2013

Processor  2.7 GHz Intel Core i7

Memory  16 GB 1600 MHz DDR3

Graphics  NVIDIA GeForce GT 650M 1024 MB

Software  OS X 10.8.5

Chrome 36.0.1985.143



--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Floh

unread,
Aug 24, 2014, 11:42:15 AM8/24/14
to emscripte...@googlegroups.com
Ok thanks! I'll see if I can test a few more configs tomorrow at work.

Cheers,
-Floh.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.

Floh

unread,
Aug 25, 2014, 12:56:26 PM8/25/14
to emscripte...@googlegroups.com
Ok, latest info that the problem was caused by the long-running Chrome browser. A reboot/restart fixed it.

I'm suspecting a memory fragmentation issue, but since Chrome opens a new process per tab it can't be the usual suspect (the emscripten heap), but probably something in the GPU process which caused the WebGL context creation to fail...

Has anybody here experienced a problem like this? I'm not sure whether it's worth writing a Chrome ticket with the little info I have.

-Floh.

Chad Austin

unread,
Aug 25, 2014, 2:05:06 PM8/25/14
to emscripte...@googlegroups.com
At IMVU, we've definitely seen scenarios where a browser occasionally fails to create a WebGL context.  It seems to happen on a wide variety of hardware and operating systems.  We see it internally a couple times a week.  Sometimes it clears itself up, and sometimes a browser restart is required.


We haven't yet formulated a plan for how to deal with it, because, of course, this is something customers will run into.



To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Chad Austin
Technical Director, IMVU

Floh

unread,
Aug 25, 2014, 2:34:56 PM8/25/14
to emscripte...@googlegroups.com
I think at Bigpoint the first 3 things players are advised to in the troubleshooting/support FAQ is (1) clear browser cache, (2) restart browser, and (3) reboot, this seems to clear up most problems from several years of experience ;)

Ken Russel suspects in the WebGL dev list that the Chrome GPU process might have crashed 3 times in a row which would lead to disabling all GPU acceleration including WebGL.

Cheers,
-Floh.
-Floh.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages