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

V2 Preview - Allocation failed - JavaScript heap out of memory (1.99.14) #319

Closed
wsegatto opened this issue Jan 23, 2021 · 5 comments
Closed

Comments

@wsegatto
Copy link

wsegatto commented Jan 23, 2021

Describe the bug
As of 1.99.14 I cannot open the Server. Node and WebGUI work fine. This issue was not happening in 1.99.09.
Nothing gets logged to the server logs.

Note: this is a clean library with a clean database, no content.

To Reproduce
Open the server. I'm running a RPI 4 with 4GB of RAM on Debian ARMv7.

Screenshots

pi@raspberrypi:/opt/Tdarr2/Tdarr_Server $ ./Tdarr_Server 
undefined
120
Preparing environment
/opt/Tdarr2/configs/Tdarr_Server_Config.json
{ serverPort: '8266', handbrakePath: '', ffmpegPath: '' }

[2021-01-23T16:48:32.762] [WARN] Tdarr_Server - Not running inside a Docker container

<--- Last few GCs --->

[1135:0x55fecf0]     8858 ms: Mark-sweep 20.4 (23.0) -> 20.4 (25.0) MB, 68.9 / 0.0 ms  (average mu = 0.019, current mu = 0.007) allocation failure GC in old space requested
[1135:0x55fecf0]     8928 ms: Mark-sweep 20.4 (25.0) -> 20.4 (22.0) MB, 69.8 / 0.0 ms  (average mu = 0.013, current mu = 0.007) last resort GC in old space requested
[1135:0x55fecf0]     8998 ms: Mark-sweep 20.4 (22.0) -> 20.4 (22.0) MB, 70.3 / 0.0 ms  (average mu = 0.007, current mu = 0.001) last resort GC in old space requested

<--- JS stacktrace --->

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
Aborted

Are there any settings to tweak the behavior here?

Thanks!

@HaveAGitGat
Copy link
Owner

Thanks, this is a quick fix which will be in V2 today. I increased the RAM limit (not because Tdarr now uses more RAM but for those with huge libraries) but it seems in your case it wants to have that 'RAM limit' amount of RAM available. I'll reset the RAM limit to default on ARM.

@HaveAGitGat
Copy link
Owner

V2 is now out. Please re-open if you have the same issue.

@wsegatto
Copy link
Author

I'll test it today. Thank you for your efforts!

@HaveAGitGat
Copy link
Owner

Great, thanks :)

@wsegatto
Copy link
Author

I can confirm the issue does not happen in V2. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants