#906 Gtkam crashes when clicking directories

pending
gtkam (32)
5
2014-08-14
2012-03-05
dalek
No

I have had this problem for a VERY long time. It has finally got to the point that I had to fix it or switch to other software. Thiing is, I like gtkam since it is simple, quick and really fits my needs. So, I'm a Gentoo user with KDE4 installed. I use a Canon PowerShot A3000-IS camera and PTP for the downloads. This also happened with my previous camera as well, Canon PowerShot A95 also with PTP. Software info:

root@fireball / # emerge -vp gtkam libgphoto2 libexif-gtk gtk+ kdelibs

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] media-libs/libexif-gtk-0.3.5-r2 USE="nls -static-libs" 388 kB
[ebuild R ] x11-libs/gtk+-3.0.12-r1 USE="cups introspection xinerama (-aqua) -debug -doc -examples -test -vim-syntax" 0 kB
[ebuild R ] media-libs/libgphoto2-2.4.11-r1 USE="exif jpeg nls zeroconf -doc -examples -gd" CAMERAS="canon ptp2 -adc65 -agfa_cl20 -aox -ax203 -barbie -casio_qv -clicksmart310 -digigr8 -digita -dimagev -dimera3500 -directory -enigma13 -fuji -gsmart300 -hp215 -iclick -jamcam -jd11 -jl2005a -jl2005c -kodak_dc120 -kodak_dc210 -kodak_dc240 -kodak_dc3200 -kodak_ez200 -konica -konica_qm150 -largan -lg_gsm -mars -mustek -panasonic_coolshot -panasonic_dc1000 -panasonic_dc1580 -panasonic_l859 -pccam300 -pccam600 -polaroid_pdc320 -polaroid_pdc640 -polaroid_pdc700 -ricoh -ricoh_g3 -samsung -sierra -sipix_blink -sipix_blink2 -sipix_web2 -smal -sonix -sony_dscf1 -sony_dscf55 -soundvision -spca50x -sq905 -st2205 -stv0674 -stv0680 -sx330z -template -topfield -toshiba_pdrm11" 4,294 kB
[ebuild R ~] kde-base/kdelibs-4.8.0-r1 USE="3dnow alsa bzip2 fam handbook jpeg2k lzma mmx nls opengl (policykit) semantic-desktop spell sse sse2 ssl udev udisks upower zeroconf -acl (-altivec) (-aqua) -debug -doc -kerberos -openexr -test -upnp" 0 kB
[ebuild R ~] media-gfx/gtkam-0.1.18 USE="debug nls -gimp -gnome" 0 kB

Total: 5 packages (5 reinstalls), Size of downloads: 4,682 kB
root@fireball / #

I tried to include anything relavant in the list above complete with current versions and USE flags. Again, gtkam has crashed on me for the past several versions. What I did to fix it was to disable the gimp USE flag. When I disable that, it works fine and so far has not crashed but I plan to test it more.

What else I tried. I also tried disabling the nls USE flag but no change. I then disabled gimp and enabled nls like it was before. It worked fine during my heafty testing. It appears that the gimp USE flag triggers this issue. Since I use KDE, I didn't want to enable the gnome USE flag. That would likely trigger a large number of installs that I don't use.

When I run gtkam as a regular user from a Konsole, it crashes with a segmentation fault. I did have the debug flag on but that was all it reported in the Konsole.

I have found where others have complained about this issue but they were old reports with not so much info since they were using binary distros. I'm hoping that maybe this will help the geeks find a fix. Maybe since it is narrowed down to a specific USE flag, it will help point in the right direction.

Please take the term "geeks" in a very positive way. I'm geeky too.

