"getParameter of undefined at _glGetString" error appeared in Chrome

I’ve suddenly started getting a “getParameter of undefined” error when building in HTML5, when the app starts in Chrome (on OSX). 

Yesterday everything was working fine. 

The error also occurs on a minimal main.lua  (quite literally just :

 display.newRect(100,100,100,100)

)

I have two possible culprits :

* Chrome updating overnight ?

* I launched “Setup Corona Native.app”, could that cause it ? 

 DH 

(using builds 3326 & 3349)

That’s weird…

Neither Chrome updating nor Corona Native.app could not affect on html5 app.

Can you share URL to the test app ?

“Voilà !”, as the French say: 

http://com.mmapps.test.s3-website-eu-west-1.amazonaws.com/

(NB the problem doesn’t seem to occur on Opera or Safari) 

I got a white rectangle on my MacBook Pro running High Serria 10.13.6 using Chrome 68.0.3440.106

I didn’t see an error.

Rob

The error suggests the app does not contain a proper GL context. Any errors or warnings shown on console output?

There’s only a warning saying that “The Web Audio autoplay policy will be re-enabled in Chrome 70”, other than that the error is the first thing to occur. I get the loading screen and then the error. 

Hmm… no ideas for now, the link opens everywhere for me.

So, I was a bit bored today. Running on Chrome Version 69.0.3497.81 64 bit, Mac OS X.

https://pastebin.com/EjT5jR3d

 

I went to http://www.shadertoy.com and that tells me WebGL is not enabled in my browser, with Chrome.

(it works on Opera, however)

I presumed that was the cause of the error message, I’m not clear what caused it to be switched off overnight, and I haven’t been able to switch it back on. 

@david
That is it. You need to enable hardware acceleration in chrome. It’s under Settings > System > Use hardware acceleration when available

It’s on, but the Mac I’m working on here is a bit old (2011), my guess is that it encountered too many errors and so considered at some point that OpenGL was not available.

Another settings that you can try is enabling WebGL Draft extensions under chrome://flags. And try updating Chrome again.

That’s weird…

Neither Chrome updating nor Corona Native.app could not affect on html5 app.

Can you share URL to the test app ?

“Voilà !”, as the French say: 

http://com.mmapps.test.s3-website-eu-west-1.amazonaws.com/

(NB the problem doesn’t seem to occur on Opera or Safari) 

I got a white rectangle on my MacBook Pro running High Serria 10.13.6 using Chrome 68.0.3440.106

I didn’t see an error.

Rob

The error suggests the app does not contain a proper GL context. Any errors or warnings shown on console output?

There’s only a warning saying that “The Web Audio autoplay policy will be re-enabled in Chrome 70”, other than that the error is the first thing to occur. I get the loading screen and then the error. 

Hmm… no ideas for now, the link opens everywhere for me.

So, I was a bit bored today. Running on Chrome Version 69.0.3497.81 64 bit, Mac OS X.

https://pastebin.com/EjT5jR3d

 

I went to http://www.shadertoy.com and that tells me WebGL is not enabled in my browser, with Chrome.

(it works on Opera, however)

I presumed that was the cause of the error message, I’m not clear what caused it to be switched off overnight, and I haven’t been able to switch it back on.