Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGL: INVALID_OPERATION: getBufferSubData: no buffer #103

Open
francesco-gallo opened this issue Jan 24, 2022 · 2 comments
Open

WebGL: INVALID_OPERATION: getBufferSubData: no buffer #103

francesco-gallo opened this issue Jan 24, 2022 · 2 comments

Comments

@francesco-gallo
Copy link

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

image

@PaoloBertuzzo
Copy link

News on this?

@anhle1476
Copy link

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:

  • Workaround: Always set the loaderSettings.generateLineRenders option to true
  • A check for lineIndexBuffer at the start of AbstractBufferSet.generateLines() is needed. But then you will have no way to indicate that this element is selected. So always changing the selected element's color might be a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants