openlayers / openlayers/openlayers

webgl memory leak

Open
#15,910 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
12.6k
Forks
3.2k
Avg merge
2d 17h
Merged PRs (30d)
21

Description

在官网的例子中,我似乎发现了内存泄漏,每次平移或者缩放时,内存就会增加,特别是数据量较大的时候,浏览器会因为内存的增加而变得卡顿

下面是我打开官网的例子测试的情况,可以看到内存一直在增加且无法清除
image

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 webgl-draw-line.html example linked in the issue and reproduce the memory increase while panning or zooming with a large dataset. Inspect the example's WebGL rendering path and use browser memory tools to identify retained resources; done means repeated navigation no longer causes unbounded memory growth.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.