(cheese:2636): GLib-GObject-CRITICAL **: g_type_instance_get_private: assertion `instance != NULL && instance->g_class != NULL' failed

Program received signal SIGSEGV, Segmentation fault.
cheese_camera_take_photo (camera=0x0, 
    filename=0xae2a40 "/home/ben/Pictures/Webcam/2010-04-06-154854.jpg")
    at cheese-camera.c:904
904	cheese-camera.c: No such file or directory.
	in cheese-camera.c








(gdb) backtrace full
#0  cheese_camera_take_photo (camera=0x0, 
    filename=0xae2a40 "/home/ben/Pictures/Webcam/2010-04-06-154854.jpg")
    at cheese-camera.c:904
        __FUNCTION__ = "cheese_camera_take_photo"
#1  0x000000000040e900 in cheese_window_countdown_picture_cb (
    data=<value optimized out>) at cheese-window.c:626
        priv = <value optimized out>
        photo_filename = 0xae2a40 "/home/ben/Pictures/Webcam/2010-04-06-154854.jpg"
#2  0x000000000041f885 in cheese_countdown_cb (countdown=0x9d7440)
    at cheese-countdown.c:597
        priv = 0x0
#3  0x00007fc152cfd09b in g_timeout_dispatch (source=0xb8ead0, callback=0, 
    user_data=0x0) at /build/buildd/glib2.0-2.24.0/glib/gmain.c:3396
No locals.
#4  0x00007fc152cfc8c2 in g_main_dispatch (context=0x8f3af0)
    at /build/buildd/glib2.0-2.24.0/glib/gmain.c:1960
        dispatch = 0x7fc152cfd080 <g_timeout_dispatch>
        user_data = 0x9d7440
        callback = 0x41f840 <cheese_countdown_cb>
        cb_funcs = 0x7fc152f99610
        cb_data = 0xc9a170
        current_source_link = {data = 0xb8ead0, next = 0x0}
---Type <return> to continue, or q <return> to quit---
        source = 0xb8ead0
        current = 0x93db30
        i = 0
#5  IA__g_main_context_dispatch (context=0x8f3af0)
    at /build/buildd/glib2.0-2.24.0/glib/gmain.c:2513
No locals.
#6  0x00007fc152d00748 in g_main_context_iterate (context=0x8f3af0, 
    block=<value optimized out>, dispatch=<value optimized out>, 
    self=<value optimized out>)
    at /build/buildd/glib2.0-2.24.0/glib/gmain.c:2591
        max_priority = 2147483647
        timeout = 998
        some_ready = 1
        nfds = 6
        allocated_nfds = 1389418064
        fds = <value optimized out>
        __PRETTY_FUNCTION__ = "g_main_context_iterate"
#7  0x00007fc152d00c55 in IA__g_main_loop_run (loop=0xc789a0)
    at /build/buildd/glib2.0-2.24.0/glib/gmain.c:2799
        self = 0x8b41e0
        __PRETTY_FUNCTION__ = "IA__g_main_loop_run"
#8  0x00007fc155939af7 in IA__gtk_main ()
    at /build/buildd/gtk+2.0-2.20.0/gtk/gtkmain.c:1219
---Type <return> to continue, or q <return> to quit---
        tmp_list = 0xae8160
        functions = 0x0
        init = 0x420584
        loop = <value optimized out>
#9  0x000000000040dadc in main (argc=1, argv=0x7fff71d05098) at cheese.c:164
        context = <value optimized out>
        dbus_server = <value optimized out>
        error = 0x0
        options = {{long_name = 0x420587 "verbose", short_name = 118 'v', 
            flags = 0, arg = G_OPTION_ARG_NONE, arg_data = 0x629440, 
            description = 0x420584 "Be verbose", arg_description = 0x0}, {
            long_name = 0x42060f "wide", short_name = 119 'w', flags = 0, 
            arg = G_OPTION_ARG_NONE, arg_data = 0x629444, 
            description = 0x42058f "Enable wide mode", arg_description = 0x0}, 
          {long_name = 0x4205a0 "version", short_name = 0 '\000', flags = 0, 
            arg = G_OPTION_ARG_NONE, arg_data = 0x629448, 
            description = 0x420630 "output version information and exit", 
            arg_description = 0x0}, {long_name = 0x0, short_name = 0 '\000', 
            flags = 0, arg = G_OPTION_ARG_NONE, arg_data = 0x0, 
            description = 0x0, arg_description = 0x0}}



(gdb) info registers
rax            0x0	0
rbx            0xae2a40	11414080
rcx            0x7fc157b777e0	140468377057248
rdx            0x0	0
rsi            0x0	0
rdi            0x2	2
rbp            0x0	0x0
rsp            0x7fff71d04c30	0x7fff71d04c30
r8             0xb298c0	11704512
r9             0x1	1
r10            0x1	1
r11            0x0	0
r12            0xae2a40	11414080
r13            0x93db30	9689904
r14            0x7fc152f99610	140468297504272
r15            0x8f3af0	9386736
rip            0x41bbe9	0x41bbe9 <cheese_camera_take_photo+41>
eflags         0x10246	[ PF ZF IF RF ]
cs             0x33	51
ss             0x2b	43
ds             0x0	0
es             0x0	0
fs             0x0	0
---Type <return> to continue, or q <return> to quit---
gs             0x0	0




(gdb) x/16i $pc
=> 0x41bbe9 <cheese_camera_take_photo+41>:	cmpq   $0x0,0x90(%rax)
   0x41bbf1 <cheese_camera_take_photo+49>:	mov    %rax,%rbx
   0x41bbf4 <cheese_camera_take_photo+52>:	
    je     0x41bc58 <cheese_camera_take_photo+152>
   0x41bbf6 <cheese_camera_take_photo+54>:	
    mov    0x20c373(%rip),%rdx        # 0x627f70
   0x41bbfd <cheese_camera_take_photo+61>:	xor    %eax,%eax
   0x41bbff <cheese_camera_take_photo+63>:	cmpl   $0x1,(%rdx)
   0x41bc02 <cheese_camera_take_photo+66>:	
    jbe    0x41bc3e <cheese_camera_take_photo+126>
   0x41bc04 <cheese_camera_take_photo+68>:	
    lea    0x8145(%rip),%rax        # 0x423d50
   0x41bc0b <cheese_camera_take_photo+75>:	
    lea    0x84ae(%rip),%rcx        # 0x4240c0 <__FUNCTION__.57209>
   0x41bc12 <cheese_camera_take_photo+82>:	
    lea    0x7be2(%rip),%rdx        # 0x4237fb
   0x41bc19 <cheese_camera_take_photo+89>:	xor    %r9d,%r9d
   0x41bc1c <cheese_camera_take_photo+92>:	mov    $0x38a,%r8d
   0x41bc22 <cheese_camera_take_photo+98>:	mov    $0x2,%esi
   0x41bc27 <cheese_camera_take_photo+103>:	mov    %rax,(%rsp)
   0x41bc2b <cheese_camera_take_photo+107>:	
    mov    0x20c366(%rip),%rax        # 0x627f98
   0x41bc32 <cheese_camera_take_photo+114>:	mov    (%rax),%rdi





(gdb) thread apply all backtrace

Thread 2 (Thread 0x7fc14a3a1710 (LWP 2638)):
#0  0x00007fc152803f93 in *__GI___poll (fds=<value optimized out>, 
    nfds=<value optimized out>, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fc152d004a9 in g_main_context_poll (context=0x7fc1440008f0, 
    block=<value optimized out>, dispatch=<value optimized out>, 
    self=<value optimized out>)
    at /build/buildd/glib2.0-2.24.0/glib/gmain.c:2904
#2  g_main_context_iterate (context=0x7fc1440008f0, 
    block=<value optimized out>, dispatch=<value optimized out>, 
    self=<value optimized out>)
    at /build/buildd/glib2.0-2.24.0/glib/gmain.c:2586
#3  0x00007fc152d00c55 in IA__g_main_loop_run (loop=0x7fc1440011d0)
    at /build/buildd/glib2.0-2.24.0/glib/gmain.c:2799
#4  0x00007fc1513761e0 in ?? () from /usr/lib/libORBit-2.so.0
#5  0x00007fc152d25b84 in g_thread_create_proxy (data=0x7fc1440014f0)
    at /build/buildd/glib2.0-2.24.0/glib/gthread.c:1893
#6  0x00007fc1564729ca in start_thread (arg=<value optimized out>)
    at pthread_create.c:300
#7  0x00007fc1528106dd in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---

Thread 1 (Thread 0x7fc157b777e0 (LWP 2636)):
#0  cheese_camera_take_photo (camera=0x0, 
    filename=0xae2a40 "/home/ben/Pictures/Webcam/2010-04-06-154854.jpg")
    at cheese-camera.c:904
#1  0x000000000040e900 in cheese_window_countdown_picture_cb (
    data=<value optimized out>) at cheese-window.c:626
#2  0x000000000041f885 in cheese_countdown_cb (countdown=0x9d7440)
    at cheese-countdown.c:597
#3  0x00007fc152cfd09b in g_timeout_dispatch (source=0xb8ead0, callback=0, 
    user_data=0x0) at /build/buildd/glib2.0-2.24.0/glib/gmain.c:3396
#4  0x00007fc152cfc8c2 in g_main_dispatch (context=0x8f3af0)
    at /build/buildd/glib2.0-2.24.0/glib/gmain.c:1960
#5  IA__g_main_context_dispatch (context=0x8f3af0)
    at /build/buildd/glib2.0-2.24.0/glib/gmain.c:2513
#6  0x00007fc152d00748 in g_main_context_iterate (context=0x8f3af0, 
    block=<value optimized out>, dispatch=<value optimized out>, 
    self=<value optimized out>)
    at /build/buildd/glib2.0-2.24.0/glib/gmain.c:2591
#7  0x00007fc152d00c55 in IA__g_main_loop_run (loop=0xc789a0)
    at /build/buildd/glib2.0-2.24.0/glib/gmain.c:2799
#8  0x00007fc155939af7 in IA__gtk_main ()
    at /build/buildd/gtk+2.0-2.20.0/gtk/gtkmain.c:1219
---Type <return> to continue, or q <return> to quit---
#9  0x000000000040dadc in main (argc=1, argv=0x7fff71d05098) at cheese.c:164






