Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Massive memory leak: all DOM nodes will be retained forever

オープン
#2,866 コメント 2 件 リアクション 4 件 担当者 1 名 GitHub で見る

@idebenone がすでに取り組んでいます。

2024年11月21日 から。

評価

この issue はまだ評価されていません。

説明

bug important

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:

  1. Load some content into the editor (the demo website will do)
  2. delete the content or load new content
  3. 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.

主要言語
TypeScript
スター
32k
フォーク
2.2k
平均マージ
2日 1時間
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

codex-team/editor.js のほかの issue

codex-team/editor.js の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。