gm icon indicating copy to clipboard operation
gm copied to clipboard

[Error: spawn Unknown system errno 7] on large amount of primitive draw calls

Open bigtimecriminal opened this issue 11 years ago • 2 comments

Trying to use this module to draw a large network of 10,000 lines. When the number of DrawLine calls exceeds 2,500 write() returns the following error.

{ [Error: spawn Unknown system errno 7] code: 'Unknown system errno 7', errno: 'Unknown system errno 7', syscall: 'spawn' }

Is this anticipated behavior for this module? Is there any way I can use this module to draw such a large amount of primitives?

bigtimecriminal avatar May 18 '15 14:05 bigtimecriminal

That error is coming from node not from gm. What OS/node version are you using?

rwky avatar May 18 '15 20:05 rwky

Getting the same error while attempting to resize images. Appears to be images >100kb or thereabouts. OSX 10.10.1, node 10.33.

Update: okay, dumping out the spawn args I think I see the issue. I'm passing a file buffer to gm which is passing the buffer string to ImageMagick as an arg and past a certain file size the arg is too big. I'm going to just dump the buffer to a tmp file and resize it from there.

aradnom avatar May 29 '15 17:05 aradnom