question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: spawn ENOMEM

See original GitHub issue

Issue:

I am getting this error, seemingly at random, after trying to start a stream:

(node:14009) UnhandledPromiseRejectionWarning: Error: spawn ENOMEM
    at ChildProcess.spawn (internal/child_process.js:408:11)
    at Object.spawn (child_process.js:553:9)
    at Function.create (/home/br88c/github/peter/node_modules/prism-media/src/core/FFmpeg.js:155:25)
    at new FFmpeg (/home/br88c/github/peter/node_modules/prism-media/src/core/FFmpeg.js:44:27)
    at StreamDownloader (/home/br88c/github/peter/node_modules/discord-ytdl-core/index.js:45:24)
    at Object.play (/home/br88c/github/peter/src/modules/streamhandler.js:57:22)
    at Object.execute (/home/br88c/github/peter/src/commands/play.js:135:27)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

It appears it’s having trouble with starting FFMPEG, but I am unsure of the cause. Normally it works completely fine, then it’ll start throwing this error and will continue to throw this error until I restart my code. Help is greatly appreciated!

Further details:

  • Operating System: Debian 10
  • Node.js version: 12.20.0
  • Commit I’m using: 1.2.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Lioness100commented, Jun 4, 2021

A desperate cry for help 😢

1reaction
castdriancommented, Jun 4, 2021

What is Amish supposed to do? Download more RAM for you? Like please just move on.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js catch ENOMEM error thrown after spawn
It happens when the server is out of memory and can't be reproduced with a particular image. That makes it hard to test...
Read more >
Source control module fails with Error: spawn ENOMEM #63866
ENOMEM means you're out of memory. Do you have limited RAM?
Read more >
Build fails with "Error: spawn ENOMEM" - CircleCI Discuss
our angular 7 builds randomly fails with “Error: spawn ENOMEM” It happened a while back (every build), and our solution at the time...
Read more >
JavaScript : Node.js catch ENOMEM error thrown after spawn
JavaScript : Node.js catch ENOMEM error thrown after spawn [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ] JavaScript ...
Read more >
Bench update error Error: spawn ENOMEM - ERPNext Forum
Hey guys, I am trying to do a bench update and the following errors keeps popping up at different stages of the build...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found