prism-media: Error: spawn ENOMEM

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

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (1 by maintainers)

Most upvoted comments

A desperate cry for help 😢

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