antvis / antvis/G6

[Bug]: Browser crash due to v5 memory usage

Open
#6,596 5 comments 1 reaction 0 assignees View on GitHub
bug 🐛 waiting for maintainer
Dominant language
TypeScript
Stars
12.3k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug / 问题描述

数据量没有变化的情况下,随着操作次数越多,内存占用逐渐累加,最后导致浏览器崩溃。
图1 操作前
![image](https://github.com/user-attachments/assets/30ad92ad-6370-4bad-9f92-602faff6b38e)
图2 推拽后
![image](https://github.com/user-attachments/assets/0af7a3c1-2e9a-4be2-b55c-3a4272b9ef9c)
v4没有这个问题,并且同样数据量v4内存是v5的一半
请问有什么方案可以应急解决一下吗?

### Reproduction link / 复现链接

_No response_

### Steps to Reproduce the Bug or Issue / 重现步骤

_No response_

### G6 Version / G6 版本

🆕 5.x

### OS / 操作系统

- [X] macOS
- [ ] Windows
- [ ] Linux
- [ ] Others / 其他

### Browser / 浏览器

- [X] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported memory growth in G6 5.x on Chrome for macOS, using repeated drag operations with unchanged data. Compare memory usage against G6 v4; done means repeated operations no longer steadily accumulate memory or eventually crash the browser.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.