Error "Invalid typed array length" when writing image


Trying to write a legacy MacOS installer image from a DMG file to a CF card hooked up via USB, I get this error and the writing is cancelled

RangeError: Invalid typed array length
at Buffer.Uint8Array (native)
at FastBuffer (buffer.js:11:5)
at createUnsafeBuffer (buffer.js:37:10)
at Function.Buffer.alloc (buffer.js:141:12)
at ReadStream._read (/Applications/3rd-party/
at ReadStream._read (/Applications/3rd-party/
at (/Applications/3rd-party/
at maybeReadMore
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)

balenaEtcher is 1.4.9 on macOS 10.14.1


I managed to write my image by converting it to a “CD/DVD master” in Disk Utility and etching that instead.

Even so, might want to clean up the weird internal error on “strange” disk images