bugGNU Octave - Bugs: bug #52792, imread: error accessing...


bug #52792: imread: error accessing configuration and Octave crash on Windows

Submitted by:  Stephan Gebauer <stephan_ii>
Submitted on:  Wed 03 Jan 2018 11:18:47 AM UTC  
Category: Octave FunctionSeverity: 4 - Important
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Microsoft Windows

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Tue 20 Mar 2018 06:44:01 PM UTC, comment #9:

Yes, Octave 5.4.0+
- complains about "delegates.mgk"
- crashes after the second try of imread.

BTW in the original example the argument order was wrong. I used this:

otherwise a file "append.pdf" was created rather than "animation.pdf". Could be another bug.

BTW Complaints about a missing delegates.mgk are an often returning thing that pops up every once and a while, on my Linux and Windows boxes. Apparently graphicsmagick is a bit unstable?

release => dev

Philip Nienhuis <philipnienhuis>
Project Member
Tue 20 Mar 2018 07:38:00 AM UTC, comment #8:

Can someone with access to Windows test Octave 4.2.2 to verify that this bug causes an Octave crash?

Mike Miller <mtmiller>
Project Administrator
Wed 03 Jan 2018 09:34:38 PM UTC, comment #7:


performend setenv with double quotes, still the same error.

Stephan Gebauer <stephan_ii>
Wed 03 Jan 2018 08:31:07 PM UTC, comment #6:

If you use double quotes, backslashes \ are interpreted so you have to escape them or using single quotes. So please try


Andreas Weber <andy1978>
Project Member
Wed 03 Jan 2018 06:22:23 PM UTC, comment #5:


when i use imread to read a .png or .jpg file there is no problem. checked with imshow the figures are right loaded, works fine.

even when i read an abitary .pdf file the same error occurs.

the example file is attached, try to read with following comand:

will cause the error.

checked the datapath for the "delegates.mgk", this file at the right folder : ...\Octave_421\lib64\GraphicsMagick-1.3.25\config

my local "delegates.mgk" also attached here.
doesn't change anything, error still occurs.

Stephan Gebauer <stephan_ii>
Wed 03 Jan 2018 04:07:41 PM UTC, comment #4:

In the 4.2.1 zip for windoze the configuration file is in "lib64/GraphicsMagick-1.3.25/config/delegates.mgk"

@Stephan: Can you confirm that there is a delegation.mgk in your installation and can you try to add

before your posted code? Can you also confirm that's just a problem with imread and pdfs (try to load an arbitrary PDF) and other formats like png or jpg work as expected?

Andreas Weber <andy1978>
Project Member
Wed 03 Jan 2018 03:53:05 PM UTC, comment #3:

The code works fine under Debian stretch with Octave 4.2.1 so this looks like a problem with the windows build

Andreas Weber <andy1978>
Project Member
Wed 03 Jan 2018 01:57:09 PM UTC, comment #2:


i tried to put the close() after the print, but no change.
Also when waiting for some minutes and then perform the imread,
will still cause this error.

Stephan Gebauer <stephan_ii>
Wed 03 Jan 2018 11:58:12 AM UTC, comment #1:

You could try putting a close() after the print(). The animation.pdf
may not have been fully written out.

Michael Godfrey <godfrey>
Project Member
Wed 03 Jan 2018 11:18:47 AM UTC, original submission:


when executing following code snipped:

octave throws this error under windows 10:

error: Magick++ exception: Magick: Unable to access configuration file (delegates.mgk) reported by magick/blob.c:1946 (GetConfigureBlob)
error: called from
_imread_ at line 78 column 10
imageIO at line 117 column 26
imread at line 106 column 30

when i excute again
then Octave crashes completly.

Stephan Gebauer <stephan_ii>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #42809:  delegates.mgk added by stephan_ii (7KiB - application/octet-stream)
file #42810:  93xxc_appendix_c.pdf added by stephan_ii (227KiB - application/pdf)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by andy1978 (Posted a comment)
  • -unavailable- added by godfrey (Posted a comment)
  • -unavailable- added by stephan_ii (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 20 Mar 2018 06:44:01 PM UTCphilipnienhuisStatusNeed Info=>Confirmed
    Tue 20 Mar 2018 07:38:00 AM UTCmtmillerCategoryNone=>Octave Function
      Severity3 - Normal=>4 - Important
      StatusNone=>Need Info
      SummaryError and crash with imread=>imread: error accessing configuration and Octave crash on Windows
    Wed 03 Jan 2018 06:23:13 PM UTCstephan_iiAttached File-=>Added delegates.mgk, #42809
      Attached File-=>Added 93xxc_appendix_c.pdf, #42810

    Back to the top

    Powered by Savane 3.1-cleanup1