Massive memory leak: all DOM nodes will be retained forever
@idebenone đang làm issue này rồi.
Từ ngày 21/11/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
When using the Editor and loading longer and multiple document the number of DOM nodes in the document keeps growing and never goes down again.
Using Chrome Developer tools memory analyzer and looking for "detached DOM nodes" shows all the "ce-block" divs that were ever loaded in the editor.
Steps to reproduce:
- Load some content into the editor (the demo website will do)
- delete the content or load new content
- look at the Chrome Developer Tools memory Analyzer
Expected behavior:
the DOM nodes are not retained forever, but get garbage collected after they have been deleted or a new document has been loaded (using render())
Editor.js version:
2.30.6 (but i think all version will be affected)
Plugins you use with their versions:
multiple, but the problem also occurs with the demo website and the default plugins. The problem is in the core of the editor.
I consider this a major bug, because it means every longer running application using the Editor will leak memory until it gets unusable.
- Ngôn ngữ chính
- TypeScript
- Star
- 32k
- Fork
- 2.2k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codex-team/editor.js
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
codex-team/editor.js#3037 ·
-
Floating Promise Anti-Pattern & Premature Caret in Multi-Block PasteCó thể đã có người làm @anshurajbisoyi98-ctrl đã nhận 18 ngày trước. Đang mởbug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
codex-team/editor.js#3032 · 1 bình luận ·
-
Silent Data Loss & Broken Error Contract in Saver.save()Có thể đã có người làm @Sion612 đã nhận 28 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
codex-team/editor.js#3030 ·
-
Complete Omission of block.destroy() in Blocks CollectionCó thể đã có người làm @Minhal128 đã nhận 27 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
codex-team/editor.js#3029 ·
-
Bug: Link cannot be removedCó thể đã có người làm @prathmeshyelne đã nhận 134 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
codex-team/editor.js#3005 · 1 bình luận ·
Tất cả issue của codex-team/editor.js
Issue tương tự
-
bug P3 UI/UX
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
StellarState/SS-backend#712 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: backend bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
snapotter-hq/SnapOtter#3473 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
gitroomhq/postiz-app#2304 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Resolve CI maintenance findingsĐang mởharlan-agent-ready-to-implement routine:ci-review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
harlan-zw/unlighthouse#454 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày