visgl / visgl/deck.gl

[Bug] Warnings with HexagonLayer starting with version 9.1.0

Open
#9,503 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
14.6k
Forks
2.3k
Avg merge
2d 9h
Merged PRs (30d)
42

Description

Description

Starting with version 9.1.0 (no problem with 9.0.41), the following warnings are shown in the console when using HexagonLayer:

WebGL: INVALID_OPERATION: vertexAttribPointer: no ARRAY_BUFFER is bound and offset is non-zero (shown twice)
WebGL: INVALID_OPERATION: drawArraysInstanced: no buffer is bound to enabled attribute

(In my application, after updating deck.gl to 9.1.x, I also started getting

deck: Features not supported by GPU aggregation, falling back to CPU
WebGL: INVALID_VALUE: texSubImage2D: width or height out of range
[.WebGL-0x5c840006a200] GL_INVALID_VALUE: Desired resource size is greater than max texture size.

and the hexagons are not shown, but perhaps the cause for my warnings is also the cause for the warnings about INVALID_OPERATION.)

Flavors
  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CARTO
  • ArcGIS
Expected Behavior

No warnings, as it was the case with the versions 9.0.x

Steps to Reproduce

Check the console for this example and this example from the docs.

Environment
  • Framework version: 9.1.x
  • Browser: Firefox, Edge, Opera, Chrome
  • OS: Windows, Android
Logs
WebGL: INVALID_OPERATION: vertexAttribPointer: no ARRAY_BUFFER is bound and offset is non-zero
WebGL: INVALID_OPERATION: vertexAttribPointer: no ARRAY_BUFFER is bound and offset is non-zero
WebGL: INVALID_OPERATION: drawArraysInstanced: no buffer is bound to enabled attribute

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the HexagonLayer API example and hexagon-layer example linked in the issue, reproducing the console warnings on deck.gl 9.1.x and comparing them with 9.0.41. Trace the HexagonLayer rendering and GPU aggregation path from those entry points; done means the examples render hexagons without the reported WebGL warnings or fallback errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.