antvis / antvis/G6

[Bug]: 5.x用自定义节点渲染一万节点空白,报内存溢出,但是4.x canvas渲染同样数据是可以渲染出来的

Open
#7,566 1 comment 0 reactions 0 assignees View on GitHub
feature 💡
Dominant language
TypeScript
Stars
12.3k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug / 问题描述

Image
报内存溢出直接就不渲染了,空白了,而且数据量没有很大,在八九千还能渲染一下,超过9000直接不行。
排查了是否是自己代码的问题,用官方实例的最简单的自定义节点也不行
用官方实例的资金流向图,增加节点到一万直接卡死了

如果用内置的circle节点等可以渲染出来,用自定义节点就渲染不出来了。
4.x自定义节点可以渲染出来
这样导致升级性能反而不好了,不是说5.x的性能有很大改善吗?

### Reproduction link / 复现链接

_No response_

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

去官方实例的资金流转图增加节点到10000,渲染不出来,直接报错

### Version / 版本

Please select / 请选择

### OS / 操作系统

- [ ] macOS
- [x] 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 with the official fund-flow example and its custom-node configuration, reproducing on Windows and Chrome with 10,000 nodes. Compare custom nodes with built-in circle nodes and the reported 4.x behavior, then trace the out-of-memory failure. Done means the 10,000-node custom-node case renders without a blank canvas or crash.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.