Page 1 of 1

Convert PDF under MAC OS: exception->signature == MagickSignature

Posted: 2015-09-10T09:48:06-07:00
by doolek
Hi guys. I've not found answer in this forum for an issue I'm facing with ImageMagick, that's we started new post.

OS: MAC OS Maverick
IM: 6.9.0 (installed using mac port)
GS: 9.16 (installed using mac port)

Following env. var. are set:
DYLD_LIBRARY_PATH=/opt/ImageMagick/lib/ImageMagick-6.9.0/modules-Q16/coders/
MAGICK_CONFIGURE_PATH=/opt/ImageMagick/lib/ImageMagick-6.9.0/config-Q16/
MAGICK_CODER_MODULE_PATH=/opt/ImageMagick/lib/ImageMagick-6.9.0/modules-Q16/coders/
MAGICK_CODER_FILTER_PATH=/opt/ImageMagick/lib/ImageMagick-6.9.0/modules-Q16/filters/
MAGICK_DEBUG=All

Project is build under QT creator.

I have C++ application which interface with ImageMagck to read TIFF and PDF files. It works under Windows XP/Vista/7/8/8.1and MAC OS Maverick. However I am facing problem only under MAC OS. Everything had been alright with application until my data were lost due to physical disk damage. So I set whole MAC OS system and development environment from scratch and problems with ImageMagick begun.
The problem is that an application does not open PDF files - only TIFF ones when I build it from a source code. However it works fine when I use binary file which had been build before disk damage. The problem is only with fresh builds under new, fresh system - even if I build form the same source code. Strange is the fact that I can correctly convert PDF to other formats in command line but not i my application.

I would be grateful for you help.

Following exception is thrown (I paste only part of it):\Application Specific Information:
Assertion failed: (exception->signature == MagickSignature), function ReadPDFImage, file coders/pdf.c, line 448.
Performing @selector(itemFired:) from sender NSMenuItem 0x6000000be4e0
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff9893f866 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff8ca9535c pthread_kill + 92
2 libsystem_c.dylib 0x00007fff99213b1a abort + 125
3 libsystem_c.dylib 0x00007fff991dd9bf __assert_rtn + 321
4 pdf.so 0x000000010c1817fe ReadPDFImage + 5794
5 libMagickCore-6.Q16.2.dylib 0x0000000105023b11 ReadImage + 773
6 com.yourcompany.GraphAnalyzer 0x0000000104ede9a3 ImageConvertHelper::LoadHiResMultiPagePDF(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int) + 675
Following debug information from Image Magick are recorded when using fresh build which fails:
2015-09-06T17:34:44+02:00 0:00.000 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/etc/ImageMagick-6/policy.xml"
2015-09-06T17:34:44+02:00 0:00.000 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/share/ImageMagick-6/policy.xml"
2015-09-06T17:34:44+02:00 0:00.000 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/lib/ImageMagick-6.9.0//config-Q16/policy.xml"
2015-09-06T17:34:44+02:00 0:00.000 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/etc/ImageMagick-6/policy.xml"
2015-09-06T17:34:44+02:00 0:00.000 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/share/doc/ImageMagick-6/policy.xml"
2015-09-06T17:34:44+02:00 0:00.000 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/Users/user/.config/ImageMagick/policy.xml"
2015-09-06T17:34:44+02:00 0:00.000 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/Users/user/.magick/policy.xml"
2015-09-06T17:34:44+02:00 0:00.000 0.000u 6.9.0 Configure EDM[36378]: policy.c/LoadPolicyCache/751/Configure
Loading policy file "/opt/local/etc/ImageMagick-6/policy.xml" ...
2015-09-06T17:34:44+02:00 0:00.000 0.000u 6.9.0 Configure EDM[36378]: policy.c/LoadPolicyCache/751/Configure
Loading policy file "/opt/local/etc/ImageMagick-6/policy.xml" ...
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/etc/ImageMagick-6/coder.xml"
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/share/ImageMagick-6/coder.xml"
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/lib/ImageMagick-6.9.0//config-Q16/coder.xml"
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/etc/ImageMagick-6/coder.xml"
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/share/doc/ImageMagick-6/coder.xml"
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/Users/user/.config/ImageMagick/coder.xml"
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/Users/user/.magick/coder.xml"
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Configure EDM[36378]: coder.c/LoadCoderCache/800/Configure
Loading coder configuration file "/opt/local/etc/ImageMagick-6/coder.xml" ...
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Configure EDM[36378]: coder.c/LoadCoderCache/800/Configure
Loading coder configuration file "/opt/local/etc/ImageMagick-6/coder.xml" ...
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Module EDM[36378]: module.c/OpenModule/1268/Module
Searching for module "PDF" using filename "pdf.la"
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Module EDM[36378]: module.c/GetMagickModulePath/554/Module
Searching for coder module file "pdf.la" ...
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Module EDM[36378]: module.c/OpenModule/1277/Module
Opening module at path "/opt/local/lib/ImageMagick-6.9.0//modules-Q16/coders/pdf.la"
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Module EDM[36378]: module.c/OpenModule/1304/Module
Method "RegisterPDFImage" in module "PDF" at address 0x10c986f98
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Module EDM[36378]: module.c/OpenModule/1318/Module
Method "UnregisterPDFImage" in module "PDF" at address 0x10c98d493
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Policy EDM[36378]: policy.c/IsRightsAuthorized/574/Policy
Domain: Path; rights=Read; pattern="/Users/user/Documents/test.pdf" ...
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Blob EDM[36378]: blob.c/OpenBlob/2598/Blob
read 3 magic header bytes
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Cache EDM[36378]: cache.c/DestroyPixelCache/965/Cache
destroy
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/etc/ImageMagick-6/magic.xml"
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/share/ImageMagick-6/magic.xml"
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/lib/ImageMagick-6.9.0//config-Q16/magic.xml"
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/etc/ImageMagick-6/magic.xml"
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/share/doc/ImageMagick-6/magic.xml"
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/Users/user/.config/ImageMagick/magic.xml"
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Configure EDM[36378]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/Users/user/.magick/magic.xml"
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Configure EDM[36378]: magic.c/LoadMagicCache/773/Configure
Loading magic configure file "/opt/local/etc/ImageMagick-6/magic.xml" ...
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Configure EDM[36378]: magic.c/LoadMagicCache/773/Configure
Loading magic configure file "/opt/local/etc/ImageMagick-6/magic.xml" ...
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Policy EDM[36378]: policy.c/IsRightsAuthorized/574/Policy
Domain: Coder; rights=Read; pattern="PDF" ...
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Policy EDM[36378]: policy.c/IsRightsAuthorized/574/Policy
Domain: Path; rights=Read; pattern="/Users/user/Documents/test.pdf" ...
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Blob EDM[36378]: blob.c/OpenBlob/2598/Blob
read 3 magic header bytes
2015-09-06T17:34:49+02:00 0:00.001 0.000u 6.9.0 Cache EDM[36378]: cache.c/DestroyPixelCache/965/Cache
destroy
Assertion failed: (exception->signature == MagickSignature), function ReadPDFImage, file coders/pdf.c, line 448.
Following debug information from IM are recorded from application which works fine under the same environment:
2015-09-06T17:35:16+02:00 0:00.000 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/etc/ImageMagick-6/policy.xml"
2015-09-06T17:35:16+02:00 0:00.000 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/share/ImageMagick-6/policy.xml"
2015-09-06T17:35:16+02:00 0:00.000 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/lib/ImageMagick-6.9.0//config-Q16/policy.xml"
2015-09-06T17:35:16+02:00 0:00.000 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/etc/ImageMagick-6/policy.xml"
2015-09-06T17:35:16+02:00 0:00.000 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/share/doc/ImageMagick-6/policy.xml"
2015-09-06T17:35:16+02:00 0:00.000 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/Users/user/.config/ImageMagick/policy.xml"
2015-09-06T17:35:16+02:00 0:00.000 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/Users/user/.magick/policy.xml"
2015-09-06T17:35:16+02:00 0:00.000 0.000u 6.9.0 Configure GraphAnalyzer[36401]: policy.c/LoadPolicyCache/751/Configure
Loading policy file "/opt/local/etc/ImageMagick-6/policy.xml" ...
2015-09-06T17:35:16+02:00 0:00.000 0.000u 6.9.0 Configure GraphAnalyzer[36401]: policy.c/LoadPolicyCache/751/Configure
Loading policy file "/opt/local/etc/ImageMagick-6/policy.xml" ...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/etc/ImageMagick-6/coder.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/share/ImageMagick-6/coder.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/lib/ImageMagick-6.9.0//config-Q16/coder.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/etc/ImageMagick-6/coder.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/share/doc/ImageMagick-6/coder.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/Users/user/.config/ImageMagick/coder.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/Users/user/.magick/coder.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: coder.c/LoadCoderCache/800/Configure
Loading coder configuration file "/opt/local/etc/ImageMagick-6/coder.xml" ...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: coder.c/LoadCoderCache/800/Configure
Loading coder configuration file "/opt/local/etc/ImageMagick-6/coder.xml" ...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Module GraphAnalyzer[36401]: module.c/OpenModule/1268/Module
Searching for module "PDF" using filename "pdf.la"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Module GraphAnalyzer[36401]: module.c/GetMagickModulePath/554/Module
Searching for coder module file "pdf.la" ...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Module GraphAnalyzer[36401]: module.c/OpenModule/1277/Module
Opening module at path "/opt/local/lib/ImageMagick-6.9.0//modules-Q16/coders/pdf.la"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Module GraphAnalyzer[36401]: module.c/OpenModule/1304/Module
Method "RegisterPDFImage" in module "PDF" at address 0x113116f98
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Module GraphAnalyzer[36401]: module.c/OpenModule/1318/Module
Method "UnregisterPDFImage" in module "PDF" at address 0x11311d493
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Policy GraphAnalyzer[36401]: policy.c/IsRightsAuthorized/574/Policy
Domain: Path; rights=Read; pattern="/Users/user/Documents/test.pdf" ...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Blob GraphAnalyzer[36401]: blob.c/OpenBlob/2598/Blob
read 3 magic header bytes
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Cache GraphAnalyzer[36401]: cache.c/DestroyPixelCache/965/Cache
destroy
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/etc/ImageMagick-6/magic.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/share/ImageMagick-6/magic.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/lib/ImageMagick-6.9.0//config-Q16/magic.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/etc/ImageMagick-6/magic.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/share/doc/ImageMagick-6/magic.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/Users/user/.config/ImageMagick/magic.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/Users/user/.magick/magic.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: magic.c/LoadMagicCache/773/Configure
Loading magic configure file "/opt/local/etc/ImageMagick-6/magic.xml" ...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: magic.c/LoadMagicCache/773/Configure
Loading magic configure file "/opt/local/etc/ImageMagick-6/magic.xml" ...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Policy GraphAnalyzer[36401]: policy.c/IsRightsAuthorized/574/Policy
Domain: Coder; rights=Read; pattern="PDF" ...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Policy GraphAnalyzer[36401]: policy.c/IsRightsAuthorized/574/Policy
Domain: Path; rights=Read; pattern="/Users/user/Documents/test.pdf" ...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Blob GraphAnalyzer[36401]: blob.c/OpenBlob/2598/Blob
read 3 magic header bytes
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Cache GraphAnalyzer[36401]: cache.c/DestroyPixelCache/965/Cache
destroy
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Policy GraphAnalyzer[36401]: policy.c/IsRightsAuthorized/574/Policy
Domain: Path; rights=Read; pattern="/Users/user/Documents/test.pdf" ...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Blob GraphAnalyzer[36401]: blob.c/OpenBlob/2598/Blob
read 3 magic header bytes
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Resource GraphAnalyzer[36401]: resource.c/AcquireUniqueFileResource/468/Resource
...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Resource GraphAnalyzer[36401]: resource.c/AcquireUniqueFileResource/509/Resource
Acquire /var/tmp/magick-36401ZX0tKSFtro3Z
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Resource GraphAnalyzer[36401]: resource.c/RelinquishUniqueFileResource/895/Resource
Relinquish /var/tmp/magick-36401ZX0tKSFtro3Z
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Resource GraphAnalyzer[36401]: resource.c/AcquireUniqueFileResource/468/Resource
...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Resource GraphAnalyzer[36401]: resource.c/AcquireUniqueFileResource/509/Resource
Acquire /var/tmp/magick-36401G_sHEAFpli8L
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/etc/ImageMagick-6/delegates.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/share/ImageMagick-6/delegates.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/lib/ImageMagick-6.9.0//config-Q16/delegates.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/etc/ImageMagick-6/delegates.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/local/share/doc/ImageMagick-6/delegates.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/Users/user/.config/ImageMagick/delegates.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/Users/user/.magick/delegates.xml"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: delegate.c/LoadDelegateCache/1475/Configure
Loading delegate configuration file "/opt/local/etc/ImageMagick-6/delegates.xml" ...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Configure GraphAnalyzer[36401]: delegate.c/LoadDelegateCache/1475/Configure
Loading delegate configuration file "/opt/local/etc/ImageMagick-6/delegates.xml" ...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Resource GraphAnalyzer[36401]: resource.c/AcquireUniqueFileResource/468/Resource
...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Resource GraphAnalyzer[36401]: resource.c/AcquireUniqueFileResource/509/Resource
Acquire /var/tmp/magick-36401GOfMFFidFfO9
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Resource GraphAnalyzer[36401]: resource.c/RelinquishUniqueFileResource/895/Resource
Relinquish /var/tmp/magick-36401GOfMFFidFfO9
Fontconfig warning: ignoring UTF-8: not a valid region tag
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Resource GraphAnalyzer[36401]: resource.c/RelinquishUniqueFileResource/895/Resource
Relinquish /var/tmp/magick-36401G_sHEAFpli8L
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Resource GraphAnalyzer[36401]: resource.c/RelinquishUniqueFileResource/895/Resource
Relinquish /var/tmp/magick-36401ZX0tKSFtro3Z
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Policy GraphAnalyzer[36401]: policy.c/IsRightsAuthorized/574/Policy
Domain: Path; rights=Read; pattern="/var/tmp/magick-36401GOfMFFidFfO91" ...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Blob GraphAnalyzer[36401]: blob.c/OpenBlob/2598/Blob
read 3 magic header bytes
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Cache GraphAnalyzer[36401]: cache.c/DestroyPixelCache/965/Cache
destroy
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Module GraphAnalyzer[36401]: module.c/OpenModule/1268/Module
Searching for module "PNG" using filename "png.la"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Module GraphAnalyzer[36401]: module.c/GetMagickModulePath/554/Module
Searching for coder module file "png.la" ...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Module GraphAnalyzer[36401]: module.c/OpenModule/1277/Module
Opening module at path "/opt/local/lib/ImageMagick-6.9.0//modules-Q16/coders/png.la"
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Module GraphAnalyzer[36401]: module.c/OpenModule/1304/Module
Method "RegisterPNGImage" in module "PNG" at address 0x112330880
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Module GraphAnalyzer[36401]: module.c/OpenModule/1318/Module
Method "UnregisterPNGImage" in module "PNG" at address 0x11233a45c
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Policy GraphAnalyzer[36401]: policy.c/IsRightsAuthorized/574/Policy
Domain: Coder; rights=Read; pattern="PNG" ...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadPNGImage/3911/Coder
Enter ReadPNGImage()
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Policy GraphAnalyzer[36401]: policy.c/IsRightsAuthorized/574/Policy
Domain: Path; rights=Read; pattern="/var/tmp/magick-36401GOfMFFidFfO91" ...
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Blob GraphAnalyzer[36401]: blob.c/OpenBlob/2598/Blob
read 3 magic header bytes
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Resource GraphAnalyzer[36401]: resource.c/AcquireMagickResource/279/Resource
Map: 44.6KB/43.6KiB/4GiB
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadOnePNGImage/2039/Coder
Enter ReadOnePNGImage()
IM version = 6.9.0-0
Libpng version = 1.6.18
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadOnePNGImage/2052/Coder
Zlib version = 1.2.8
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadOnePNGImage/2082/Coder
Before reading:
image->matte=0
image->rendering_intent=2
image->colorspace=13
image->gamma=0.454545
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadOnePNGImage/2358/Coder
PNG width: 826, height: 1169
PNG color_type: 6, bit_depth: 8
PNG compression_method: 0
PNG interlace_method: 0, filter_method: 0
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadOnePNGImage/2627/Coder
Setting sRGB as if in input
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadOnePNGImage/2677/Coder
Reading PNG pHYs chunk: xres: 3937, yres: 3937, units: 1.
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadOnePNGImage/2787/Coder
Reading PNG bKGD chunk, raw ping_background=(65535,65535,65535).
bkgd_scale=257. ping_background=(65535,65535,65535).
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadOnePNGImage/2808/Coder
image->background_color=(65535,65535,65535).
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadOnePNGImage/3071/Coder
Reading PNG IDAT chunk(s)
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Resource GraphAnalyzer[36401]: resource.c/AcquireMagickResource/279/Resource
Memory: 3.3KB/3.23KiB/2GiB
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadOnePNGImage/3085/Coder
Converting PNG pixels to pixel packets
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Resource GraphAnalyzer[36401]: resource.c/AcquireMagickResource/279/Resource
Area: 7.725MB/7.725MB/4.295GB
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Resource GraphAnalyzer[36401]: resource.c/AcquireMagickResource/279/Resource
Memory: 7.725MB/7.37MiB/2GiB
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Cache GraphAnalyzer[36401]: cache.c/OpenPixelCache/3598/Cache
open /var/tmp/magick-36401GOfMFFidFfO91[0] (Heap Memory, 826x1169 7.367MiB)
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadOnePNGImage/3168/Coder
Looking for cheap transparent pixel
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadOnePNGImage/3178/Coder
...got one.
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadOnePNGImage/3400/Coder
Found transparent pixel
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadOnePNGImage/3561/Coder
image->colorspace=13
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadOnePNGImage/3579/Coder
Reading PNG text chunk
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadOnePNGImage/3631/Coder
length: 20
Keyword: Software
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Resource GraphAnalyzer[36401]: resource.c/RelinquishMagickResource/862/Resource
Memory: 3.3KB/7.367MiB/2GiB
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadOnePNGImage/3863/Coder
exit ReadOnePNGImage()
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Resource GraphAnalyzer[36401]: resource.c/RelinquishMagickResource/862/Resource
Map: 44.6KB/0B/4GiB
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadPNGImage/3997/Coder
page.w: 0, page.h: 0,page.x: 0, page.y: 0.
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Coder GraphAnalyzer[36401]: png.c/ReadPNGImage/4003/Coder
exit ReadPNGImage()
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Exception GraphAnalyzer[36401]: constitute.c/ReadImage/564/Exception
Coder (PNG) generated an image despite an error (283855752), notify the developers
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Resource GraphAnalyzer[36401]: resource.c/RelinquishUniqueFileResource/895/Resource
Relinquish /var/tmp/magick-36401GOfMFFidFfO91
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Cache GraphAnalyzer[36401]: cache.c/DestroyPixelCache/965/Cache
destroy
2015-09-06T17:35:23+02:00 0:00.001 0.000u 6.9.0 Exception GraphAnalyzer[36401]: constitute.c/ReadImage/564/Exception
Coder (PDF) generated an image despite an error (283855752), notify the developers

