Crashes on DNG pinging

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
ggarra13
Posts: 30
Joined: 2015-04-17T14:08:07-07:00
Authentication code: 6789

Crashes on DNG pinging

Post by ggarra13 »

I am running latest ImageMagick-6.9.1-6

Version: ImageMagick 6.9.1-6 Q32 x86_64 2015-06-20 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC

I have tried loading a DNG image file with ImageMagick and the result in display is this:

display: delegate failed `"ufraw-batch" --silent --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i"' @ error/delegate.c/InvokeDelegate/1332.
display: unable to open image `/tmp/magick-22731aLzhrGkY9cim.ppm': No such file or directory @ error/blob.c/OpenBlob/2697.

In my program the result is even worse ( a crash ):
Got signal 17
[bt] Execution path:
[bt] /lib/x86_64-linux-gnu/libpthread.so.0(waitpid+0x1e) [0x7f18d275084e]
[bt] /lib/x86_64-linux-gnu/libpthread.so.0(waitpid+0x1e) [0x7f18d275084e]
[bt] /media/Linux/code/applications/mrViewer/BUILD/Linux-3.2.0-38-generic-64/Release/lib/libMagickCore-6.Q32HDRI.so.2(ExternalDelegateCommand+0x29c) [0x7f18d416981c]
[bt] /media/Linux/code/applications/mrViewer/BUILD/Linux-3.2.0-38-generic-64/Release/lib/libMagickCore-6.Q32HDRI.so.2(InvokeDelegate+0x3f2) [0x7f18d416a7e2]
[bt] /media/Linux/code/applications/mrViewer/BUILD/Linux-3.2.0-38-generic-64/Release/lib/libMagickCore-6.Q32HDRI.so.2(+0x23ac8a) [0x7f18d42e3c8a]
[bt] /media/Linux/code/applications/mrViewer/BUILD/Linux-3.2.0-38-generic-64/Release/lib/libMagickCore-6.Q32HDRI.so.2(ReadImage+0x17f) [0x7f18d4160e4f]
[bt] /media/Linux/code/applications/mrViewer/BUILD/Linux-3.2.0-38-generic-64/Release/lib/libMagickCore-6.Q32HDRI.so.2(ReadStream+0x117) [0x7f18d427f5a7]
[bt] /media/Linux/code/applications/mrViewer/BUILD/Linux-3.2.0-38-generic-64/Release/lib/libMagickCore-6.Q32HDRI.so.2(PingImage+0x61) [0x7f18d41609c1]
[bt] /media/Linux/code/applications/mrViewer/BUILD/Linux-3.2.0-38-generic-64/Release/lib/libMagickWand-6.Q32HDRI.so.2(MagickPingImage+0x6a) [0x7f18d48085ca]
[bt] /media/Linux/code/applications/mrViewer/BUILD/Linux-3.2.0-38-generic-64/Release/bin/mrViewer(_ZN3mrv9wandImage4testEPKc+0x100) [0x4f9970]
[bt] /media/Linux/code/applications/mrViewer/BUILD/Linux-3.2.0-38-generic-64/Release/bin/mrViewer(_ZN3mrv10test_imageEPKcPhi+0x78) [0x4bbe28]
[bt] /media/Linux/code/applications/mrViewer/BUILD/Linux-3.2.0-38-generic-64/Release/bin/mrViewer(_ZN3mrv6CMedia11guess_imageEPKcPKhillb+0x13a) [0x4bbf8a]
[bt] /media/Linux/code/applications/mrViewer/BUILD/Linux-3.2.0-38-generic-64/Release/bin/mrViewer(_ZN3mrv12ImageBrowser10load_imageEPKcllllb+0x434) [0x574964]
[bt] /media/Linux/code/applications/mrViewer/BUILD/Linux-3.2.0-38-generic-64/Release/bin/mrViewer(_ZN3mrv12ImageBrowser4loadERKSt6vectorINS_8LoadInfoESaIS2_EEbb+0xb10) [0x576f90]
[bt] /media/Linux/code/applications/mrViewer/BUILD/Linux-3.2.0-38-generic-64/Release/bin/mrViewer(main+0x72c) [0x47dadc]

Can anybody help pinpoint the bug in, I believe, ImageMagick?
ggarra13
Posts: 30
Joined: 2015-04-17T14:08:07-07:00
Authentication code: 6789

Re: Crashes on DNG pinging

Post by ggarra13 »

I forgot to mention that Krita opens the file just fine.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Crashes on DNG pinging

Post by snibgo »

Have you checked that ufraw-batch is installed and runs correctly? If it doesn't, that's the problem.

If that doesn't help, please give the command you used. You might also need to provide the input file so someone can try to reproduce the problem.
snibgo's IM pages: im.snibgo.com
ggarra13
Posts: 30
Joined: 2015-04-17T14:08:07-07:00
Authentication code: 6789

Re: Crashes on DNG pinging

Post by ggarra13 »

Yes, the ufraw-batch was missing. I had no clue ImageMagick relied on external programs to do its conversions. My program still crashes but it is not due to image magick (I tried a simple example and all worked fine).
All is moot, as the reading of the format is too slow to be of any use.
Post Reply