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

out of memory during mass (well, 60-ish) thumbnail generations #7

Open
Peetz0r opened this issue Apr 4, 2021 · 0 comments
Open

out of memory during mass (well, 60-ish) thumbnail generations #7

Peetz0r opened this issue Apr 4, 2021 · 0 comments

Comments

@Peetz0r
Copy link

Peetz0r commented Apr 4, 2021

peter@polderbak ~/kiekjes> node server.js
Server listening on port 4567...
Unhandled error! { Error: spawn ENOMEM
    at exports._errnoException (util.js:1020:11)
    at ChildProcess.spawn (internal/child_process.js:328:11)
    at Object.exports.spawn (child_process.js:370:9)
    at spawn (/home/peter/kiekjes/node_modules/cross-spawn/index.js:17:18)
    at gm._spawn (/home/peter/kiekjes/node_modules/gm/lib/command.js:224:14)
    at /home/peter/kiekjes/node_modules/gm/lib/command.js:101:12
    at series (/home/peter/kiekjes/node_modules/array-series/index.js:11:36)
    at gm._preprocess (/home/peter/kiekjes/node_modules/gm/lib/command.js:177:5)
    at gm.write (/home/peter/kiekjes/node_modules/gm/lib/command.js:99:10)
    at gm.tryCatcher (/home/peter/kiekjes/node_modules/bluebird/js/release/util.js:16:23)
    at gm.ret [as writeAsync] (eval at makeNodePromisifiedEval (/home/peter/kiekjes/node_modules/bluebird/js/release/promisify.js:205:1), <anonymous>:13:39)
    at Promise.try.then (/home/peter/kiekjes/lib/thumbnailer/index.js:52:20)
    at tryCatcher (/home/peter/kiekjes/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/peter/kiekjes/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/home/peter/kiekjes/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/home/peter/kiekjes/node_modules/bluebird/js/release/promise.js:649:10)
  cause:
   { Error: spawn ENOMEM
       at exports._errnoException (util.js:1020:11)
       at ChildProcess.spawn (internal/child_process.js:328:11)
       at Object.exports.spawn (child_process.js:370:9)
       at spawn (/home/peter/kiekjes/node_modules/cross-spawn/index.js:17:18)
       at gm._spawn (/home/peter/kiekjes/node_modules/gm/lib/command.js:224:14)
       at /home/peter/kiekjes/node_modules/gm/lib/command.js:101:12
       at series (/home/peter/kiekjes/node_modules/array-series/index.js:11:36)
       at gm._preprocess (/home/peter/kiekjes/node_modules/gm/lib/command.js:177:5)
       at gm.write (/home/peter/kiekjes/node_modules/gm/lib/command.js:99:10)
       at gm.tryCatcher (/home/peter/kiekjes/node_modules/bluebird/js/release/util.js:16:23)
       at gm.ret [as writeAsync] (eval at makeNodePromisifiedEval (/home/peter/kiekjes/node_modules/bluebird/js/release/promisify.js:205:1), <anonymous>:13:39)
       at Promise.try.then (/home/peter/kiekjes/lib/thumbnailer/index.js:52:20)
       at tryCatcher (/home/peter/kiekjes/node_modules/bluebird/js/release/util.js:16:23)
       at Promise._settlePromiseFromHandler (/home/peter/kiekjes/node_modules/bluebird/js/release/promise.js:547:31)
       at Promise._settlePromise (/home/peter/kiekjes/node_modules/bluebird/js/release/promise.js:604:18)
       at Promise._settlePromise0 (/home/peter/kiekjes/node_modules/bluebird/js/release/promise.js:649:10) code: 'ENOMEM', errno: 'ENOMEM', syscall: 'spawn' },
  isOperational: true,
  code: 'ENOMEM',
  errno: 'ENOMEM',
  syscall: 'spawn' }

Okay, maybe it's because I ran it on a potato with a bunch of high-res images :p

Still, would be nice to run only a few imagemagicks at a time, and not crash when one fails?

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

1 participant