-
Notifications
You must be signed in to change notification settings - Fork 52
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
Out of memory errors after creating enough large documents in repo #330
Comments
Alternative steps to reproduce: https://github.com/georgewsu/automerge-client-test/tree/file_error
This branch creates a doc from json file contents. The generated json file was created using https://json-generator.com/ with repeat 10000, 10000. |
I haven’t had a chance to verify this myself, but it looks as though you are passing an automerge document in to
Essentially, you might have better luck if you skip the |
Hi, unfortunately that still doesn't prevent the error from happening. It does save a step and reduce the time it takes at least. Thanks |
To clarify, it takes multiple documents to trigger the error on the server:
|
fyi, the error message "recursive use of an object detected which would lead to unsafe aliasing in rust" is being thrown from the call to you can test it out by wrapping the call to |
Changed issue title from "Error: recursive use of an object detected which would lead to unsafe aliasing in rust" to "Out of memory errors after creating enough large documents in repo" |
Same issue as #358 |
Hi, running in to this error when testing an automerge client with a 10MB test document.
Node.js v18.15.0
Steps to reproduce:
Start the sync server
Then run the client
https://github.com/georgewsu/automerge-client-test/tree/error_recursive_use
code excerpt:
https://github.com/georgewsu/automerge-client-test/blob/error_recursive_use/src/client.ts
Result:
The text was updated successfully, but these errors were encountered: