jeromeetienne / tquery

extension system for three.js
http://jeromeetienne.github.io/tquery/
MIT License
652 stars 120 forks source link

Boilerplate not displaying torus in Chrome/Chromium browsers #306

Open thehans opened 10 years ago

thehans commented 10 years ago

When I load the boilerplate in chrome or chromium, I see a gray background and the FPS counter is ticking, but there is no torus visible and there are errors in the js console.

It seems to work fine in firefox on the same computer. Other tquery examples I have viewed on the main site have worked fine.

chrome console output

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 | WebGL 1.0 (OpenGL ES 2.0 Chromium) | WebKit | WebKit WebGL | WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium) tquery-all.js:266
2
WebGL: INVALID_OPERATION: getAttribLocation: program not linked 0.0.0.0/:1
8
WebGL: INVALID_OPERATION: getUniformLocation: program not linked 0.0.0.0/:1
Could not initialise shader
VALIDATE_STATUS: false, gl error [0] tquery-all.js:342
10
WebGL: INVALID_OPERATION: getUniformLocation: program not linked 0.0.0.0/:1
18
WebGL: INVALID_OPERATION: getAttribLocation: program not linked 0.0.0.0/:1
WebGL: INVALID_OPERATION: useProgram: program not valid 0.0.0.0/:1
WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly 0.0.0.0/:1
WebGL: INVALID_OPERATION: useProgram: program not valid 0.0.0.0/:1
WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly 0.0.0.0/:1
WebGL: INVALID_OPERATION: useProgram: program not valid 0.0.0.0/:1
WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly 0.0.0.0/:1
Error in event handler for (unknown): TypeError: Cannot read property 'clearText' of undefined
    at chrome-extension://piepponjhmpppjdllplegiagclpkncbf/content.js:535:40
    at extensions::messaging:320:11
    at Function.target.(anonymous function) (extensions::SafeBuiltins:19:14)
    at Event.dispatchToListener (extensions::event_bindings:386:22)
    at Event.dispatch_ (extensions::event_bindings:371:27)
    at Event.dispatch (extensions::event_bindings:392:17)
    at dispatchOnDisconnect (extensions::messaging:280:27) 0.0.0.0/:1
WebGL: INVALID_OPERATION: useProgram: program not valid 0.0.0.0/:1
WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly 0.0.0.0/:1
WebGL: INVALID_OPERATION: useProgram: program not valid 0.0.0.0/:1
WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly 0.0.0.0/:1
WebGL: INVALID_OPERATION: useProgram: program not valid 0.0.0.0/:1
WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly 0.0.0.0/:1
errors repeat...

chromium console output

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/31.0.1650.63 Chrome/31.0.1650.63 Safari/537.36 | WebGL 1.0 (OpenGL ES 2.0 Chromium) | WebKit | WebKit WebGL | WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium) tquery-all.js:266
WebGL: INVALID_OPERATION: getAttribLocation: program not linked tquery-all.js:743
WebGL: INVALID_OPERATION: getAttribLocation: program not linked tquery-all.js:743
WebGL: INVALID_OPERATION: getUniformLocation: program not linked tquery-all.js:743
WebGL: INVALID_OPERATION: getUniformLocation: program not linked tquery-all.js:743
WebGL: INVALID_OPERATION: getUniformLocation: program not linked tquery-all.js:743
WebGL: INVALID_OPERATION: getUniformLocation: program not linked tquery-all.js:743
WebGL: INVALID_OPERATION: getUniformLocation: program not linked tquery-all.js:743
WebGL: INVALID_OPERATION: getUniformLocation: program not linked tquery-all.js:744
WebGL: INVALID_OPERATION: getUniformLocation: program not linked tquery-all.js:744
WebGL: INVALID_OPERATION: getUniformLocation: program not linked tquery-all.js:744
Could not initialise shader
VALIDATE_STATUS: false, gl error [0] tquery-all.js:342
10
WebGL: INVALID_OPERATION: getUniformLocation: program not linked tquery-all.js:343
18
WebGL: INVALID_OPERATION: getAttribLocation: program not linked tquery-all.js:344
WebGL: INVALID_OPERATION: useProgram: program not valid tquery-all.js:244
WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly tquery-all.js:284
WebGL: INVALID_OPERATION: useProgram: program not valid tquery-all.js:244
WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly tquery-all.js:284
WebGL: INVALID_OPERATION: useProgram: program not valid tquery-all.js:244
WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly tquery-all.js:284
Error in event handler for (unknown): TypeError: Cannot read property 'clearText' of undefined
    at chrome-extension://piepponjhmpppjdllplegiagclpkncbf/content.js:535:40
    at extensions::messaging:320:11
    at Function.target.(anonymous function) (extensions::SafeBuiltins:19:14)
    at Event.dispatchToListener (extensions::event_bindings:386:22)
    at Event.dispatch_ (extensions::event_bindings:371:27)
    at Event.dispatch (extensions::event_bindings:392:17)
    at dispatchOnDisconnect (extensions::messaging:280:27) extensions::event_bindings:375
