opensourceBIM / BIMsurfer

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

WebGL: INVALID_OPERATION: getBufferSubData: no buffer #103

Open francesco-gallo opened 2 years ago

francesco-gallo commented 2 years ago

When I click a point on a loaded project I get the following error

image

PaoloBertuzzo commented 2 years ago

News on this?

anhle1476 commented 2 years ago

In my case, if the loaderSettings.generateLineRenders option is turned OFF and you pick an element -> then the GeometryLoader.processPreparedBuffer() method will not prepare the lineIndices for the buffer -> the FrozenBufferSet.lineIndexBuffer will be undefined or null -> binding that lineIndexBuffer to WebGL will be failed and there will be no buffer to run createLineRenderer

I handle this error by: