octave bug…

Wenn octave mit dem folgenden Fehler abstürzt:

octave:1> imwrite(uint16(zeros(100,100,3)), “test.tiff”)
assertion “semaphore_info != (SemaphoreInfo *) NULL” failed: file “/pub/cygports
/graphicksmagick/GraphicsMagick-1.3.12-1/src/GraphicsMagick-1.3.12/magick/semaphore.c”, line 525, function: LockSemaphoreInfo
panic: Aborted — stopping myself…
attempting to save variables to `octave-core’…
save to `octave-core’ complete
Aborted (core dumped)

sollte man vor dem erstmaligen Schreiben einen dummy read durchführen – dann wird imagemagick richtig initialisiert und das schreiben funktioniert:

octave:1> imread(“example.tiff”);
octave:2> imwrite(uint16(zeros(100,100,3)), “test.tiff”)
octave:3>

Der Fehler hat mich jetzt ein paar Stunden gekostet …

This entry was posted in Home. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please insert the signs in the image:

Please leave these two fields as-is:

Protected by Invisible Defender. Showed 403 to 3,898 bad guys.