Bug 215846 - PicasaWeb tool crashes after start sending the pic [PicasawebWindow::slotUploadImages] (double deletion)
Summary: PicasaWeb tool crashes after start sending the pic [PicasawebWindow::slotUplo...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-Google (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-23 17:31 UTC by Philippe ROUBACH
Modified: 2018-02-04 07:39 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.1.0
Sentry Crash Report:


Attachments
kde track (2.47 KB, text/plain)
2009-11-24 11:22 UTC, Philippe ROUBACH
Details
New crash information added by DrKonqi (18.36 KB, text/plain)
2010-04-28 18:20 UTC, Janos Kis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe ROUBACH 2009-11-23 17:31:29 UTC
Version:           inconnu (using 4.3.75 (KDE 4.3.75 (KDE 4.4 >= 20091113)), Mandriva Linux release 2010.1 (Cooker) for i586)
Compiler:          gcc
OS:                Linux (i686) release 2.6.31.6-desktop-1mnb

digikam 1.0.0b6
kipi-plugins 0.8

send a photo with picasaweb
wait the end of the sending
then
click "start sending"

digikam disappears

or
quit picasawebexport
then
relaunch picasawebexport
then
digikam crashes

or
quit picasawebexport
then
right click an album in the tree
then
select export with picasawebexport
then
digikam crashes

it seems digikam crashes at the second time you use picasawebexport
Comment 1 caulier.gilles 2009-11-23 22:35:20 UTC
Give us a GDB backtrace...

Gilles Caulier
Comment 2 Philippe ROUBACH 2009-11-23 23:57:24 UTC
what is gdb ?
how to record it ?

when digikam crashes it disappears and that's all. there is no other window opening of any bug tracker
Comment 3 Johannes Wienke 2009-11-24 00:01:21 UTC
On the command line start "gdb digikam" and inside gdb press r and enter. Digikam should start. If it crashes you will end once again in gdb in the console. With "bt" and enter you generate a backtrace that you can send here.
Comment 4 Philippe ROUBACH 2009-11-24 11:21:20 UTC
i tried to use bt control but :

.............
VtGO5nL5RIYM_"  #######

Program received signal SIGABRT, Aborted.
0xffffe424 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe424 in __kernel_vsyscall ()
Cannot access memory at address 0xbfba83d0
(gdb) quit
The program is running.  Exit anyway? (y or n) y
......................................

is bt a gdb control or else ?
where is backtrack ?

anyway i made 3 tests :

with one of them i had a kde track
see the joined file plasma-desktop-20091124.kcrash

with one of them i had an error windows :

La fenêtre nommée « Export vers le service en ligne Picasa » ne répond pas. Cette fenêtre correspond à l'application digikam (identifiant : 21547, machine localhost).
Voulez-vous fermer ce programme, ainsi que toutes ses fenêtres ? 
Toutes les données non enregistrées seront perdues.

the window named "export to picasa" does not answer....
do you want to close it ?
Comment 5 Philippe ROUBACH 2009-11-24 11:22:05 UTC
Created attachment 38538 [details]
kde track
Comment 6 caulier.gilles 2009-11-24 11:33:17 UTC
digiKam and kipi-plugins is not compiled with debug info. this is why backtrace is empty.

Gilles Caulier
Comment 7 Dario Andres 2009-11-25 14:49:17 UTC
@Philippe: check for more information at http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
You probably need to install a package named "digikam-debug" before using GDB 
Regards
Comment 8 Philippe ROUBACH 2009-12-01 12:03:18 UTC
digikam 1.0.0rc
kipi-plugins 0.8

i installed digikam debug and kipi-plugins debug

i launch digikam with "gdb digikam" and "r"

i export a photo
then
no pb
i close picasawebexport
then
i open picasawebexport
then
i click "start sending"
then
digikam freezes (instead of crashing)
then
in text console

(gdb) bt
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb4b90611 in raise () from /lib/i686/libc.so.6
#2  0xb4b91f62 in abort () from /lib/i686/libc.so.6
#3  0xb4bd135b in ?? () from /lib/i686/libc.so.6
#4  0xb4bd5a7a in free () from /lib/i686/libc.so.6
#5  0xb4dc4201 in operator delete () from /usr/lib/libstdc++.so.6
#6  0xa0980c7b in KIPIPicasawebExportPlugin::PicasawebWindow::slotUploadImages
    (this=0xb969ba8)
    at /usr/src/debug/kipi-plugins-0.8.0/picasawebexport/picasawebwindow.cpp:436
#7  0xa0984a54 in KIPIPicasawebExportPlugin::PicasawebWindow::qt_metacall (
    this=0xb969ba8, _c=QMetaObject::InvokeMetaMethod, _id=83, _a=0xbfc2fa88)
    at /usr/src/debug/kipi-plugins-0.8.0/build/picasawebexport/picasawebwindow.moc:116
#8  0xb4f6db8d in QMetaObject::metacall () from /usr/lib/libQtCore.so.4
#9  0xb4f7c986 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#10 0xb5c0860d in QAbstractButton::clicked () from /usr/lib/libQtGui.so.4
#11 0xb58d6ffd in ?? () from /usr/lib/libQtGui.so.4
#12 0xb58d7f4b in ?? () from /usr/lib/libQtGui.so.4
#13 0xb58d81f6 in QAbstractButton::mouseReleaseEvent ()
   from /usr/lib/libQtGui.so.4
#14 0xb551fb91 in QWidget::event () from /usr/lib/libQtGui.so.4
#15 0xb58d6e90 in QAbstractButton::event () from /usr/lib/libQtGui.so.4
#16 0xb59838e8 in QPushButton::event () from /usr/lib/libQtGui.so.4
#17 0xb54c061c in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#18 0xb54c7722 in QApplication::notify () from /usr/lib/libQtGui.so.4
#19 0xb6039b61 in KApplication::notify () from /usr/lib/libkdeui.so.5
#20 0xb4f6881e in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#21 0xb54c6d84 in QApplicationPrivate::sendMouseEvent ()
   from /usr/lib/libQtGui.so.4
#22 0xb555277a in ?? () from /usr/lib/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
#23 0xb5551d24 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#24 0xb557f438 in ?? () from /usr/lib/libQtGui.so.4
#25 0xb311cb92 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0xb3120468 in ?? () from /usr/lib/libglib-2.0.so.0
#27 0xb312058e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#28 0xb4f95481 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#29 0xb557ef8a in ?? () from /usr/lib/libQtGui.so.4
#30 0xb4f66e8d in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#31 0xb4f672d9 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#32 0xb4f6b450 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#33 0xb54c06c4 in QApplication::exec () from /usr/lib/libQtGui.so.4
#34 0x083bbbb5 in main (argc=1, argv=0xbfc30dd4)
    at /usr/src/debug/digikam-1.0.0-rc/digikam/main.cpp:195
(gdb)
Comment 9 Philippe ROUBACH 2009-12-06 12:45:39 UTC
i added a trace then i reopen the bug report
Comment 10 Philippe ROUBACH 2009-12-06 12:47:24 UTC
i made also this experiment, it is a random phenomenon

open picasawebexport tool
then
click on "close" button"
then
open picasawebexport tool
then
click on "close" button"
then
digikam crashes (it disappears)
Comment 11 Dario Andres 2009-12-14 19:24:49 UTC
It seems that the crash is related to the deletion of the "m_urls" var.

I have experienced a similar crash on Gwenview:
kipi-plugins svn rev. 1062112

#12 0xb5aa5901 in operator delete(void*) () from /usr/lib/libstdc++.so.6
#13 0xb19f95ba in KIPIPicasawebExportPlugin::PicasawebWindow::closeEvent (this=0x9ac6c78, e=0xbf958dac) at /home/kde-devel/kde/src/KDE/kipi-plugins/picasawebexport/picasawebwindow.cpp:232
#14 0xb5cd2b4f in QWidget::event (this=0x9ac6c78, event=0xbf958dac) at kernel/qwidget.cpp:8132
...

The culprit line is in fact: "delete m_urls;"

This variable is also deleted on other situations (upload, close, object destruction), but it is never set to 0 after deleting it... so that will cause a double-delete error later in some cases. <- That would be a simple patch
Comment 12 Dario Andres 2009-12-17 16:22:35 UTC
*** Bug 219009 has been marked as a duplicate of this bug. ***
Comment 13 caulier.gilles 2009-12-25 20:25:18 UTC
Kipi-plugins 1.0.0 is out since few days...

http://www.digikam.org/drupal/node/492

Please try with this version.

Thanks in advance

Gilles Caulier
Comment 14 Philippe ROUBACH 2009-12-26 20:45:42 UTC
digikam 1.0.0
kipi-plugins 1.0.0

pb still there
Comment 15 Jens Mueller 2010-01-02 14:28:39 UTC
SVN commit 1068998 by jmueller:

fix wrong deleting of m_urls variable
BUGS: 215846


 M  +2 -1      NEWS  
 M  +9 -19     picasawebexport/picasawebwindow.cpp  
 M  +1 -5      picasawebexport/picasawebwindow.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1068998
Comment 16 Manuel 2010-01-04 02:40:22 UTC
Confirm it Works in 

digikam 1.0.0
kipi-plugins 1.0.0

available to Ubuntu karmic-backports
Comment 17 Janos Kis 2010-04-28 18:20:17 UTC
Created attachment 43083 [details]
New crash information added by DrKonqi

Digikam often but not always crashes when export pics to Picasa web album.
Comment 18 Jens Mueller 2010-04-28 21:13:28 UTC
Which kipi-plugins version do you use? Please look in Picasawebexporter About Window.

Regards, Jens
Comment 19 Janos Kis 2010-04-28 22:45:14 UTC
Dear Jens,

I use kipi 1.0.0.

Thank You for your effort. Bests,

Janos
> https://bugs.kde.org/show_bug.cgi?id=215846
>
>
> Jens Mueller <tschenser@gmx.de> changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |tschenser@gmx.de
>
>
>
>
> --- Comment #18 from Jens Mueller <tschenser gmx de>  2010-04-28 21:13:28 ---
> Which kipi-plugins version do you use? Please look in Picasawebexporter About
> Window.
>
> Regards, Jens
>
>
Comment 20 caulier.gilles 2010-04-29 10:54:18 UTC
Update to kipi-plugins 1.2.0
Gilles Caulier
Comment 21 Janos Kis 2010-04-29 14:28:59 UTC
On 04/29/2010 10:54 AM, Gilles Caulier wrote:
> https://bugs.kde.org/show_bug.cgi?id=215846
>
>
> Gilles Caulier <caulier.gilles@gmail.com> changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>             Version|0.8.0                       |1.0.0
>
>
>
>
> --- Comment #20 from Gilles Caulier <caulier gilles gmail com>  2010-04-29 10:54:18 ---
> Update to kipi-plugins 1.2.0
> Gilles Caulier
>
>   
Dear Gilles,

Thanks a lot, I am sorry for not noticing that new plugins came out.

Bests, Janos