WebGL: INVALID_OPERATION: useProgram: program not valid tquery-all.js:244
WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly tquery-all.js:284
WebGL: INVALID_OPERATION: useProgram: program not valid tquery-all.js:244
WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly tquery-all.js:284
WebGL: INVALID_OPERATION: useProgram: program not valid tquery-all.js:244
WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly tquery-all.js:284
errors repeat...
jeromeetienne commented 10 years ago

Thanks for reporting. Can you gimme the url which produced that?

On Sunday, December 15, 2013, Hans L wrote:

When I load the boilerplate in chrome or chromium, I see a gray background and the FPS counter is ticking, but there is no torus visible and there are errors in the js console.

It seems to work fine in firefox on the same computer. Other tquery examples I have viewed on the main site have worked fine.

chrome console output

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 | WebGL 1.0 (OpenGL ES 2.0 Chromium) | WebKit | WebKit WebGL | WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium) tquery-all.js:266 2 WebGL: INVALID_OPERATION: getAttribLocation: program not linked 0.0.0.0/:1 8 WebGL: INVALID_OPERATION: getUniformLocation: program not linked 0.0.0.0/:1 Could not initialise shader VALIDATE_STATUS: false, gl error [0] tquery-all.js:342 10 WebGL: INVALID_OPERATION: getUniformLocation: program not linked 0.0.0.0/:1 18 WebGL: INVALID_OPERATION: getAttribLocation: program not linked 0.0.0.0/:1 WebGL: INVALID_OPERATION: useProgram: program not valid 0.0.0.0/:1 WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly 0.0.0.0/:1 WebGL: INVALID_OPERATION: useProgram: program not valid 0.0.0.0/:1 WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly 0.0.0.0/:1 WebGL: INVALID_OPERATION: useProgram: program not valid 0.0.0.0/:1 WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly 0.0.0.0/:1 Error in event handler for (unknown): TypeError: Cannot read property 'clearText' of undefined at chrome-extension://piepponjhmpppjdllplegiagclpkncbf/content.js:535:40 at extensions::messaging:320:11 at Function.target.(anonymous function) (extensions::SafeBuiltins:19:14) at Event.dispatchToListener (extensions::eventbindings:386:22) at Event.dispatch (extensions::event_bindings:371:27) at Event.dispatch (extensions::event_bindings:392:17) at dispatchOnDisconnect (extensions::messaging:280:27) 0.0.0.0/:1 WebGL: INVALID_OPERATION: useProgram: program not valid 0.0.0.0/:1 WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly 0.0.0.0/:1 WebGL: INVALID_OPERATION: useProgram: program not valid 0.0.0.0/:1 WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly 0.0.0.0/:1 WebGL: INVALID_OPERATION: useProgram: program not valid 0.0.0.0/:1 WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly 0.0.0.0/:1 errors repeat...

chromium console output

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/31.0.1650.63 Chrome/31.0.1650.63 Safari/537.36 | WebGL 1.0 (OpenGL ES 2.0 Chromium) | WebKit | WebKit WebGL | WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium) tquery-all.js:266 WebGL: INVALID_OPERATION: getAttribLocation: program not linked tquery-all.js:743 WebGL: INVALID_OPERATION: getAttribLocation: program not linked tquery-all.js:743 WebGL: INVALID_OPERATION: getUniformLocation: program not linked tquery-all.js:743 WebGL: INVALID_OPERATION: getUniformLocation: program not linked tquery-all.js:743 WebGL: INVALID_OPERATION: getUniformLocation: program not linked tquery-all.js:743 WebGL: INVALID_OPERATION: getUniformLocation: program not linked tquery-all.js:743 WebGL: INVALID_OPERATION: getUniformLocation: program not linked tquery-all.js:743 WebGL: INVALID_OPERATION: getUniformLocation: program not linked tquery-all.js:744 WebGL: INVALID_OPERATION: getUniformLocation: program not linked tquery-all.js:744 WebGL: INVALID_OPERATION: getUniformLocation: program not linked tquery-all.js:744 Could not initialise shader VALIDATE_STATUS: false, gl error [0] tquery-all.js:342 10 WebGL: INVALID_OPERATION: getUniformLocation: program not linked tquery-all.js:343 18 WebGL: INVALID_OPERATION: getAttribLocation: program not linked tquery-all.js:344 WebGL: INVALID_OPERATION: useProgram: program not valid tquery-all.js:244 WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly tquery-all.js:284 WebGL: INVALID_OPERATION: useProgram: program not valid tquery-all.js:244 WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly tquery-all.js:284 WebGL: INVALID_OPERATION: useProgram: program not valid tquery-all.js:244 WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly tquery-all.js:284 Error in event handler for (unknown): TypeError: Cannot read property 'clearText' of undefined at chrome-extension://piepponjhmpppjdllplegiagclpkncbf/content.js:535:40 at extensions::messaging:320:11 at Function.target.(anonymous function) (extensions::SafeBuiltins:19:14) at Event.dispatchToListener (extensions::eventbindings:386:22) at Event.dispatch (extensions::event_bindings:371:27) at Event.dispatch (extensions::event_bindings:392:17) at dispatchOnDisconnect (extensions::messaging:280:27) extensions::event_bindings:375 WebGL: INVALID_OPERATION: useProgram: program not valid tquery-all.js:244 WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly tquery-all.js:284 WebGL: INVALID_OPERATION: useProgram: program not valid tquery-all.js:244 WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly tquery-all.js:284 WebGL: INVALID_OPERATION: useProgram: program not valid tquery-all.js:244 WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly tquery-all.js:284 errors repeat...

— Reply to this email directly or view it on GitHubhttps://github.com/jeromeetienne/tquery/issues/306 .

thehans commented 10 years ago

I got this by following the instructions here: http://jeromeetienne.github.io/tquery/#getStarted

curl -OL https://github.com/downloads/jeromeetienne/tquery/tqueryboilerplate.zip
unzip tqueryboilerplate.zip
cd tqueryboilerplate
make server

The server started with this message

Serving HTTP on 0.0.0.0 port 8000 ...

So I used the url "http://0.0.0.0:8000/" in my browser

thehans commented 10 years ago

I just checked Chrome browser(Version 31.0.1650.63 m) in Windows 7 32bit and it is also broken.

And this time I found this URL instead of running the boilerplate locally: http://jeromeetienne.github.io/tqueryboilerplate/

console output:

Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 | WebGL 1.0 (OpenGL ES 2.0 Chromium) | WebKit | WebKit WebGL | WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium) tquery-all.js:266
2
WebGL: INVALID_OPERATION: getAttribLocation: program not linked jeromeetienne.github.io/:1
8
WebGL: INVALID_OPERATION: getUniformLocation: program not linked jeromeetienne.github.io/:1
Could not initialise shader
VALIDATE_STATUS: false, gl error [0] tquery-all.js:342
10
WebGL: INVALID_OPERATION: getUniformLocation: program not linked jeromeetienne.github.io/:1
18
WebGL: INVALID_OPERATION: getAttribLocation: program not linked jeromeetienne.github.io/:1
WebGL: INVALID_OPERATION: useProgram: program not valid jeromeetienne.github.io/:1
WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly jeromeetienne.github.io/:1
GM_registerMenuCommand is not supported. VM181:74
WebGL: INVALID_OPERATION: useProgram: program not valid jeromeetienne.github.io/:1
WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly jeromeetienne.github.io/:1
WebGL: INVALID_OPERATION: useProgram: program not valid jeromeetienne.github.io/:1
WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly
errors repeat...
jeromeetienne commented 10 years ago

Thanks I will update On Dec 17, 2013 12:20 AM, "Hans L" notifications@github.com wrote:

I just checked Chrome browser(Version 31.0.1650.63 m) in Windows 7 32bit and it is also broken.

And this time I found this URL instead of running the boilerplate locally: http://jeromeetienne.github.io/tqueryboilerplate/

console output:

Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 | WebGL 1.0 (OpenGL ES 2.0 Chromium) | WebKit | WebKit WebGL | WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium) tquery-all.js:266 2 WebGL: INVALID_OPERATION: getAttribLocation: program not linked jeromeetienne.github.io/:1 8 WebGL: INVALID_OPERATION: getUniformLocation: program not linked jeromeetienne.github.io/:1 Could not initialise shader VALIDATE_STATUS: false, gl error [0] tquery-all.js:342 10 WebGL: INVALID_OPERATION: getUniformLocation: program not linked jeromeetienne.github.io/:1 18 WebGL: INVALID_OPERATION: getAttribLocation: program not linked jeromeetienne.github.io/:1 WebGL: INVALID_OPERATION: useProgram: program not valid jeromeetienne.github.io/:1 WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly jeromeetienne.github.io/:1 GM_registerMenuCommand is not supported. VM181:74 WebGL: INVALID_OPERATION: useProgram: program not valid jeromeetienne.github.io/:1 WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly jeromeetienne.github.io/:1 WebGL: INVALID_OPERATION: useProgram: program not valid jeromeetienne.github.io/:1 WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly errors repeat...

— Reply to this email directly or view it on GitHubhttps://github.com/jeromeetienne/tquery/issues/306#issuecomment-30711763 .

AlinCiocan commented 10 years ago

The same error here:

Windows 8.1, x64, on Chrome and Chrome Canary: http://pastebin.com/QMq7cvE4

But it works fine on Firefox, although the console outputs: http://pastebin.com/DAY5HBDs

lucaslanger commented 10 years ago

Having the same issue on chrome (win 32), but firefox seems to work!