Gimp-sharp compiles, but all filters just segfault

Hi,
I'm trying to get GIMP# to run on Arch Linux. I've compiled and installed with no errors (the makefiles don't respect DESTDIR so my PKGBUILD requires some patching, but the files all seem to go in the right places now).
However, when I try eg. Filters -> Blur->Average I get this output in the terminal:
Parameters: 3
param.Size: 36
param.type.Size: 4
param.type.Data: 32
0 Int32
param.Size: 36
param.type.Size: 4
param.type.Data: 32
1 Int32
param.Size: 36
param.type.Size: 4
param.type.Data: 32
2 Int32
#Total scripts : 0
#Total actions : 0
#Total events : 0
#Parsed : 0
#Old : 0
#Failed : 0
#Scripts executable : 0
#Actions executable : 0
#Events executable : 0
% parsed : =EF=BF=BD
% executable scripts: =EF=BF=BD
% executable actions: =EF=BF=BD
% executable events : =EF=BF=BD
Parameters: 3
param.Size: 36
param.type.Size: 4
param.type.Data: 32
0 Int32
param.Size: 36
param.type.Size: 4
param.type.Data: 32
1 Int32
param.Size: 36
param.type.Size: 4
param.type.Data: 32
2 Int32
gimp-sharp: fatal error: Segmentation fault
and no visible response from Gimp (ie. no change to the undo history).
I get
$ mono /usr/lib/gimp/2.0/plug-ins/Raindrops.exe
gimp-sharp is a GIMP plug-in and must be run by GIMP to be used
but I guess this is expected.
Here are my gimp and mono versions:
$ pacman -Qi gimp
Name : gimp
Version : 2.6.8-1
URL : http://www.gimp.org/
Licenses : GPL
Groups : None
Provides : None
Depends On : gtk2>=3D2.14.4 lcms>=3D1.17 libxpm>=3D3.5.7
libwmf>=3D0.2.8.4 libxmu>=3D1.0.4 librsvg>=3D2.22.3 libmng>=3D1.0.10
dbus-glib>=3D0.76 libexif>=3D0.6.16
pygtk>=3D2.13.0 desktop-file-utils gegl>=3D0.1.0 curl
Optional Deps : gutenprint: for sophisticated printing only as gimp
has built-in cups print support
libwebkit: for the help browser
poppler-glib: for pdf support
hal: for Linux input event controller module
alsa-lib: for MIDI event controller module
Required By : gimp-dbp gimp-help-en gimp-help-nn
gimp-plugin-fblur gimp-plugin-gmic4gimp gimp-plugin-greycstoration
gimp-refocus gimp-sharp
Conflicts With : gimp-devel
Replaces : None
Installed Size : 59740,00 K
Packager : Eric Belanger <[email protected]>
Architecture : x86_64
Build Date : su. 13. des. 2009 kl. 03.10 +0100
Install Date : m=C3=A5. 18. jan. 2010 kl. 17.24 +0100
Install Reason : Explicitly installed
Install Script : Yes
Description : GNU Image Manipulation Program
$ pacman -Qi mono
Name : mono
Version : 2.6.1-1
URL : http://www.mono-project.com/
Licenses : GPL LGPL2 MPL custom:MITX11
Groups : None
Provides : monodoc
Depends On : zlib libgdiplus>=3D2.4.2 sh
Optional Deps : None
Required By : gimp-sharp gtk-sharp-2 mono-addins ndesk-dbus
Conflicts With : monodoc
Replaces : None
Installed Size : 137984,00 K
Packager : Daniel Isenmann <[email protected]>
Architecture : x86_64
Build Date : su. 20. des. 2009 kl. 16.19 +0100
Install Date : ty. 19. jan. 2010 kl. 21.09 +0100
Install Reason : Installed as a dependency for another package
Install Script : No
Description : Free implementation of the .NET platform including
runtime and compiler
Raindrops, similarly, gives
Parameters: 3
param.Size: 36
param.type.Size: 4
param.type.Data: 32
0 Int32
param.Size: 36
param.type.Size: 4
param.type.Data: 32
1 Int32
param.Size: 36
param.type.Size: 4
param.type.Data: 32
2 Int32
gimp-sharp: fatal error: Segmentation fault
and no UI change. Splitter pops up the dialogue, but segfaults if I try to use it (not if I cancel). All other filters just segfault.
Check for Updates gives me
Parameters: 3
param.Size: 36
param.type.Size: 4
param.type.Data: 32
0 Int32
param.Size: 36
param.type.Size: 4
param.type.Data: 32
1 Int32
param.Size: 36
param.type.Size: 4
param.type.Data: 32
2 Int32
0.16.0.0
The contents of the Html page are :
<packages>
<package version=3D"0.12" />
</packages>
Processing time: 00:00:00.48
and no UI feedback.
Picture Package amazingly worked on the first, third and fourth try
(but didn't show my Custom Text in the picture), giving this the
second and third times:
Parameters: 3
param.Size: 36
param.type.Size: 4
param.type.Data: 32
0 Int32
gimp-sharp: fatal error: Segmentation fault
Parameters: 3
param.Size: 36
param.type.Size: 4
param.type.Data: 32
0 Int32
param.Size: 36
param.type.Size: 4
param.type.Data: 32
1 Int32
param.Size: 36
param.type.Size: 4
param.type.Data: 32
2 Int32
Processing time: 00:00:01.55
while save as JavaFX pops up a dialogue and segfaults.
Now, the one reason I'm trying Gimp# is that I want Photoshop Actions. This gives me a dialogue with no available actions. Pressing OK does nothing, while on pressing Execute, Gimp gives a dialogue saying the plugin crashed and I should save and exit. Here's the console output:
#Total scripts : 0
#Total actions : 0
#Total events : 0
#Parsed : 0
#Old : 0
#Failed : 0
#Scripts executable : 0
#Actions executable : 0
#Events executable : 0
% parsed : =EF=BF=BD
% executable scripts: =EF=BF=BD
% executable actions: =EF=BF=BD
% executable events : =EF=BF=BD
Marshaling clicked signal
Exception in Gtk# callback delegate
Note: Applications can use GLib.ExceptionManager.UnhandledException
to handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. ---> System.IndexOutOfRangeException:
Array index is out of range.
at Gimp.PhotoshopActions.PhotoshopActions+<CreateDialog>c__AnonStorey84.<=
>m__9
(System.Object , System.EventArgs ) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native)
System.Reflection.MonoMethod:InternalInvoke
(object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
[0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
[0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj,
System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.Delegate.DynamicInvokeImpl (System.Object[] args)
[0x00000] in <filename unknown>:0
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args)
[0x00000] in <filename unknown>:0
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in
<filename unknown>:0
at GLib.Signal.ClosureInvokedCB (System.Object o,
GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args)
[0x00000] in <filename unknown>:0
at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr
return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr
invocation_hint, IntPtr marshal_data) [0x00000] in <filename
unknown>:0
at GLib.ExceptionManager.RaiseUnhandledException(System.Exception
e, Boolean is_terminal)
at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr
return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr
invocation_hint, IntPtr marshal_data)
at Gimp.GimpDialog.gimp_dialog_run(IntPtr )
at Gimp.GimpDialog.Run()
at Gimp.Plugin.DialogRun()
at Gimp.Plugin.Run(System.String name, Gimp.ParamDefList inParam,
Gimp.ParamDefList ByRef outParam)
at Gimp.Plugin.Run(System.String name, Int32 n_params, IntPtr
paramPtr, Int32 ByRef n_return_vals, IntPtr ByRef return_vals)
at Gimp.Plugin.gimp_main(GimpPlugInInfo ByRef , Int32 , System.String[] =
at Gimp.Plugin..ctor(System.String[] args, System.String package)
at Gimp.PhotoshopActions.PhotoshopActions..ctor(System.String[] args)
at Gimp.PhotoshopActions.PhotoshopActions.Main(System.String[] args)
Sorry if I'm being very verbose about some simple mistake, but I figured I might as well include what I've found so far...
Has anyone else here gotten gimp-sharp / Photoshop Actions up and running?
My PKGBUILD so far:
pkgname=gimp-sharp
pkgver=0.16
pkgrel=1
pkgdesc="Gimp# is a C# wrapper around the GIMP API"
arch=('i686' 'x86_64')
url="http://gimp-sharp.sourceforge.net/"
license=('GPL')
depends=('gimp' 'mono')
source=("http://downloads.sourceforge.net/sourceforge/gimp-sharp/gimp-sharp-${pkgver}.tar.gz")
md5sums=('9dc7f795269120a7dfb17a20a8e2ddb0') # todo, this is my patched version
build() {
cd "$srcdir"/gimp-sharp-$pkgver
./configure --prefix=/usr
make || return 1
mkdir -p ${pkgdir}/usr/lib/gimp/2.0/plug-ins
make DESTDIR="$pkgdir" install
although this also needs a patch I haven't made yet that changes the makefiles in the plug-ins subdirs to saying
echo "Copying po/$$lang to $(DESTDIR)$(GIMPLOCALE)/$$localedir/LC_MESSAGES/AverageBlur.mo";\
$(mkinstalldirs) $(DESTDIR)$(GIMPLOCALE)/$$localedir/LC_MESSAGES ;\
$(INSTALL_DATA) po/$$lang $(DESTDIR)$(GIMPLOCALE)/$$localedir/LC_MESSAGES/AverageBlur.mo;\
instead of
echo "Copying po/$$lang to $(GIMPLOCALE)/$$localedir/LC_MESSAGES/AverageBlur.mo";\
$(INSTALL_DATA) po/$$lang $(GIMPLOCALE)/$$localedir/LC_MESSAGES/AverageBlur.mo;\
but I'm hoping they'll just fix it upstream after my reports ;-)

Check if dmesg |tail has something interesting to say about these crashes.
Probably it's a bug in some shared library, to find out which one it is start your editor under gdb and run bt after it segfaults:
$ gdb ./test
GNU gdb (GDB) 7.5.1
blah blah blah
(gdb) run
Starting program: /home/m/test
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7aafc61 in __strlen_sse2 () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff7aafc61 in __strlen_sse2 () from /usr/lib/libc.so.6 <- my program crashed in strlen in libc
#1 0x0000000000400519 in main ()
(gdb) quit

Similar Messages

Maybe you are looking for

  • Can I keep a published/shared calendar current when using two synced macs?

    I have two macs, home and office, thinking about a laptop for travel as well, plus iPhone. I sync all the calendars with .mac which works nicely, then publish and share. But I am not publishing the .mac version, I am publishing the version on one of

  • Does HP Proliant DL380 G4 work with Solaris 10?

    Hi everybody!!! I�d like to know if anybody made HP Proliant DL380 G4 work with solaris 10. I didn�t find this server in HCL for solaris 10. has anybody tried to install solaris 10 on this server? tnx very much regards The player

  • Can I somehow let the user select multiple images from device?

    Is there any way to let the user select multiple images from the device media gallery? The CameraRoll only selects one image. And the FileRefernceList doesn't show thumbnails (so you have no idea what you are selecting). Is there a way, or maybe some

  • Itunes not detecting my video ipod

    I have installed itunes and my ipod but when i plug in my ipod nothing happens and in the preferences tab it sas no ipod connected. I've done the 5 R's and have reinstalled the ipod and itunes many times. When i try to restore my ipod it says no ipod

  • Raid not mounting, only mounts after restart

    When i restart the MP, the 4tb RAID (2x WD Black Cav.) fail to mount, but show in disc utility. When I restart, the RAID Shows - Is this a sign they are about to die... I bought them in Oct 2011 - around the same time as the inflated HDD prices due t