mirror of
https://github.com/smogon/sprites.git
synced 2026-04-17 23:42:29 -05:00
Remove malloc(): corrupted top size workaround
Update your imagick if you get it
This commit is contained in:
parent
2902ddeb37
commit
ac3dbe0178
|
|
@ -38,15 +38,8 @@ const proc = cp.spawn("magick", [
|
|||
stdio: ['pipe', 'inherit', 'inherit']
|
||||
});
|
||||
|
||||
// Write one at a time to avoid "malloc(): corrupted top size" error
|
||||
for (const entry of sheet.entries) {
|
||||
if (!proc.stdin.write(entry + "\n")) {
|
||||
// imagick doesn't like it when it receives the input too fast. This
|
||||
// seems to avoid a realloc() invalid next size error.
|
||||
await new Promise(resolve => {
|
||||
proc.stdin.once('drain', resolve);
|
||||
});
|
||||
}
|
||||
proc.stdin.write(entry + "\n");
|
||||
}
|
||||
proc.stdin.end();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user