Discussion

  • Marcus Meissner

    Marcus Meissner - 2012-03-05
    • assigned_to: nobody --> marcusmeissner
     
  • Marcus Meissner

    Marcus Meissner - 2012-03-05

    can you capture a backtrace of this crash?

    gdb gtkam
    run

    and once it crashes type
    bt

     
  • dalek

    dalek - 2012-03-05

    Well, I installed gdb but it doesn't like gtkam for some reason. This is what I got tho:

    dale@fireball / $ gdb gtkam
    GNU gdb (Gentoo 7.3.1 p2) 7.3.1
    Copyright (C) 2011 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-pc-linux-gnu".
    For bug reporting instructions, please see:
    <http://bugs.gentoo.org/>...
    Reading symbols from /usr/bin/gtkam...(no debugging symbols found)...done.
    (gdb) quit
    dale@fireball / $

    I checked, gtkam is compiled with debug support. It has been for a while because I was trying to figure out why it was crashing on me.

    What next?

     
  • Marcus Meissner

    Marcus Meissner - 2012-03-05

    after enteriung gdb ... type "run" to start the program

     
  • dalek

    dalek - 2012-03-06

    Oh. I gotcha. I recompiled it with gimp enabled. It wouldn't crash, at least so far, with it disabled. I certainly hope this helps:

    dale@fireball / $ gdb gtkam
    GNU gdb (Gentoo 7.3.1 p2) 7.3.1
    Copyright (C) 2011 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-pc-linux-gnu".
    For bug reporting instructions, please see:
    <http://bugs.gentoo.org/>...
    Reading symbols from /usr/bin/gtkam...(no debugging symbols found)...done.
    (gdb) run
    Starting program: /usr/bin/gtkam
    [Thread debugging using libthread_db enabled]

    Program received signal SIGSEGV, Segmentation fault.
    0x00007ffff643d8b9 in g_object_remove_weak_pointer () from /usr/lib64/libgobject-2.0.so.0
    (gdb) bt
    #0 0x00007ffff643d8b9 in g_object_remove_weak_pointer () from /usr/lib64/libgobject-2.0.so.0
    #1 0x00007ffff5a7cdb4 in ?? () from /usr/lib64/libgdk-x11-2.0.so.0
    #2 0x00007ffff5a7cf0a in ?? () from /usr/lib64/libgdk-x11-2.0.so.0
    #3 0x00007ffff5a7d1cc in ?? () from /usr/lib64/libgdk-x11-2.0.so.0
    #4 0x00007ffff5a5cea0 in ?? () from /usr/lib64/libgdk-x11-2.0.so.0
    #5 0x00007ffff5a5ee99 in gdk_window_process_all_updates () from /usr/lib64/libgdk-x11-2.0.so.0
    #6 0x00007ffff5a5ef09 in ?? () from /usr/lib64/libgdk-x11-2.0.so.0
    #7 0x00007ffff5a3c8ae in ?? () from /usr/lib64/libgdk-x11-2.0.so.0
    #8 0x00007ffff614401a in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
    #9 0x00007ffff6144828 in ?? () from /usr/lib64/libglib-2.0.so.0
    #10 0x00007ffff6144d12 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
    #11 0x00007ffff69cfbcf in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
    #12 0x000000000040dea6 in ?? ()
    #13 0x00007ffff6f060ac in __libc_start_main () from /lib64/libc.so.6
    #14 0x000000000040b3c9 in ?? ()
    #15 0x00007fffffffdd48 in ?? ()
    #16 0x000000000000001c in ?? ()
    #17 0x0000000000000001 in ?? ()
    #18 0x00007fffffffe0c3 in ?? ()
    #19 0x0000000000000000 in ?? ()
    (gdb) quit
    A debugging session is active.

    Inferior 1 [process 21224] will be killed.

    Quit anyway? (y or n) y
    dale@fireball / $

    Again, this has been going on for me for a really long time but it has got worse here lately.

    I'm a Gentoo user but not a programer. I'll try whatever I can but treat me like a noobie. ;-) I just got tired of the binary based distros but didn't want LFS either.

     
  • Marcus Meissner

    Marcus Meissner - 2012-03-10

    there is nothing gtkam or libgphoto2 specific in the trace, so it is hard to say where the error is.

    I am bit at loss here, as I lack gtk2 programming knowledge.

    What exactly are you doing when it crashes? Last times I tried here it didnt crash for me at least, but I use openSUSE ;)

     
  • Marcus Meissner

    Marcus Meissner - 2012-03-10
    • status: open --> pending
     
  • dalek

    dalek - 2012-03-10

    My camera has different folders/directories for each day. When I open gtkam, it lists those folders. If I click a folder then click another and repeat a few times like a user would do when looking for a particualr image, it crashes. Sometimes it takes a few clicks and sometimes it takes quite a few clicks. When I have the gimp USE flag enabled, it is reporducable every time. It's just a matter of how many clicks I have to do. I have had this happen when downloading images to but not to often.

    It could be something gtkam depends on but when I change the USE flag, nothing else gets recompiled. Of course, it could be that when the gimp USE flag is disabled that it doesn't try to use what ever package is causing this.

    Do you know if openSUSE has the gimp USE flag turned on or not? Maybe they disabled it to keep this from happening?

     
  • dalek

    dalek - 2012-03-19

    Well, we had a neighbor who lost some trees to a fire. It got sort of large before the fire dept showed up. Anyway, my camera bug gene kicked in and off to take pictures I went. I have the gimp USE flag still disabled but while downloading a, um um, very large number of pictures, it crashed again. Now that it crashed, it seems to do this a bit more often.

    So, while it did better with gimp disabled for a while, it is back to crashing but just takes longer. I'm going to keep testing this and if I find anything that changes this, I'll post back and then maybe some code can be changed to fix this. I really like this little program. I'd much rather help fix it than just switch to something else.

     
  • Marcus Meissner

    Marcus Meissner - 2012-03-19

    gtkam isnt really maintained as you noticed...

    you could check out other import possibilities...

    shotwell, eog, f-spot , or nautilus direct via gvfs for GNOME

    digikam , gwenview for KDE

    gphoto2 for the commandline

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks