After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 462019 - NullReferenceException at LibGPhoto2.Camera.gp_camera_set_abilities on PPC
NullReferenceException at LibGPhoto2.Camera.gp_camera_set_abilities on PPC
Status: RESOLVED OBSOLETE
Product: f-spot
Classification: Other
Component: Import
0.3.x
Other All
: Normal critical
: 0.7.0
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2007-07-31 04:19 UTC by John Wells
Modified: 2010-06-11 14:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description John Wells 2007-07-31 04:19:04 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

Thread 1 (Thread 805491040 (LWP 9811))

  • #0 select
    from /lib/libc.so.6
  • #1 g_spawn_sync
    from /usr/lib/libglib-2.0.so.0
  • #2 g_spawn_command_line_sync
    from /usr/lib/libglib-2.0.so.0
  • #3 ??
  • #4 ??
  • #5 <signal handler called>
  • #6 ??
    from /lib/libc.so.6
  • #7 memcpy
    from /lib/libc.so.6
  • #8 ??
  • #9 gp_camera_set_abilities
    from /usr/lib/libgphoto2.so.2
  • #10 ??
  • #11 ??
  • #12 ??
  • #13 ??
  • #14 ??
  • #15 ??
  • #16 ??
  • #17 ??
  • #18 ??
  • #19 g_cclosure_marshal_VOID__VOID
    from /usr/lib/libgobject-2.0.so.0
  • #20 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #21 ??
    from /usr/lib/libgobject-2.0.so.0
  • #22 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #23 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #24 gtk_widget_activate
    from /usr/lib/libgtk-x11-2.0.so.0
  • #25 gtk_menu_shell_activate_item
    from /usr/lib/libgtk-x11-2.0.so.0
  • #26 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #27 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #28 _gtk_marshal_BOOLEAN__BOXED
    from /usr/lib/libgtk-x11-2.0.so.0
  • #29 ??
    from /usr/lib/libgobject-2.0.so.0
  • #30 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #31 ??
    from /usr/lib/libgobject-2.0.so.0
  • #32 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #33 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #34 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #35 gtk_propagate_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #36 gtk_main_do_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #37 ??
    from /usr/lib/libgdk-x11-2.0.so.0
  • #38 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #39 ??
    from /usr/lib/libglib-2.0.so.0
  • #40 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #41 gtk_dialog_run
    from /usr/lib/libgtk-x11-2.0.so.0
  • #42 ??
  • #43 ??
  • #44 ??
  • #45 ??
  • #46 ??
  • #47 ??
  • #48 ??
  • #49 g_cclosure_marshal_VOID__VOID
    from /usr/lib/libgobject-2.0.so.0
  • #50 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #51 ??
    from /usr/lib/libgobject-2.0.so.0
  • #52 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #53 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #54 gtk_widget_activate
    from /usr/lib/libgtk-x11-2.0.so.0
  • #55 gtk_menu_shell_activate_item
    from /usr/lib/libgtk-x11-2.0.so.0
  • #56 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #57 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #58 _gtk_marshal_BOOLEAN__BOXED
    from /usr/lib/libgtk-x11-2.0.so.0
  • #59 ??
    from /usr/lib/libgobject-2.0.so.0
  • #60 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #61 ??
    from /usr/lib/libgobject-2.0.so.0
  • #62 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #63 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #64 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #65 gtk_propagate_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #66 gtk_main_do_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #67 ??
    from /usr/lib/libgdk-x11-2.0.so.0
  • #68 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #69 ??
    from /usr/lib/libglib-2.0.so.0
  • #70 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #71 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #72 ??
  • #73 ??
  • #74 ??
  • #75 ??
  • #76 ??
  • #77 ??
  • #78 mono_runtime_invoke
  • #79 mono_runtime_exec_main
  • #80 mono_runtime_run_main
  • #81 mono_jit_exec
  • #82 ??
  • #83 mono_main
  • #84 ??
  • #85 ??
    from /lib/libc.so.6
  • #86 __libc_start_main
    from /lib/libc.so.6
  • #87 ??
  • #0 select
    from /lib/libc.so.6


=================================================================
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
Comment 1 Bengt Thuree 2007-11-21 18:53:35 UTC
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?
Comment 2 Tim Retout 2007-12-27 00:09:31 UTC
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.
Comment 3 Tim Retout 2008-04-24 11:25:05 UTC
Retitling to make it easier to find.
Comment 4 Ruben Vermeersch 2010-06-08 07:40:34 UTC
Gphoto2-sharp is no longer used in git (we use gvfs now), so this should be fixed. Could you test this?
Comment 5 Tim Retout 2010-06-11 10:11:57 UTC
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.
Comment 6 Ruben Vermeersch 2010-06-11 10:16:42 UTC
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.
Comment 7 Tim Retout 2010-06-11 13:21:10 UTC
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.
Comment 8 Ruben Vermeersch 2010-06-11 14:24:54 UTC
Okay, closing! Thanks!