bug: Massive RAM Usage >80Go
bug :lady_beetle:auto-triaged
### mapbox-gl-js version
v3.21.0
### Browser and version
Firefox 140.9.1esr (64-bit)
### Expected behavior
Rendering the full page with v3.19.0 consumes at the peak 600Mo total.
<img width="580" height="122" alt="Image" src="https://github.com/user-attachments/assets/63c8e904-ceaf-47f1-9525-b8f637d53d05" />
### Actual behavior
The exact same page with just the Mapbox GL JS version upgrade.
Consuming 16Go of RAM on first allocations.
It continues to increase, the user had to cut it when it reached 82Go of allocation.
`populateUBO` seems to be the active function at the moment when the massive allocation happened
<img width="1001" height="654" alt="Image" src="https://github.com/user-attachments/assets/1f184e6e-e314-4e5c-96a4-5cea602c6509" />
### Link to the demonstration
_No response_
### Steps to trigger the unexpected behavior
Unsure but visiting a Mapbox GL JS map with a Debian 13 with Firefox 140.9.1esr (64-bit) (latest ESR version) triggered the issue.
I am unsure what to provide as info.
The intuition that led me to downgrade Mapbox GL JS was https://github.com/mapbox/mapbox-gl-js/issues/13651
### Relevant log output
```shell
```
关闭于 2026-04-21 4 条评论