Gimp and gimp-print (and other Gimp issues)

Stefan Bruda bruda at cs.ubishops.ca
Fri Sep 14 06:23:19 PDT 2007


Hi,

At 22:10 -0400 on 2007-9-13 Yves de Champlain wrote:
 >
 > > The latest Gimp (2.4.1) does not seem to go along well with gimp- 
 > > print.
 > > Whenever I attempt to print something I get a bus error in
 > > /opt/local/lib/gimp/2.0/plug-ins/print.  Last time I checked (with  
 > > Gimp
 > > 2.2.17) printing was no problem at all.  Is there any trick I am  
 > > missing?
 > > How does one print?  Could it be that this all happens because the  
 > > newest
 > > Gimp port if for a release candidate?
 > 
 > I'm not sure about this.  Do you have gimp-print installed ?

Yes.  Works well with gimp 2.2.17.

 > The print plugin is part of gimp itself.  It would be easier if I
 > had some output of this.

I am not sure what kind of output to provide.  The print plugin just
segfaults:

    /opt/local/lib/gimp/2.0/plug-ins/print: fatal error: Bus error

In the logs I get a somewhat longish description of what looks like a
good ol' segmentation violation (log included below).  I have rebuilt
gimp-print by the way, just to make sure that there is no library
confusion.  Now that I am looking at it, I also note that the jp2
plugin has problems:

    dyld: Library not loaded: libopenjpeg-2.1.2.0.dylib
      Referenced from: /opt/local/lib/gimp/2.0/plug-ins/jp2
      Reason: image not found

although libopenjpeg-2.1.2.0.dylib does exist:

    < godel:~ > ll /opt/local/lib/libopenjpeg-2.1.2.0.dylib
    -rwxr-xr-x   2 root  wheel  130592 Aug 11 12:59 /opt/local/lib/libopenjpeg-2.1.2.0.dylib* 

Now that I further look at it, I note too that I can open the dialog
of "Print with Gutenprint" (haven't tried to actually print with it
yet but it will probably work).

Finally, I also note that my Python-fu menu is gone (although gimp2 is
indeed compiled with +python) and Script-fu contains few entries (only
the four plugins that I added manually, the stock ones are gone).  Is
this normal?

In any event, thank you for taking the time to look into it.  Here is
the crash log for the print plugin:

Host Name:      godel
Date/Time:      2007-09-14 09:09:31.496 -0400
OS Version:     10.4.10 (Build 8R2218)
Report Version: 4

Command: print
Path:    /opt/local/lib/gimp/2.0/plug-ins/print
Parent:  gimp-2.4 [20315]

Version: ??? (???)

PID:    20331
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x0000000c

Thread 0 Crashed:
0   libgtk-x11-2.0.0.dylib 	0x01157303 gtk_page_setup_get_paper_width + 9
1   libgtk-x11-2.0.0.dylib 	0x011573b7 gtk_page_setup_get_page_width + 25
2   print                  	0x00002ea6 print_size_info_get_page_dimensions + 102
3   print                  	0x00002ef0 gimp_size_info_get_max_offsets + 42
4   print                  	0x00002f6f print_size_info_update_offsets + 31
5   print                  	0x00003d5a print_offset_frame + 2500
6   print                  	0x00005a1f print_page_layout_gui + 3765
7   libgtk-x11-2.0.0.dylib 	0x01127d8a _gtk_marshal_OBJECT__VOID + 207
8   libgobject-2.0.0.dylib 	0x006ac70b g_closure_invoke + 524
9   libgobject-2.0.0.dylib 	0x006bda29 signal_emit_unlocked_R + 3391
10  libgobject-2.0.0.dylib 	0x006be963 g_signal_emit_valist + 1175
11  libgobject-2.0.0.dylib 	0x006c24eb g_signal_emit_by_name + 238
12  libgtk-x11-2.0.0.dylib 	0x012b8ec5 get_print_dialog + 190
13  libgtk-x11-2.0.0.dylib 	0x012b981a _gtk_print_operation_platform_backend_run_dialog + 90
14  libgtk-x11-2.0.0.dylib 	0x01167364 gtk_print_operation_run + 646
15  print                  	0x0000280e run + 840
16  libgimp-2.0.0.dylib    	0x000408e8 gimp_main + 1774
17  print                  	0x00002402 main + 40
18  print                  	0x000023be _start + 216
19  print                  	0x000022e5 start + 41

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x00002ed4  ecx: 0xbfffe9a0  edx: 0x02115f50
  edi: 0x00000000  esi: 0x000080a0  ebp: 0xbfffe918  esp: 0xbfffe8f0
   ss: 0x0000001f  efl: 0x00010286  eip: 0x01157303   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037

