opensourceBIM / BIMsurfer

The latest version of the BIM Surfer WebGL viewer for IFC
MIT License
382 stars 132 forks source link

vertex and shader WebGL2RenderingContext error #64

Closed halmsx closed 4 years ago

halmsx commented 4 years ago

im trying out bimsurfer bimsurfer3-0.0.270 example files with bimserver 1.5.180, and got into this errors. using mac catalina with latest chrome and firefox.

Screenshot 2020-01-06 at 1 06 45 PM

chrome error: Uncaught (in promise) TypeError: Failed to execute 'attachShader' on 'WebGL2RenderingContext': parameter 2 is not of type 'WebGLShader'.

in firefox it says TypeError: Argument 2 of WebGL2RenderingContext.attachShader is not an object

tried with bimserverapi 0.0.167 through 0.0.176.

what should be a working combination?

rainerbreuss commented 4 years ago

same Error in 0.0.272-SNAPSHOT: (tested with Chrome and FireFox)

vertex shader programmanager.js:337

method file line
loadShader @ programmanager.js 337
initShaderProgram @ programmanager.js 285
(anonymous) @ programmanager.js 226
setupProgram @ programmanager.js 225
generateShaders @ programmanager.js 163
load @ programmanager.js 117
(anonymous) @ viewer.js 435
init @ viewer.js 416
loadRevisionsByRoids @ bimserverviewer.js 60
mantinha commented 4 years ago

If you want to capture the canvas tag you can reach the Webgl2 property

image

Here it worked!

rubendel commented 4 years ago

This is kind of fixed (please read the commit message for more info), will be in the next release.