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
Uploading large .aac broke sync? #2163
Comments
Hi, could you post the JS memory heap error? Is it possible that there isn't simply enough RAM? Trilium needs enough RAM to read the whole file into memory (with some overhead). |
I think this is what showed up at one point:
edit: just saw one now, this just happened out of the blue:
|
Yeah, so it looks like the process doesn't have enough memory. |
That's odd... I've been running it on my Raspberry Pi 4 for over a year without any issues until now? It only started once I tried uploading this .aac file. If I start up the server again now and hit sync in the client, it still says it's exceeded 5000 milliseconds... |
Yes, the crashing started after you uploaded the AAC file. When it tries to sync, it will first read the note into memory (in this case it's 150 MB file - which causes the crash), split it and sync piece by piece. Trilium is not really designed to act like big file storage ... Probably the easiest way to recover from this would be to got to the AAC note, click on "upload new revision" and upload whatever small file. Then go to "note revisions" and click on "delete all revisions". With that the AAC file is completely gone from the database and the sync will continue. |
I'm using v0.47.5 and out of curiosity I tried uploading a ~150mb .aac file to one of the notes; it seemed to fail the upload and crash the app, but when I re-opened it I found a 'successful' .aac note attached as a child. I could play it and it worked fine. However, I noticed the sync was unable to complete, and the server crashed with a JS memory heap error.
After a few server reboots, this is what I see in the server when it starts up:
It won't crash again if left alone, but if I hit the sync button it gives the
Process exceeded time limit 5000
error. Is there an easy fix for this?The text was updated successfully, but these errors were encountered: