Bug 302063

Summary: kded crash at login time
Product: [Unmaintained] solid Reporter: rtdvrs
Component: bluetooth-daemonAssignee: Alex Fiestas <afiestas>
Status: RESOLVED FIXED    
Severity: crash CC: joost.van.weenen
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description rtdvrs 2012-06-17 15:31:06 UTC
Application: kded4 ($Id$)
KDE Platform Version: 4.8.4 (4.8.4)
Qt Version: 4.8.2
Operating System: Linux 3.2.0-25-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
<In detail, tell us what you were doing  when the application crashed.>

-- Backtrace:
Application: KDE Daemon (kdeinit4), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#6  0x00007f69f335b445 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f69f335ebab in __GI_abort () at abort.c:91
#8  0x00007f69f4c2da67 in qt_message_output (msgType=QtFatalMsg, buf=0x246d0e8 "QDBusArgument: read from a write-only object") at global/qglobal.cpp:2264
#9  0x00007f69f4c2dbfd in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f69f173e5f0 "QDBusArgument: read from a write-only object", ap=0x7fff37f3a838) at global/qglobal.cpp:2310
#10 0x00007f69f4c2e38d in qFatal (msg=0x7f69f173e5f0 "QDBusArgument: read from a write-only object") at global/qglobal.cpp:2493
#11 0x00007f69f1721e68 in QDBusArgumentPrivate::checkRead (d=0x246d040) at qdbusargument.cpp:144
#12 0x00007f69f1721e8c in QDBusArgumentPrivate::checkReadAndDetach (d=@0x7fff37f3ab40: 0x246d040) at qdbusargument.cpp:154
#13 0x00007f69f1722f58 in QDBusArgument::beginArray (this=0x7fff37f3ab40) at qdbusargument.cpp:993
#14 0x00007f69dbdc4982 in operator>><QDBusObjectPath> (arg=..., list=...) at /opt/project-neon/include/QtDBus/qdbusargument.h:275
#15 0x00007f69dbdc395b in qdbus_cast<QList<QDBusObjectPath> > (arg=...) at /opt/project-neon/include/QtDBus/qdbusargument.h:162
#16 0x00007f69dbdc0c63 in BlueDevil::Manager::Private::initialize (this=0x24653b0) at /build/buildd/project-neon-libbluedevil-2+git20120427+r152/bluedevil/bluedevilmanager.cpp:107
#17 0x00007f69dbdc1a9c in BlueDevil::Manager::Manager (this=0x2465cd0, parent=0x0) at /build/buildd/project-neon-libbluedevil-2+git20120427+r152/bluedevil/bluedevilmanager.cpp:238
#18 0x00007f69dbdc1bef in BlueDevil::Manager::self () at /build/buildd/project-neon-libbluedevil-2+git20120427+r152/bluedevil/bluedevilmanager.cpp:249
#19 0x00007f69dbff4e41 in ObexFtpDaemon::ObexFtpDaemon (this=0x24654e0, parent=0x2289ca0) at /build/buildd/project-neon-bluedevil-2+git20120429+r559/src/daemon/obexftpkded/ObexFtpDaemon.cpp:84
#20 0x00007f69dbffb3bc in KPluginFactory::createInstance<ObexFtpDaemon, QObject> (parentWidget=0x0, parent=0x2289ca0, args=...) at /opt/project-neon/include/KDE/../kpluginfactory.h:477
#21 0x00007f69f53715ab in KPluginFactory::create (this=0x2463560, iface=0x7f69f53d34c0 "KDEDModule", parentWidget=0x0, parent=0x2289ca0, args=..., keyword=...) at /build/buildd/project-neon-kdelibs-2+git20120616+r92785/kdecore/util/kpluginfactory.cpp:203
#22 0x00007f69e2ca26cd in KPluginFactory::create<KDEDModule> (this=0x2463560, parent=0x2289ca0, args=...) at /build/buildd/project-neon-kdelibs-2+git20120616+r92785/kdecore/util/kpluginfactory.h:507
#23 0x00007f69e2c9e3d5 in Kded::loadModule (this=0x2289ca0, s=..., onDemand=false) at /build/buildd/project-neon-kdelibs-2+git20120616+r92785/kded/kded.cpp:409
#24 0x00007f69e2c9d202 in Kded::initModules (this=0x2289ca0) at /build/buildd/project-neon-kdelibs-2+git20120616+r92785/kded/kded.cpp:268
#25 0x00007f69e2ca17c3 in KDEDApplication::newInstance (this=0x7fff37f3c830) at /build/buildd/project-neon-kdelibs-2+git20120616+r92785/kded/kded.cpp:846
#26 0x00007f69f5c09a4d in KUniqueApplicationAdaptor::newInstance (this=0x2403e80, asn_id=..., args=...) at /build/buildd/project-neon-kdelibs-2+git20120616+r92785/kdeui/kernel/kuniqueapplication.cpp:442
#27 0x00007f69f5c09c95 in KUniqueApplicationAdaptor::qt_static_metacall (_o=0x2403e80, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff37f3b7c0) at /build/buildd/project-neon-kdelibs-2+git20120616+r92785/obj-x86_64-linux-gnu/kdeui/kuniqueapplication_p.moc:58
#28 0x00007f69f5c09e6a in KUniqueApplicationAdaptor::qt_metacall (this=0x2403e80, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff37f3b7c0) at /build/buildd/project-neon-kdelibs-2+git20120616+r92785/obj-x86_64-linux-gnu/kdeui/kuniqueapplication_p.moc:102
#29 0x00007f69f16eb816 in QDBusConnectionPrivate::deliverCall (this=0x2286570, object=0x2403e80, msg=..., metaTypes=..., slotIdx=4) at qdbusintegrator.cpp:947
#30 0x00007f69f16eaf44 in QDBusConnectionPrivate::activateCall (this=0x2286570, object=0x2403e80, flags=337, msg=...) at qdbusintegrator.cpp:850
#31 0x00007f69f16ef260 in QDBusConnectionPrivate::activateObject (this=0x2286570, node=..., msg=..., pathStartPos=16) at qdbusintegrator.cpp:1423
#32 0x00007f69f16efbc1 in QDBusActivateObjectEvent::placeMetaCall (this=0x2420900) at qdbusintegrator.cpp:1537
#33 0x00007f69f4d8784d in QObject::event (this=0x7fff37f3c830, e=0x2420900) at kernel/qobject.cpp:1195
#34 0x00007f69f4d70079 in QCoreApplication::event (this=0x7fff37f3c830, e=0x2420900) at kernel/qcoreapplication.cpp:1727
#35 0x00007f69f3bddf31 in QApplication::event (this=0x7fff37f3c830, e=0x2420900) at kernel/qapplication.cpp:2533
#36 0x00007f69f3be3966 in QApplicationPrivate::notify_helper (this=0x2293cd0, receiver=0x7fff37f3c830, e=0x2420900) at kernel/qapplication.cpp:4551
#37 0x00007f69f3be0f84 in QApplication::notify (this=0x7fff37f3c830, receiver=0x7fff37f3c830, e=0x2420900) at kernel/qapplication.cpp:3933
#38 0x00007f69f5bfeb3f in KApplication::notify (this=0x7fff37f3c830, receiver=0x7fff37f3c830, event=0x2420900) at /build/buildd/project-neon-kdelibs-2+git20120616+r92785/kdeui/kernel/kapplication.cpp:311
#39 0x00007f69f4d6e6e6 in QCoreApplication::notifyInternal (this=0x7fff37f3c830, receiver=0x7fff37f3c830, event=0x2420900) at kernel/qcoreapplication.cpp:915
#40 0x00007f69f4d72259 in QCoreApplication::sendEvent (receiver=0x7fff37f3c830, event=0x2420900) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#41 0x00007f69f4d6f6fa in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x21ff2b0) at kernel/qcoreapplication.cpp:1539
#42 0x00007f69f4d6f31b in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1432
#43 0x00007f69f4dab123 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#44 0x00007f69f4daa124 in postEventSourceDispatch (s=0x22952c0) at kernel/qeventdispatcher_glib.cpp:279
#45 0x00007f69f0090d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007f69f00910a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007f69f0091164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007f69f4daa9d3 in QEventDispatcherGlib::processEvents (this=0x22015a0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#49 0x00007f69f3cbc388 in QGuiEventDispatcherGlib::processEvents (this=0x22015a0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#50 0x00007f69f4d6bc20 in QEventLoop::processEvents (this=0x7fff37f3c790, flags=...) at kernel/qeventloop.cpp:149
#51 0x00007f69f4d6bdaa in QEventLoop::exec (this=0x7fff37f3c790, flags=...) at kernel/qeventloop.cpp:204
#52 0x00007f69f4d6ed66 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#53 0x00007f69f3be0b6e in QApplication::exec () at kernel/qapplication.cpp:3812
#54 0x00007f69e2c9ffc6 in kdemain (argc=1, argv=0x2272550) at /build/buildd/project-neon-kdelibs-2+git20120616+r92785/kded/kded.cpp:924
#55 0x0000000000406d9f in launch (argc=1, _name=0x40da92 "kded4", args=0x0, cwd=0x0, envc=0, envs=0x0, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x40d357 "0") at /build/buildd/project-neon-kdelibs-2+git20120616+r92785/kinit/kinit.cpp:734
#56 0x000000000040a09a in main (argc=4, argv=0x7fff37f3d0a8, envp=0x7fff37f3d0d0) at /build/buildd/project-neon-kdelibs-2+git20120616+r92785/kinit/kinit.cpp:1849


Reproducible: Didn't try
Comment 1 Joost van Weenen 2012-07-04 20:19:58 UTC
I have the same issue on shutdown.
Comment 2 Alex Fiestas 2012-10-08 05:47:26 UTC
Hi, can you tell me which BlueDevil versions are you using?

Also, could you test this with 1.3rc2? it should be fixed.

Thanks!
Comment 3 rtdvrs 2012-10-08 08:29:10 UTC
I disabled bluetooth completely, so I cannot test this. I always found it questionable that on hardware without bluetooth a bluetooth daemon is still started. The correct behaviour should be:

- check whether any bluetooth hardware exists
- if it exists, run some daemon unless it has been explicitly disabled
-if it doesn't exist, do not run any software which depends on bluetooth hardware being present. 
- if someone inputs a bluetooth USB device, i.e. hotpluggable device, detect that this is happening and then start the bluetooth daemon unless another variable in some file has been set.
Comment 4 Alex Fiestas 2013-02-10 01:44:51 UTC
This is what we do, if no bluetooth hardware is detected all that  we do is listen for a bt interface to be plugged.
Going to close the bug since i'm quite confident that we fixed this. 

Please! if you are able to reproduce this with 1.3 feel free to reopen the bug.

Thanks!
(In reply to comment #3)
> I disabled bluetooth completely, so I cannot test this. I always found it
> questionable that on hardware without bluetooth a bluetooth daemon is still
> started. The correct behaviour should be:
> 
> - check whether any bluetooth hardware exists
> - if it exists, run some daemon unless it has been explicitly disabled
> -if it doesn't exist, do not run any software which depends on bluetooth
> hardware being present. 
> - if someone inputs a bluetooth USB device, i.e. hotpluggable device, detect
> that this is happening and then start the bluetooth daemon unless another
> variable in some file has been set.