Bug 338084 - MYSQL : trying to reconnect automatically
Summary: MYSQL : trying to reconnect automatically
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Mysql (show other bugs)
Version: 4.2.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-08-07 04:41 UTC by Daniel Larsson
Modified: 2016-07-02 15:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.0.0


Attachments
attachment-13982-0.html (1.53 KB, text/html)
2014-08-07 10:13 UTC, Daniel Larsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Larsson 2014-08-07 04:41:20 UTC
Application: digikam (4.2.0)
KDE Platform Version: 4.13.2
Qt Version: 4.8.6
Operating System: Linux 3.13.0-32-generic x86_64
Distribution: Ubuntu 14.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:
I tried to create a new db with the MySQL alternative and it crashed.

-- Backtrace:
Application: Digikam (digikam), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f4ed5604ac0 (LWP 14704))]

Thread 6 (Thread 0x7f4eafab3700 (LWP 14705)):
#0  0x00007f4ece73f03d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f4eb465e248 in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007f4eca563182 in start_thread (arg=0x7f4eafab3700) at pthread_create.c:312
#3  0x00007f4ece74c38d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7f4ea46ca700 (LWP 14706)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4ecf52d816 in wait (time=18446744073709551615, this=0x10730c0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0xfc9df0, mutex=mutex@entry=0xfc9de8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00000000005f0f6e in Digikam::ScanController::run (this=0x10399b0) at /build/buildd/digikam-4.2.0/core/digikam/database/scancontroller.cpp:725
#4  0x00007f4ecf52d32f in QThreadPrivate::start (arg=0x10399b0) at thread/qthread_unix.cpp:349
#5  0x00007f4eca563182 in start_thread (arg=0x7f4ea46ca700) at pthread_create.c:312
#6  0x00007f4ece74c38d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f4ea3ec9700 (LWP 14707)):
#0  __pthread_mutex_unlock_usercnt (decr=1, mutex=0x7f4e94000a80) at pthread_mutex_unlock.c:42
#1  __GI___pthread_mutex_unlock (mutex=0x7f4e94000a80) at pthread_mutex_unlock.c:310
#2  0x00007f4ec75fc9c1 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4ec75babda in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f4ec75bb048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f4ec75bb0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f4ecf65c7be in QEventDispatcherGlib::processEvents (this=0x7f4e940008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#7  0x00007f4ecf62e0af in QEventLoop::processEvents (this=this@entry=0x7f4ea3ec8ae0, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007f4ecf62e3a5 in QEventLoop::exec (this=this@entry=0x7f4ea3ec8ae0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007f4ecf52ac5f in QThread::exec (this=this@entry=0x10c9700) at thread/qthread.cpp:537
#10 0x00007f4ecf60f823 in QInotifyFileSystemWatcherEngine::run (this=0x10c9700) at io/qfilesystemwatcher_inotify.cpp:265
#11 0x00007f4ecf52d32f in QThreadPrivate::start (arg=0x10c9700) at thread/qthread_unix.cpp:349
#12 0x00007f4eca563182 in start_thread (arg=0x7f4ea3ec9700) at pthread_create.c:312
#13 0x00007f4ece74c38d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f4ea36c8700 (LWP 14711)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4ecf52d816 in wait (time=18446744073709551615, this=0x197ef30) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x19874e0, mutex=mutex@entry=0x19874d8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f4ed2c8cf6a in Digikam::ParkingThread::run (this=0x19874c0) at /build/buildd/digikam-4.2.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007f4ecf52d32f in QThreadPrivate::start (arg=0x19874c0) at thread/qthread_unix.cpp:349
#5  0x00007f4eca563182 in start_thread (arg=0x7f4ea36c8700) at pthread_create.c:312
#6  0x00007f4ece74c38d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f4ea15b9700 (LWP 14715)):
#0  0x00007f4ece73f03d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f4ec75bafe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4ec75bb0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4ecf65c7be in QEventDispatcherGlib::processEvents (this=0x7f4e900008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007f4ecf62e0af in QEventLoop::processEvents (this=this@entry=0x7f4ea15b8ae0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f4ecf62e3a5 in QEventLoop::exec (this=this@entry=0x7f4ea15b8ae0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f4ecf52ac5f in QThread::exec (this=this@entry=0x2206e90) at thread/qthread.cpp:537
#7  0x00007f4ecf60f823 in QInotifyFileSystemWatcherEngine::run (this=0x2206e90) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007f4ecf52d32f in QThreadPrivate::start (arg=0x2206e90) at thread/qthread_unix.cpp:349
#9  0x00007f4eca563182 in start_thread (arg=0x7f4ea15b9700) at pthread_create.c:312
#10 0x00007f4ece74c38d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f4ed5604ac0 (LWP 14704)):
[KCrash Handler]
#6  Digikam::Album::type (this=0x21) at /build/buildd/digikam-4.2.0/core/digikam/album/album.cpp:270
#7  0x000000000053c2f6 in Digikam::KipiImageCollection::images (this=0xa67aa60) at /build/buildd/digikam-4.2.0/core/utilities/kipiiface/kipiimagecollection.cpp:164
#8  0x00007f4ed3586b29 in KIPI::ImageCollection::images (this=this@entry=0x7fff6fe21930) at ../../libkipi/imagecollection.cpp:169
#9  0x00007f4e20f443b0 in KIPIBatchProcessImagesPlugin::Plugin_BatchProcessImages::setup (this=0x84971b0, widget=<optimized out>) at /build/buildd/digikam-4.2.0/extra/kipi-plugins/batchprocessimages/plugin/plugin_batchprocessimages.cpp:105
#10 0x00000000005310cb in Digikam::KipiPluginLoader::slotKipiPluginPlug (this=0x19cf7a0) at /build/buildd/digikam-4.2.0/core/utilities/kipiiface/kipipluginloader.cpp:295
#11 0x00007f4ecf64387a in QMetaObject::activate (sender=0x72140b0, m=m@entry=0x7f4ed3795cc0 <KIPI::PluginLoader::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#12 0x00007f4ed357f833 in KIPI::PluginLoader::replug (this=<optimized out>) at ./pluginloader.moc:116
#13 0x00007f4ed358d309 in KIPI::ConfigWidget::apply (this=<optimized out>) at ../../libkipi/configwidget.cpp:215
#14 0x00000000004dd23e in Digikam::Setup::okClicked (this=0x97b5560) at /build/buildd/digikam-4.2.0/core/utilities/setup/setup.cpp:537
#15 0x00007f4ed0c906bf in KDialog::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at ./kdialog.moc:166
#16 0x00007f4ecf64387a in QMetaObject::activate (sender=sender@entry=0xa98fd10, m=m@entry=0x7f4ecf990d60 <QSignalMapper::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff6fe21e80) at kernel/qobject.cpp:3539
#17 0x00007f4ecf64afbe in QSignalMapper::mapped (this=this@entry=0xa98fd10, _t1=4) at .moc/release-shared/moc_qsignalmapper.cpp:114
#18 0x00007f4ecf64b0c6 in QSignalMapper::map (this=0xa98fd10, sender=0x9643320) at kernel/qsignalmapper.cpp:266
#19 0x00007f4ecf64387a in QMetaObject::activate (sender=sender@entry=0x9643320, m=m@entry=0x7f4ed0af52a0 <QAbstractButton::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7fff6fe21ff0) at kernel/qobject.cpp:3539
#20 0x00007f4ed06700d2 in QAbstractButton::clicked (this=this@entry=0x9643320, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:219
#21 0x00007f4ed03d39d3 in QAbstractButtonPrivate::emitClicked (this=this@entry=0xa2b9fa0) at widgets/qabstractbutton.cpp:548
#22 0x00007f4ed03d4b43 in QAbstractButtonPrivate::click (this=this@entry=0xa2b9fa0) at widgets/qabstractbutton.cpp:541
#23 0x00007f4ed03d4c2c in QAbstractButton::mouseReleaseEvent (this=0x9643320, e=0x7fff6fe224e0) at widgets/qabstractbutton.cpp:1123
#24 0x00007f4ed007150a in QWidget::event (this=0x9643320, event=0x7fff6fe224e0) at kernel/qwidget.cpp:8376
#25 0x00007f4ed0021e2c in QApplicationPrivate::notify_helper (this=this@entry=0xebddf0, receiver=receiver@entry=0x9643320, e=e@entry=0x7fff6fe224e0) at kernel/qapplication.cpp:4567
#26 0x00007f4ed00285dd in QApplication::notify (this=this@entry=0x7fff6fe24180, receiver=receiver@entry=0x9643320, e=e@entry=0x7fff6fe224e0) at kernel/qapplication.cpp:4110
#27 0x00007f4ed0d2cd1a in KApplication::notify (this=0x7fff6fe24180, receiver=0x9643320, event=0x7fff6fe224e0) at ../../kdeui/kernel/kapplication.cpp:311
#28 0x00007f4ecf62f4dd in QCoreApplication::notifyInternal (this=0x7fff6fe24180, receiver=receiver@entry=0x9643320, event=event@entry=0x7fff6fe224e0) at kernel/qcoreapplication.cpp:953
#29 0x00007f4ed0027d93 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#30 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x9643320, event=event@entry=0x7fff6fe224e0, alienWidget=alienWidget@entry=0x9643320, nativeWidget=nativeWidget@entry=0xa0ea6f0, buttonDown=buttonDown@entry=0x7f4ed0b07318 <qt_button_down>, lastMouseReceiver=..., spontaneous=spontaneous@entry=true) at kernel/qapplication.cpp:3178
#31 0x00007f4ed009c9cb in QETWidget::translateMouseEvent (this=this@entry=0xa0ea6f0, event=event@entry=0x7fff6fe22860) at kernel/qapplication_x11.cpp:4634
#32 0x00007f4ed009c269 in QApplication::x11ProcessEvent (this=0x7fff6fe24180, event=event@entry=0x7fff6fe22860) at kernel/qapplication_x11.cpp:3627
#33 0x00007f4ed00c3b02 in x11EventSourceDispatch (s=0xec3d60, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#34 0x00007f4ec75bae04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007f4ec75bb048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007f4ec75bb0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007f4ecf65c7be in QEventDispatcherGlib::processEvents (this=0xde3df0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#38 0x00007f4ed00c3bb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#39 0x00007f4ecf62e0af in QEventLoop::processEvents (this=this@entry=0x7fff6fe22c40, flags=...) at kernel/qeventloop.cpp:149
#40 0x00007f4ecf62e3a5 in QEventLoop::exec (this=this@entry=0x7fff6fe22c40, flags=...) at kernel/qeventloop.cpp:204
#41 0x00007f4ed04c8fec in QDialog::exec (this=0x97b5560) at dialogs/qdialog.cpp:562
#42 0x00000000004dcdd5 in Digikam::Setup::exec (parent=0x1af83c0, page=Digikam::Setup::LastPageUsed) at /build/buildd/digikam-4.2.0/core/utilities/setup/setup.cpp:442
#43 0x00000000005a7c0f in setup (this=<optimized out>) at /build/buildd/digikam-4.2.0/core/digikam/main/digikamapp.cpp:2348
#44 slotSetup (this=<optimized out>) at /build/buildd/digikam-4.2.0/core/digikam/main/digikamapp.cpp:2343
#45 Digikam::DigikamApp::qt_static_metacall (_o=0x1af83c0, _c=174565984, _id=0, _a=0x0) at /build/buildd/digikam-4.2.0/obj-x86_64-linux-gnu/core/digikam/digikamapp.moc:182
#46 0x00007f4ecf64387a in QMetaObject::activate (sender=sender@entry=0x7bc5580, m=m@entry=0x7f4ed0acbde0 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff6fe22e10) at kernel/qobject.cpp:3539
#47 0x00007f4ed001ba62 in QAction::triggered (this=this@entry=0x7bc5580, _t1=false) at .moc/release-shared/moc_qaction.cpp:276
#48 0x00007f4ed001d433 in QAction::activate (this=this@entry=0x7bc5580, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#49 0x00007f4ed044b489 in QMenuPrivate::activateCausedStack (this=this@entry=0x837a380, causedStack=..., action=action@entry=0x7bc5580, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1038
#50 0x00007f4ed044f9b9 in QMenuPrivate::activateAction (this=0x837a380, action=0x7bc5580, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1130
#51 0x00007f4ed0453385 in QMenu::mouseReleaseEvent (this=this@entry=0x8379a40, e=e@entry=0x7fff6fe23540) at widgets/qmenu.cpp:2372
#52 0x00007f4ed0de3665 in KMenu::mouseReleaseEvent (this=0x8379a40, e=0x7fff6fe23540) at ../../kdeui/widgets/kmenu.cpp:464
#53 0x00007f4ed007150a in QWidget::event (this=this@entry=0x8379a40, event=event@entry=0x7fff6fe23540) at kernel/qwidget.cpp:8376
#54 0x00007f4ed04537bb in QMenu::event (this=0x8379a40, e=0x7fff6fe23540) at widgets/qmenu.cpp:2481
#55 0x00007f4ed0021e2c in QApplicationPrivate::notify_helper (this=this@entry=0xebddf0, receiver=receiver@entry=0x8379a40, e=e@entry=0x7fff6fe23540) at kernel/qapplication.cpp:4567
#56 0x00007f4ed00285dd in QApplication::notify (this=this@entry=0x7fff6fe24180, receiver=receiver@entry=0x8379a40, e=e@entry=0x7fff6fe23540) at kernel/qapplication.cpp:4110
#57 0x00007f4ed0d2cd1a in KApplication::notify (this=0x7fff6fe24180, receiver=0x8379a40, event=0x7fff6fe23540) at ../../kdeui/kernel/kapplication.cpp:311
#58 0x00007f4ecf62f4dd in QCoreApplication::notifyInternal (this=0x7fff6fe24180, receiver=receiver@entry=0x8379a40, event=event@entry=0x7fff6fe23540) at kernel/qcoreapplication.cpp:953
#59 0x00007f4ed0027d93 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#60 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x8379a40, event=event@entry=0x7fff6fe23540, alienWidget=alienWidget@entry=0x0, nativeWidget=nativeWidget@entry=0x8379a40, buttonDown=buttonDown@entry=0x7f4ed0b07318 <qt_button_down>, lastMouseReceiver=..., spontaneous=spontaneous@entry=true) at kernel/qapplication.cpp:3178
#61 0x00007f4ed009ccfc in QETWidget::translateMouseEvent (this=this@entry=0x8379a40, event=event@entry=0x7fff6fe23890) at kernel/qapplication_x11.cpp:4568
#62 0x00007f4ed009c269 in QApplication::x11ProcessEvent (this=0x7fff6fe24180, event=event@entry=0x7fff6fe23890) at kernel/qapplication_x11.cpp:3627
#63 0x00007f4ed00c3b02 in x11EventSourceDispatch (s=0xec3d60, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#64 0x00007f4ec75bae04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#65 0x00007f4ec75bb048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#66 0x00007f4ec75bb0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#67 0x00007f4ecf65c7a1 in QEventDispatcherGlib::processEvents (this=0xde3df0, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#68 0x00007f4ed00c3bb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#69 0x00007f4ecf62e0af in QEventLoop::processEvents (this=this@entry=0x7fff6fe23c60, flags=...) at kernel/qeventloop.cpp:149
#70 0x00007f4ecf62e3a5 in QEventLoop::exec (this=this@entry=0x7fff6fe23c60, flags=...) at kernel/qeventloop.cpp:204
#71 0x00007f4ecf633b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#72 0x00007f4ed002037c in QApplication::exec () at kernel/qapplication.cpp:3828
#73 0x00000000004954e0 in main (argc=<optimized out>, argv=<optimized out>) at /build/buildd/digikam-4.2.0/core/digikam/main/main.cpp:236

