Re: [MacPorts] #22451: gimp2 @2.6.7_0+darwin_9+no_x11+quartz – Bus error on startup
MacPorts
noreply at macports.org
Tue Jan 12 09:53:36 PST 2010
#22451: gimp2 @2.6.7_0+darwin_9+no_x11+quartz – Bus error on startup
-------------------------------+--------------------------------------------
Reporter: jp@… | Owner: devans@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.1
Keywords: | Port: gimp2
-------------------------------+--------------------------------------------
Comment(by mark.pearson0@…):
I have come up with a fix for this problem in the form of a couple of
patches to the gtk2 port.
On further investigation it turned out that the Bus Error was caused by a
non-existent 'method' '''input_window_crossing''' being called on a quartz
GdkWindowObject. The patches I have provided are not a permanent fix for
gtk2 since I don't have enough in-depth knowledge about Gtk+ to know which
parts of the quartz implementation are lacking and how to fix them, but at
least these patches allowed me to get Gimp into a usable state. As such
this fix should be viewed as just that - an interim measure to prevent
Gimp from being totally unusable.
To use the patches do the following (assuming you don't have a local port
repository), replacing 'mark' with your username of course:
1. Create a folder in your home directory e.g. ''/Users/mark/ports'' to
act as the local repository[[BR]]
2. Within that folder create a folder ''x11/gtk2'' (yes I know we're
talking gtk-quartz here but at the moment gtk2 lives under the category
'x11' so I'm not going to argue)[[BR]]
3. Save the attachment ''Portfile'' to
''/Users/mark/ports/x11/gtk2''[[BR]]
4. Create a folder called ''files'' in the ''x11/gtk2'' folder[[BR]]
5. Save the two ''patch-gdk-quartz-....diff'' attachments to the ''files''
folder you just created[[BR]]
6. Edit the file /opt/local/etc/macports/sources.conf and add a line
''file:///Users/mark/ports'' before the ''rsync://...'' line (this means
Macports will use locally modified ports in preference to ports of the
same name in the global repository, in our case port 'gtk2')[[BR]]
7. cd to ''/Users/mark/ports'' and type '''portindex''' to get Macports to
index this local version of gtk2[[BR]]
Then uninstall gtk2 with '''sudo port -f uninstall gtk2''', and reinstall
(from the local repository) using '''sudo port install gtk2'''.
Please note: This does not fix other crashes/problems I still experience
with Gimp such as a different bus error when quitting Gimp, and also popup
windows appearing '''behind''' the image window, toolbox and
layers/channels dock window.
Hopefully this information is useful to somebody.
--
Ticket URL: <http://trac.macports.org/ticket/22451#comment:8>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list