You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "ekatrif (via GitHub)" <gi...@apache.org> on 2025/12/25 12:50:22 UTC
[I] Deck.gl Contour bufferData error [superset]
ekatrif opened a new issue, #36838:
URL: https://github.com/apache/superset/issues/36838
### Bug description
Hi! This bug occurred when trying to create a test Contour chart.
1. Create new deck.gl Contour chart with sf_population_polygons dataset
2. Add Population in Weight field
3. Try to change Cell cize
4. UI freezes, multiple warnings in console:`WebGL: INVALID_OPERATION: bufferData: size more than 32-bit`
Does anyone have any ideas on how to fix this?
<img width="1728" height="995" alt="Image" src="https://github.com/user-attachments/assets/14b59387-0e38-4bbd-a489-18c11972d831" />
### Screenshots/recordings
_No response_
### Superset version
master / latest-dev
### Python version
3.9
### Node version
16
### Browser
Chrome
### Additional context
_No response_
### Checklist
- [ ] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Deck.gl Contour bufferData error [superset]
Posted by "YousufFFFF (via GitHub)" <gi...@apache.org>.
YousufFFFF commented on issue #36838:
URL: https://github.com/apache/superset/issues/36838#issuecomment-3765604899
Thanks Damian! I’ve already started to implement a fix that adds safety guards around cellSize to prevent GPU/WebGL crashes. I’m doing some final testing and will open a PR shortly. Will reach out on Slack if I have any questions 🙌
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Deck.gl Contour bufferData error [superset]
Posted by "YousufFFFF (via GitHub)" <gi...@apache.org>.
YousufFFFF commented on issue #36838:
URL: https://github.com/apache/superset/issues/36838#issuecomment-3765516102
Hi @rusackas @DamianPendrak !
I’ve reproduced this issue locally on the latest master.
Changing the cell size causes the UI to freeze and triggers deck.gl / luma.gl WebGL errors (context resets, shader teardown, etc.).
I’ve captured console logs and screenshots and I’m starting to investigate the root cause.
I plan to work on a fix and open a PR if thats okay.
<img width="1920" height="1020" alt="Image" src="https://github.com/user-attachments/assets/0cdd5b4e-a37e-447a-8be7-3747860c41d7" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Deck.gl Contour bufferData error [superset]
Posted by "DamianPendrak (via GitHub)" <gi...@apache.org>.
DamianPendrak commented on issue #36838:
URL: https://github.com/apache/superset/issues/36838#issuecomment-3765555497
@YousufFFFF feel free to open a PR. If you have any questions, you can reach me on the Superset Slack.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Deck.gl Contour bufferData error [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #36838:
URL: https://github.com/apache/superset/issues/36838#issuecomment-3691415878
<!-- Greeting -->
Hi @ekatrif! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
<!-- Answer -->
This error happens because setting a very small cell size in the deck.gl Contour chart causes the number of grid cells (and thus the data buffer sent to WebGL) to explode, exceeding the 32-bit buffer size limit and freezing the UI. Superset passes your cell size value directly to deck.gl without any validation or upper/lower bounds, so extreme values can easily trigger this issue [see code reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Contour/Contour.tsx#L19-L97).
To avoid this, use a larger cell size (e.g., 200 or 300 meters) and avoid very small values. There’s currently no built-in safeguard in Superset to prevent this, so you’ll need to choose values that keep the grid resolution reasonable for your dataset and viewport.
If you want to prevent this in the UI, it would require adding validation or min/max limits to the cell size control. Right now, Superset acts as a thin wrapper over deck.gl and does not handle these errors, so the best workaround is to avoid small cell sizes that could cause buffer overflows.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/beef718a-8462-4d61-a175-fd4dbb85a783?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/beef718a-8462-4d61-a175-fd4dbb85a783?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/beef718a-8462-4d61-a175-fd4dbb85a783?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/beef718a-8462-4d61-a175-fd4dbb85a783?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/beef718a-8462-4d61-a175-fd4dbb85a783?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/beef718a-8462-4d61-a175-fd4dbb85a783?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/beef718a-8462-4d61-a175-fd4dbb85a783?feedback_type=other)</sup>
[](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=This%20error%20happens%20because%20setting%20a%20very%20small%20cell%20size%20in%20the%20deck.gl%20Contour%20chart%20causes%20the%20number%20of%20grid%20cells%20%28and%20thus%20the%20data%20buffer%20sent%20to%20WebGL%29%20to%20explode%2C%20exceeding%20the%2032-bit%20buffer%20size%20limit%20and%20freezing%20the%20UI.%20Superset%20passes%20your%20cell%20size%20value%20directly%20to%20deck.gl%20without%20any%20validation%20or%20upper/lower%20bounds%2C%20so%20extreme%20values%20can%20easily%20trigger%20this%20issue%C2%A0%5Bsee%20code%20reference%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Contour/Contour.tsx%23L19-L97%29.%0A%0ATo%20avoid%20this%2
C%20use%20a%20larger%20cell%20size%20%28e.g.%2C%20200%20or%20300%20meters%29%20and%20avoid%20very%20small%20values.%20There%E2%80%99s%20currently%20no%20built-in%20safeguard%20in%20Superset%20to%20prevent%20this%2C%20so%20you%E2%80%99ll%20need%20to%20choose%20values%20that%20keep%20the%20grid%20resolution%20reasonable%20for%20your%20dataset%20and%20viewport.%0A%0AIf%20you%20want%20to%20prevent%20this%20in%20the%20UI%2C%20it%20would%20require%20adding%20validation%20or%20min/max%20limits%20to%20the%20cell%20size%20control.%20Right%20now%2C%20Superset%20acts%20as%20a%20thin%20wrapper%20over%20deck.gl%20and%20does%20not%20handle%20these%20errors%2C%20so%20the%20best%20workaround%20is%20to%20avoid%20small%20cell%20sizes%20that%20could%20cause%20buffer%20overflows.) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent
/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/36838)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Deck.gl Contour bufferData error [superset]
Posted by "hassaansaleem28 (via GitHub)" <gi...@apache.org>.
hassaansaleem28 commented on issue #36838:
URL: https://github.com/apache/superset/issues/36838#issuecomment-3691994083
I’ll try to reproduce this on the latest master. If I can confirm it, I’ll investigate a fix and update here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Deck.gl Contour bufferData error [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #36838: Deck.gl Contour bufferData error
URL: https://github.com/apache/superset/issues/36838
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Deck.gl Contour bufferData error [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #36838:
URL: https://github.com/apache/superset/issues/36838#issuecomment-3745711351
Any word @hassaansaleem28 ?
Maybe @DamianPendrak has some idea here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org