Raster Extensions crash Inkscape
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Inkscape |
Medium
|
Patrick Storz |
Bug Description
Inkscape shuts down each time a raster extension is tried to be applied on an image (bitmap).
OS: Windows 10 (64 bits)
Inkscape 0.92.2
tags: | added: win64 |
tags: | added: raster windows10 |
Alvin Penner (apenner) wrote : | #2 |
crash not reproduced on the 0.92.x branch:
inkscape-
Patrick Storz (ede123) wrote : | #3 |
Seems to happen with all *embedded* images; *linked* images seem to work just fine.
@Alvin: As this might be a packaging issue and/or related to the specific version of ImageMagick used could you comment on build method (i.e. MSYS2 or devlibs)?
Gonzalo (gonzm8) wrote : | #4 |
With *embedded* images, Inkscape closes without any advise/error.
With *linked*, extensions don't work and the image is equal to before use the extension (from Raster)
Alvin Penner (apenner) wrote : | #5 |
using devlibs32 for the 0.92.x branch compile
and using 32 bit exe file for the stable release
there is a difference in the imagemagick files:
for the 0.92.x branch with devlibs I get:
Directory of C:\inkscape-
08/05/2016 10:20 AM 705,752 libMagick++-3.dll
08/05/2016 10:20 AM 5,390,569 libMagickCore-3.dll
08/05/2016 10:20 AM 1,057,933 libMagickWand-3.dll
for the stable 92.2 release I get:
Directory of C:\Program Files (x86)\Inkscape
04/05/2016 02:36 PM 435,112 libMagick+
04/05/2016 02:36 PM 2,094,656 libMagickCore-
04/05/2016 02:36 PM 1,129,513 libMagickWand-
Patrick Storz (ede123) wrote : | #6 |
Stable Inkscape 0.92.2 (5c3e80d, 2017-08-06) (both 32/64-bit) is compiled with MSYS2 and has ImageMagick 6.9.3.7.
I just confirmed also stable 0.92.1 (64-bit, devlibs64) is working which uses ImageMagick 6.9.0 (32-bit devlibs use ImageMagick 6.5.9).
I'll see if I can find out whats going on this evening...
Patrick Storz (ede123) wrote : | #7 |
It's a relocation issue with ImageMagick...
If you have Inkscape installed in "root_dir/
Alvin Penner (apenner) wrote : | #9 |
but Inkscape is not installed in the root dir, it is installed in
C:\Program Files (x86)\Inkscape>
Patrick Storz (ede123) wrote : | #10 |
Call "root_dir" -> "parent_dir" if it suits you better...
In your case "root/parent_dir" would be "C:\Program Files (x86)" and ImageMagick would search for files in "C:\Program Files (x86)\etc" and "C:\Program Files (x86)\lib".
Patrick Storz (ede123) wrote : | #11 |
I committed a fix for the crashing issue in
https:/
(this will not "fix" the raster extension on it's own, but at least Inkscape should not crash anymore if anything goes wrong and a helpful message should be printed to the command line)
In order to work around the relocation issue in ImageMagick I rebuilt the package in a way that compiles all vital parts of the program into the main library (I guess this is also how the versions in devlibs/devlibs64 were compiled). While this does not magically repair relocation it at least ensures basic functionality as no external pieces are required anymore.
I updated the MSYS2 build with this custom ImageMagick built in
https:/
so CI builds should already be working properly (feel free to test as I'm not often using raster extensions myself and therefore do not know how they're "supposed" to work)
For future reference: I opened an issue about the relocation problems for the MSYS2 project at
https:/
Changed in inkscape: | |
importance: | Undecided → Medium |
status: | Confirmed → Fix Committed |
assignee: | nobody → Eduard Braun (eduard-braun2) |
milestone: | none → 0.93 |
tags: |
added: backport-proposed extensions-plugins win32 removed: raster windows10 |
Patrick Storz (ede123) wrote : | #12 |
tags: | removed: backport-proposed |
Changed in inkscape: | |
milestone: | 0.93 → 0.92.3 |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
- confirmed on Windows 10, Inkscape 0.92.2 (5c3e80d, 2017-08-06) >Raster- >Enhance
- open the attached gif file
- choose Extensions-
- get crash with attached DOS error message:
C:\Program Files (x86)\Inkscape> inkscape :ErrorMissingDe legate' eForThisImageFo rmat `PNG' @ error/blob. c/BlobToImage/ 355
terminate called after throwing an instance of 'Magick:
what(): Magick: NoDecodeDelegat
Emergency save activated!
Emergency save completed. Inkscape will close now.