Reported using DrKonqi
Comment 1 caulier.gilles 2014-08-07 05:34:47 UTC
It crash in KIPI plugin Batch Process Image which has never relation with DB migration tool.

Problem is reproducible with a different backtrace ?

Gilles Caulier
Comment 2 Daniel Larsson 2014-08-07 10:13:56 UTC
Created attachment 88144 [details]
attachment-13982-0.html

Not reproducible now. No crash at all. DK stops with error that DB could not open, trying to reconnect automatically.
/D.L.

> From: caulier.gilles@gmail.com
> To: opersonlig_postadress@hotmail.com
> Subject: [digikam] [Bug 338084] MySQL : creating databse not working
> Date: Thu, 7 Aug 2014 05:34:47 +0000
> 
> https://bugs.kde.org/show_bug.cgi?id=338084
> 
> Gilles Caulier <caulier.gilles@gmail.com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>           Component|general                     |Database
>                  CC|                            |caulier.gilles@gmail.com
>             Summary|Creating MySQL-db not       |MySQL : creating databse
>                    |working                     |not working
> 
> --- Comment #1 from Gilles Caulier <caulier.gilles@gmail.com> ---
> It crash in KIPI plugin Batch Process Image which has never relation with DB
> migration tool.
> 
> Problem is reproducible with a different backtrace ?
> 
> Gilles Caulier
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
 		 	   		  =
Comment 3 caulier.gilles 2014-12-10 17:52:46 UTC
digiKam 4.5.0 have been released.

Crash still reproducible with this release ?

Gilles Caulier
Comment 4 caulier.gilles 2015-06-25 13:05:47 UTC
New digiKam 4.11.0 is available with official PKG installer for OSX.

https://www.digikam.org/node/740

Can you reproduce the problem with this release ?
Comment 5 swatilodha27 2016-07-01 11:18:31 UTC
Can you reproduce the problem with digiKam5.0.0-Beta7 ?
Comment 6 caulier.gilles 2016-07-02 15:27:23 UTC
With 5.0.0, the crash is not reproducible anymore.

I close this file now. Don't hesitate to re-open if necessary.

Gilles Caulier