Binary Images Description:
    0x1000 -     0x7fff print 	/opt/local/lib/gimp/2.0/plug-ins/print
   0x1f000 -    0x31fff libgimpui-2.0.0.dylib 	/opt/local/lib/libgimpui-2.0.0.dylib
   0x3e000 -    0x5efff libgimp-2.0.0.dylib 	/opt/local/lib/libgimp-2.0.0.dylib
   0x71000 -    0x72fff libgimpmodule-2.0.0.dylib 	/opt/local/lib/libgimpmodule-2.0.0.dylib
   0x77000 -    0x7efff libgimpconfig-2.0.0.dylib 	/opt/local/lib/libgimpconfig-2.0.0.dylib
   0x85000 -    0x87fff libgimpmath-2.0.0.dylib 	/opt/local/lib/libgimpmath-2.0.0.dylib
   0x8c000 -    0x93fff libgimpcolor-2.0.0.dylib 	/opt/local/lib/libgimpcolor-2.0.0.dylib
   0x99000 -    0xa4fff libgimpbase-2.0.0.dylib 	/opt/local/lib/libgimpbase-2.0.0.dylib
   0xaf000 -    0xc7fff libatk-1.0.0.dylib 	/opt/local/lib/libatk-1.0.0.dylib
   0xd5000 -    0xd9fff libpangocairo-1.0.0.dylib 	/opt/local/lib/libpangocairo-1.0.0.dylib
   0xe0000 -    0xe4fff libSM.6.dylib 	/usr/X11R6/lib/libSM.6.dylib
   0xe9000 -    0xeafff libgmodule-2.0.0.dylib 	/opt/local/lib/libgmodule-2.0.0.dylib
   0xf5000 -    0xfafff libXrender.1.dylib 	/opt/local/lib/libXrender.1.dylib
  0x205000 -   0x2f4fff libgimpwidgets-2.0.0.dylib 	/opt/local/lib/libgimpwidgets-2.0.0.dylib
  0x317000 -   0x32bfff libgdk_pixbuf-2.0.0.dylib 	/opt/local/lib/libgdk_pixbuf-2.0.0.dylib
  0x333000 -   0x34efff libjpeg.62.dylib 	/opt/local/lib/libjpeg.62.dylib
  0x356000 -   0x365fff libICE.6.dylib 	/usr/X11R6/lib/libICE.6.dylib
  0x36d000 -   0x36efff libXrandr.2.dylib 	/usr/X11R6/lib/libXrandr.2.dylib
  0x43a000 -   0x4b5fff libgdk-x11-2.0.0.dylib 	/opt/local/lib/libgdk-x11-2.0.0.dylib
  0x4d8000 -   0x521fff libtiff.3.dylib 	/opt/local/lib/libtiff.3.dylib
  0x5b7000 -   0x5d9fff libpangoft2-1.0.0.dylib 	/opt/local/lib/libpangoft2-1.0.0.dylib
  0x5e4000 -   0x613fff libpango-1.0.0.dylib 	/opt/local/lib/libpango-1.0.0.dylib
  0x624000 -   0x68cfff libcairo.2.dylib 	/opt/local/lib/libcairo.2.dylib
  0x6a8000 -   0x6dcfff libgobject-2.0.0.dylib 	/opt/local/lib/libgobject-2.0.0.dylib
  0x6ed000 -   0x709fff libfontconfig.1.dylib 	/opt/local/lib/libfontconfig.1.dylib
  0x771000 -   0x7d6fff libfreetype.6.dylib 	/opt/local/lib/libfreetype.6.dylib
  0x7ea000 -   0x7fbfff libz.1.dylib 	/opt/local/lib/libz.1.dylib
 0x1008000 -  0x1379fff libgtk-x11-2.0.0.dylib 	/opt/local/lib/libgtk-x11-2.0.0.dylib
 0x1442000 -  0x145cfff libexpat.1.dylib 	/opt/local/lib/libexpat.1.dylib
 0x1467000 -  0x1484fff libpng12.0.dylib 	/opt/local/lib/libpng12.0.dylib
 0x148c000 -  0x1549fff libX11.6.dylib 	/usr/X11R6/lib/libX11.6.dylib
 0x1571000 -  0x1573fff libgthread-2.0.0.dylib 	/opt/local/lib/libgthread-2.0.0.dylib
 0x1577000 -  0x1637fff libglib-2.0.0.dylib 	/opt/local/lib/libglib-2.0.0.dylib
 0x1656000 -  0x165dfff libintl.8.dylib 	/opt/local/lib/libintl.8.dylib
 0x1678000 -  0x176dfff libiconv.2.dylib 	/opt/local/lib/libiconv.2.dylib
 0x177a000 -  0x177afff libXinerama.1.dylib 	/usr/X11R6/lib/libXinerama.1.dylib
 0x177e000 -  0x1786fff libXext.6.dylib 	/usr/X11R6/lib/libXext.6.dylib
 0x178d000 -  0x1791fff libXrender.1.dylib 	/usr/X11R6/lib/libXrender.1.dylib
 0x17ce000 -  0x17d5fff libmist.so 	/opt/local/lib/gtk-2.0/2.10.0/engines/libmist.so
 0x20df000 -  0x20e0fff pango-basic-fc.so 	/opt/local/lib/pango/1.6.0/modules/pango-basic-fc.so
 0x20ec000 -  0x20edfff libprintbackend-file.so 	/opt/local/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-file.so
 0x20f1000 -  0x20f9fff libprintbackend-cups.so 	/opt/local/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.so
