Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak: possibly caused by bindings #34

Open
Jaifroid opened this issue Dec 11, 2022 · 2 comments
Open

Memory leak: possibly caused by bindings #34

Jaifroid opened this issue Dec 11, 2022 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Jaifroid
Copy link
Collaborator

Jaifroid commented Dec 11, 2022

Please see initial discussion at kiwix/kiwix-js#872.

I corroborate a memory leak, which is particularly evident when loading and searching with large ZIM archives. After loading more than two ZIM archives (in succession), only using libzim for the Xapian full-text search, an app is prone to crashing with an Emscripten "cannot enlarge memory" error.

If anyone has any clues on how to debug this kind of thing, I'd be very grateful to hear them.

@Jaifroid Jaifroid added bug Something isn't working help wanted Extra attention is needed labels Dec 11, 2022
@Jaifroid
Copy link
Collaborator Author

Memory leak seems particularly problematic when switching between NODEFS and WORKERFS inside Electron framework. When using only the WORKERFS and only for Full Text Search (for now), the leak seems to be sufficiently under control to be useable in an implementation.

@Jaifroid Jaifroid pinned this issue Dec 11, 2022
@stale
Copy link

stale bot commented May 26, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

@stale stale bot added the stale label May 26, 2023
@Jaifroid Jaifroid removed the stale label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant