SVG render fallback to Inkscape with 64-bit Magick.NET crashes

Aug 21, 2013 at 9:32 PM
Heya. I have a 64-bit site using Magick.NET and it works fine. Recently we needed to convert SVG files to PNG, but ImageMagick's SVG support is very lacking. ImageMagick can fallback to using Inkscape for SVG rendering if it's installed and appears in the PATH variable. Apparently no other configuration is required.

I tried this setup and it throws a fault that crashes the w3wp.exe processes:

Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7afa2
Faulting module name: Magick.NET-x64.dll, version:, time stamp: 0x520686f8
Exception code: 0xc00000fd
Fault offset: 0x00000000000738c7
Faulting process id: 0xe8
Faulting application start time: 0x01ce9eac50b763db
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\db0cd533\3e8d488a\assembly\dl3\8b1f1876\75cc4a00_909ece01\Magick.NET-x64.dll
Report Id: b0f3d54b-0a9f-11e3-98af-005056b406ee

It happens on even a bare-bones SVG file so I assume it's from the attempt to call Inkscape. The only thing that occurs to me is this is 64-bit ImageMagick while Inkscape is only 32-bit. Any ideas? Thanks!
Aug 22, 2013 at 4:58 AM
Have you tried to convert the svg image from a console application? Maybe it has something to do with the temporary file it uses. I will install inkscape later tonight and see if I will get the same crash with a console application.
Aug 23, 2013 at 7:54 PM
Thanks for the suggestion. I gave it a go and a Forms application had no problem passing it off to Inkscape so I'm not sure where to take it from there. On the other hand, it looks like Inkscape can't use hyperlink xlinks so this might be moot anyway (we have http url's for some of the SVG image resources). If that's incorrect or anyone has a suggestion, let me know.

Thanks for all the hard work, dlemstra. I have been waiting for a .NET-wrapped Imagemagick for a long time and this works really well.
Aug 23, 2013 at 9:57 PM
Are you able to use a debugger in your website project? Maybe you will get more information when you turn on logging:
image.Debug = true;