0x8fe00000 - 0x8fe4afff dyld 46.12	/usr/lib/dyld
0x90000000 - 0x90171fff libSystem.B.dylib 	/usr/lib/libSystem.B.dylib
0x901c1000 - 0x901c3fff libmathCommon.A.dylib 	/usr/lib/system/libmathCommon.A.dylib
0x901c5000 - 0x90202fff com.apple.CoreText 1.1.2 (???)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x90229000 - 0x902fffff ATS 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x9031f000 - 0x90774fff com.apple.CoreGraphics 1.258.75 (???)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x9080b000 - 0x908d3fff com.apple.CoreFoundation 6.4.7 (368.28)	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x90911000 - 0x90911fff com.apple.CoreServices 10.4 (???)	/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x90913000 - 0x90a07fff libicucore.A.dylib 	/usr/lib/libicucore.A.dylib
0x90a57000 - 0x90ad6fff libobjc.A.dylib 	/usr/lib/libobjc.A.dylib
0x90aff000 - 0x90b63fff libstdc++.6.dylib 	/usr/lib/libstdc++.6.dylib
0x90bd2000 - 0x90bd9fff libgcc_s.1.dylib 	/usr/lib/libgcc_s.1.dylib
0x90bde000 - 0x90c51fff com.apple.framework.IOKit 1.4.8 (???)	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90c66000 - 0x90c78fff libauto.dylib 	/usr/lib/libauto.dylib
0x90c7e000 - 0x90f24fff com.apple.CoreServices.CarbonCore 682.26	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90f67000 - 0x90fcffff com.apple.CoreServices.OSServices 4.1	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x91008000 - 0x91047fff com.apple.CFNetwork 129.21	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x9105a000 - 0x9106afff com.apple.WebServices 1.1.3 (1.1.0)	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x91075000 - 0x910f4fff com.apple.SearchKit 1.0.5	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x9112e000 - 0x9114cfff com.apple.Metadata 10.4.4 (121.36)	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x91158000 - 0x91166fff libz.1.dylib 	/usr/lib/libz.1.dylib
0x91169000 - 0x91308fff com.apple.security 4.5.2 (29774)	/System/Library/Frameworks/Security.framework/Versions/A/Security
0x91406000 - 0x9140efff com.apple.DiskArbitration 2.1.1	/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x91415000 - 0x9141cfff libbsm.dylib 	/usr/lib/libbsm.dylib
0x91420000 - 0x91446fff com.apple.SystemConfiguration 1.8.6	/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x91458000 - 0x914cefff com.apple.audio.CoreAudio 3.0.4	/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x9151f000 - 0x9151ffff com.apple.ApplicationServices 10.4 (???)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x91521000 - 0x9154dfff com.apple.AE 314 (313)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x91560000 - 0x91634fff com.apple.ColorSync 4.4.9	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x9166f000 - 0x916e2fff com.apple.print.framework.PrintCore 4.6 (177.13)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x91710000 - 0x917b9fff com.apple.QD 3.10.24 (???)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x917df000 - 0x9182afff com.apple.HIServices 1.5.2 (???)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x91849000 - 0x9185ffff com.apple.LangAnalysis 1.6.3	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x9186b000 - 0x91886fff com.apple.FindByContent 1.5	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
0x91891000 - 0x918cefff com.apple.LaunchServices 182	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x918e2000 - 0x918eefff com.apple.speech.synthesis.framework 3.5	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x918f5000 - 0x91935fff com.apple.ImageIO.framework 1.5.5	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x91948000 - 0x919fafff libcrypto.0.9.7.dylib 	/usr/lib/libcrypto.0.9.7.dylib
0x91a40000 - 0x91a56fff libcups.2.dylib 	/usr/lib/libcups.2.dylib
0x91a5b000 - 0x91a79fff libJPEG.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x91a7e000 - 0x91addfff libJP2.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x91aef000 - 0x91af3fff libGIF.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x91af5000 - 0x91b7bfff libRaw.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib
0x91b7f000 - 0x91bbcfff libTIFF.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x91bc2000 - 0x91bdcfff libPng.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x91be1000 - 0x91be3fff libRadiance.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x91be5000 - 0x91cc3fff libxml2.2.dylib 	/usr/lib/libxml2.2.dylib
0x91ce0000 - 0x91ce0fff com.apple.Accelerate 1.3.1 (Accelerate 1.3.1)	/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x91ce2000 - 0x91d70fff com.apple.vImage 2.5	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x91d77000 - 0x91d77fff com.apple.Accelerate.vecLib 3.3.1 (vecLib 3.3.1)	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x91d79000 - 0x91dd2fff libvMisc.dylib 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x91ddb000 - 0x91dfffff libvDSP.dylib 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x91e07000 - 0x92210fff libBLAS.dylib 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x9224a000 - 0x925fefff libLAPACK.dylib 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x9262b000 - 0x92718fff libiconv.2.dylib 	/usr/lib/libiconv.2.dylib
0x9271a000 - 0x92797fff com.apple.DesktopServices 1.3.6	/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x927d8000 - 0x92a08fff com.apple.Foundation 6.4.8 (567.29)	/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x92bb0000 - 0x92bb0fff com.apple.Carbon 10.4 (???)	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x92bb2000 - 0x92bc2fff com.apple.ImageCapture 3.0.4	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x92bd1000 - 0x92bd9fff com.apple.speech.recognition.framework 3.6	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x92bdf000 - 0x92be5fff com.apple.securityhi 2.0.1 (24742)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x92beb000 - 0x92c7cfff com.apple.ink.framework 101.2.1 (71)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x92c90000 - 0x92c94fff com.apple.help 1.0.3 (32.1)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x92c97000 - 0x92cb5fff com.apple.openscripting 1.2.5 (???)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x92cc7000 - 0x92ccdfff com.apple.print.framework.Print 5.2 (192.4)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x92cd3000 - 0x92d36fff com.apple.htmlrendering 66.1 (1.1.3)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x92d5d000 - 0x92d9efff com.apple.NavigationServices 3.4.4 (3.4.3)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x92dc5000 - 0x92dd3fff com.apple.audio.SoundManager 3.9.1	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x92dda000 - 0x92ddffff com.apple.CommonPanels 1.2.3 (73)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x92de4000 - 0x930d9fff com.apple.HIToolbox 1.4.9 (???)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox

-- 
If it was so, it might be; and if it were so, it would be; but as
it isn't, it ain't.  That's logic.
    --Lewis Carroll, Through the Looking-Glass



More information about the macports-users mailing list