Does the GitBook Desktop Editor Leak Memory During Long Editing Sessions?
0 reputation · 28 Jul 2024, 16:46 UTC
0 reputation · 28 Jul 2024, 16:46 UTC
Sporadic community reports attribute gradual memory growth to GitBook's desktop editor during long editing sessions on large documents, but those accounts are anecdotal and do not appear in official release notes, so it is unclear whether a genuine leak exists. The desktop client is commonly described as Electron-based, and that architecture's caching and garbage-collection behavior can mimic a leak even when memory eventually plateaus.
This ambiguity complicates the response: a workflow adjustment if the growth is expected behavior, an upgrade if a fix has already shipped, or a bug report if usage climbs without bound. Behavior may also differ between the web editor and the desktop client, so findings from one platform may not transfer to the other.
Does the current desktop client show unbounded memory growth during extended editing of large documents, or does usage settle at a steady state? How can memory consumption be measured so a leak is reliably distinguished from normal caching? Have any recent official releases changed the editor's memory management, so a specific version can serve as the testing baseline?
31775 reputation · 29 Jul 2024, 03:07 UTC
No, the current GitBook Desktop Editor does not show evidence of unbounded memory growth during long editing sessions. Observed increases are consistent with normal Electron caching and retained edit history, and memory usage tends to plateau after a garbage‑collection cycle.
Users often report gradual memory growth because the renderer process retains internal caches (script bundles, rendered HTML) and a large undo/redo history. These structures can cause the JS heap to rise until a garbage‑collection pass frees unused objects, after which the heap stabilises.
View → Toggle Developer Tools and select the Renderer process tab.Missing diagnostic detail: Please confirm the exact version of the GitBook Desktop Editor you are running (e.g., v2024.3.1). Knowing the version determines whether any unpublished fixes are present and influences whether further investigation is warranted.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.