GNOME Bugzilla – Bug 462019
NullReferenceException at LibGPhoto2.Camera.gp_camera_set_abilities on PPC
Last modified: 2010-06-11 14:24:54 UTC
Steps to reproduce: 1. Select Import from File menu 2. Select Canon Digital IXUS 750 (PTP mode) from Input Source menu 3. Watch f-spot go horribly down in flames. 4. Worth noting that both Digikam and gThumb work fine with same input source. Stack trace: (f-spot:9811): libglade-WARNING **: unknown attribute `comment' for <property>. item ImportCommand+SourceItem Stacktrace: at (wrapper managed-to-native) LibGPhoto2.Camera.gp_camera_set_abilities (System.Runtime.InteropServices.HandleRef,LibGPhoto2.CameraAbilities) <0xffffffff> at (wrapper managed-to-native) LibGPhoto2.Camera.gp_camera_set_abilities (System.Runtime.InteropServices.HandleRef,LibGPhoto2.CameraAbilities) <0x000d0> at LibGPhoto2.Camera.SetAbilities (LibGPhoto2.CameraAbilities) <0x00118> at GPhotoCamera.SelectCamera (int) <0x001b4> at MainWindow.ImportCamera (string) <0x0031c> at ImportCommand.set_Source (ImportCommand/SourceItem) <0x003d0> at SourceMenu.HandleActivated (object,System.EventArgs) <0x00078> at (wrapper delegate-invoke) System.MulticastDelegate.invoke_void_object_EventArgs (object,System.EventArgs) <0x00078> at GLib.Signal.voidObjectCallback (intptr,intptr) <0x00134> at (wrapper native-to-managed) GLib.Signal.voidObjectCallback (intptr,intptr) <0x0005c> at (wrapper managed-to-native) Gtk.Dialog.gtk_dialog_run (intptr) <0xffffffff> at (wrapper managed-to-native) Gtk.Dialog.gtk_dialog_run (intptr) <0x00090> at Gtk.Dialog.Run () <0x0004c> at ImportCommand.ImportFromFile (PhotoStore,string) <0x00930> at MainWindow.HandleImportCommand (object,System.EventArgs) <0x000b8> at (wrapper delegate-invoke) System.MulticastDelegate.invoke_void_object_EventArgs (object,System.EventArgs) <0x00078> at GLib.Signal.voidObjectCallback (intptr,intptr) <0x00134> at (wrapper native-to-managed) GLib.Signal.voidObjectCallback (intptr,intptr) <0x0005c> at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff> at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x0008c> at Gtk.Application.Run () <0x00018> at Gnome.Program.Run () <0x0001c> at FSpot.Driver.Main (string[]) <0x00b48> at (wrapper runtime-invoke) System.Object.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0x00070> Native stacktrace: f-spot [0x101621b0] f-spot [0x1013b474] [0x100350] [0x33bf3fc0] [0x3003f50] /usr/lib/libgphoto2.so.2(gp_camera_set_abilities+0x84) [0xd6382c4] [0x3759c284] [0x3759ab04] [0x37599d50] [0x37599508] [0x37598424] [0x37597ff4] [0x323130fc] [0x3423d710] [0x32542430] /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x6c) [0xeaf6f0c] /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x15c) [0xeae624c] /usr/lib/libgobject-2.0.so.0 [0xeafaa68] /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x88c) [0xeafba7c] /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x68) [0xeafbc48] /usr/lib/libgtk-x11-2.0.so.0(gtk_widget_activate+0xd8) [0xf5ae3b8] /usr/lib/libgtk-x11-2.0.so.0(gtk_menu_shell_activate_item+0x19c) [0xf46fb6c] /usr/lib/libgtk-x11-2.0.so.0 [0xf4716a8] /usr/lib/libgtk-x11-2.0.so.0 [0xf466f8c] /usr/lib/libgtk-x11-2.0.so.0(_gtk_marshal_BOOLEAN__BOXED+0x84) [0xf45fa64] /usr/lib/libgobject-2.0.so.0 [0xeae448c] /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x274) [0xeae6364] /usr/lib/libgobject-2.0.so.0 [0xeafa8c0] /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x61c) [0xeafb80c] /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x68) [0xeafbc48] /usr/lib/libgtk-x11-2.0.so.0 [0xf5a8280] /usr/lib/libgtk-x11-2.0.so.0(gtk_propagate_event+0xf0) [0xf457160] /usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x3c0) [0xf458ba0] /usr/lib/libgdk-x11-2.0.so.0 [0xf24a728] /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1e4) [0xfef5874] /usr/lib/libglib-2.0.so.0 [0xfef9518] /usr/lib/libglib-2.0.so.0(g_main_loop_run+0x294) [0xfef9984] /usr/lib/libgtk-x11-2.0.so.0(gtk_dialog_run+0x174) [0xf3c2ef4] [0x37597f18] [0x37597e10] [0x3758316c] [0x32547bcc] [0x323130fc] [0x3423d710] [0x32542430] /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x6c) [0xeaf6f0c] /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x15c) [0xeae624c] /usr/lib/libgobject-2.0.so.0 [0xeafaa68] /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x88c) [0xeafba7c] /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x68) [0xeafbc48] /usr/lib/libgtk-x11-2.0.so.0(gtk_widget_activate+0xd8) [0xf5ae3b8] /usr/lib/libgtk-x11-2.0.so.0(gtk_menu_shell_activate_item+0x19c) [0xf46fb6c] /usr/lib/libgtk-x11-2.0.so.0 [0xf4716a8] /usr/lib/libgtk-x11-2.0.so.0 [0xf466f8c] /usr/lib/libgtk-x11-2.0.so.0(_gtk_marshal_BOOLEAN__BOXED+0x84) [0xf45fa64] /usr/lib/libgobject-2.0.so.0 [0xeae448c] /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x15c) [0xeae624c] /usr/lib/libgobject-2.0.so.0 [0xeafa8c0] /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x61c) [0xeafb80c] /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x68) [0xeafbc48] /usr/lib/libgtk-x11-2.0.so.0 [0xf5a8280] /usr/lib/libgtk-x11-2.0.so.0(gtk_propagate_event+0xf0) [0xf457160] /usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x3c0) [0xf458ba0] /usr/lib/libgdk-x11-2.0.so.0 [0xf24a728] /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1e4) [0xfef5874] /usr/lib/libglib-2.0.so.0 [0xfef9518] /usr/lib/libglib-2.0.so.0(g_main_loop_run+0x294) [0xfef9984] /usr/lib/libgtk-x11-2.0.so.0(gtk_main+0x104) [0xf4590c4] [0x3752a9e8] [0x3752a8fc] [0x3753afb0] [0x30b4f004] [0x30b4c0bc] f-spot [0x1013b29c] f-spot(mono_runtime_invoke+0x1c) [0x100563dc] f-spot(mono_runtime_exec_main+0x14c) [0x1005b9a8] f-spot(mono_runtime_run_main+0x2a4) [0x1005bc9c] f-spot(mono_jit_exec+0xe0) [0x100135ac] f-spot [0x100136e8] f-spot(mono_main+0x16f4) [0x10015070] f-spot [0x10012194] /lib/libc.so.6 [0xfc48d40] /lib/libc.so.6 [0xfc48f98] Debug info from gdb: (no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1". (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 805491040 (LWP 9811)] [New Thread 933229728 (LWP 9838)] [New Thread 876864672 (LWP 9821)] [New Thread 875816096 (LWP 9820)] [New Thread 818357408 (LWP 9813)] [New Thread 817112224 (LWP 9812)] (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) 0x0fd01fa8 in select () from /lib/libc.so.6 6 Thread 817112224 (LWP 9812) 0x0fe6dae0 in ?? () from /lib/libpthread.so.0 5 Thread 818357408 (LWP 9813) 0x0fe69064 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 4 Thread 875816096 (LWP 9820) 0x0fe69614 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 3 Thread 876864672 (LWP 9821) 0x0fe69614 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 2 Thread 933229728 (LWP 9838) 0x0fe69614 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 1 Thread 805491040 (LWP 9811) 0x0fd01fa8 in select () from /lib/libc.so.6
+ Trace 151737
Thread 1 (Thread 805491040 (LWP 9811))
================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Aborted (core dumped) Other information: I'm able to import via gThumb and then import into F-Spot from files, but this is for my wife switching from OS X to Linux, so not ideal at all. Ubuntu Feisty Fawn (on Power PC) angie@seashell:~$ dpkg -l | grep -E "(mono|f-spot)" ii f-spot 0.3.5-0ubuntu2 personal photo management application ii libmono-cairo1.0-cil 1.2.3.1-1ubuntu1 Mono Cairo library ii libmono-corlib1.0-cil 1.2.3.1-1ubuntu1 Mono core library (1.0) ii libmono-corlib2.0-cil 1.2.3.1-1ubuntu1 Mono core library (2.0) ii libmono-data-tds2.0-cil 1.2.3.1-1ubuntu1 Mono Data Library ii libmono-security2.0-cil 1.2.3.1-1ubuntu1 Mono Security library ii libmono-sharpzip2.84-cil 1.2.3.1-1ubuntu1 Mono SharpZipLib library ii libmono-sqlite2.0-cil 1.2.3.1-1ubuntu1 Mono Sqlite library ii libmono-system-data2.0-cil 1.2.3.1-1ubuntu1 Mono System.Data Library ii libmono-system-web2.0-cil 1.2.3.1-1ubuntu1 Mono System.Web Library ii libmono-system1.0-cil 1.2.3.1-1ubuntu1 Mono System libraries (1.0) ii libmono-system2.0-cil 1.2.3.1-1ubuntu1 Mono System libraries (2.0) ii libmono0 1.2.3.1-1ubuntu1 libraries for the Mono JIT ii libmono2.0-cil 1.2.3.1-1ubuntu1 Mono libraries (2.0) ii mono-common 1.2.3.1-1ubuntu1 common files for Mono ii mono-gac 1.2.3.1-1ubuntu1 Mono GAC tool ii mono-jit 1.2.3.1-1ubuntu1 fast CLI JIT/AOT compiler for Mono ii mono-runtime 1.2.3.1-1ubuntu1 Mono runtime
Shouldn't this one be reported mainly on libgphoto? http://www.gphoto.org/proj/libgphoto2/ Or should we push them to get a resolution on this issue?
Also reported at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=315484 It's worth noting that import via gThumb worked, so it shouldn't be a libgphoto2 issue - perhaps f-spot's bindings. It's also the case that all three reporters were using PPC machines. To me this sounds similar to (but different from) bug #505822.
Retitling to make it easier to find.
Gphoto2-sharp is no longer used in git (we use gvfs now), so this should be fixed. Could you test this?
I've still got a PPC box, although we don't have an easy test case for this bug, do we? I mean, one that doesn't involve a Canon Digital IXUS 750 in PTP mode.
Not that I'm aware of. But we're not doing any magic related to gphoto2 anymore: we delegate that task to gvfs. So from an F-Spot point of view, this bug should no longer exist. If it fails, it'll probably be a gvfs bug now. Just asking for testing to be sure, rather than immediately closing the bug. If you are able to test this, please do so, otherwise we should probably just close it.
In that case, please assume I can't test this. Even if the bug still exists (which it shouldn't), the stack trace would be entirely different, so I'd just close this bug. It's easier than remembering to come back in a few weeks.
Okay, closing! Thanks!