Re: Convert PDF under MAC OS: exception->signature == MagickSignature

Posted: 2015-09-10T10:00:20-07:00
by fmw42
Seems like your GS did not install properly or where IM thinks it should be. Thats just a guess from your messages.

Perhaps you need to install all your needed delegate libraries when you install from source. See the following, which is how I install IM from source on Mac OSX.

viewtopic.php?f=1&t=21502&p=88202&hilit ... rts#p88202

You may want to adjust your ./configure command differently regarding OpenMP and some of the other items.

Re: Convert PDF under MAC OS: exception->signature == MagickSignature

Posted: 2015-09-11T12:08:34-07:00
by doolek
Hi fmw42! Thanks for feedback. I fallowed your suggestion but results were the same. Delegate works fine because it is possible to covert PDF using command line, and old build of my application. I have found a bug in a source code which caused crash.

Code: Select all

MagickCore::ExceptionInfo exceptionInfo;
GetExceptionInfo(&exceptionInfo); // Bug: Missing line
MagickCore::Image* images = MagickCore::ReadImage(imageInfo, &exceptionInfo);
Strange is the fact that under Windows everything was working fine.

Re: Convert PDF under MAC OS: exception->signature == MagickSignature

Posted: 2015-09-11T14:04:35-07:00
by fmw42
Post your bug report to the Bugs forum for it to be found quickly and get a response.

Re: Convert PDF under MAC OS: exception->signature == MagickSignature

Posted: 2015-09-11T23:09:51-07:00
by dlemstra
I am guessing that this bug was in his own code Fred. I am surprised that Windows did not complain. Where you running the app in Debug mode on Windows?

Re: Convert PDF under MAC OS: exception->signature == MagickSignature

Posted: 2015-10-14T15:08:14-07:00
by doolek
Hi guys, the problem was with my code, not Image Magick. Dlemstra, I am surprised too that under Windows it works fine without GetExceptionInfo(). That modification in source code can be done under MAC only because under Windows compilation fails - GetExceptionInfo is not found by compiler.

I am running application under Windows in release mode, not debug.

I am wondering if all the discrepancies I found between MAC and Windows version of ImageMagick shall be reported in Bug section. Most of them are related to missing headers files.