Bug 221087

Summary: KUniqueApplication(GUIenabled = false) still creates a KGlobalSettings object somewhere
Product: [Unmaintained] kdelibs Reporter: Tom Kijas <t.kijas>
Component: kdeuiAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: adaptee, andresbajotierra, kourtzis, sebastian
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Tom Kijas 2010-01-03 12:06:41 UTC
Application: nepomukserver (0.2)
KDE Platform Version: 4.3.85 (KDE 4.3.85 (KDE 4.4 Beta2))
Qt Version: 4.6.0
Operating System: Linux 2.6.31-11-generic x86_64
Distribution: Ubuntu 9.10

-- Information about the crash:
Nepomuk showed crash assistant after I chose different mouse cursor in system settings and applied settings

 -- Backtrace:
Application: Server Nepomuku (kdeinit4), signal: Aborted
The current source language is "auto; currently c".
[Current thread is 1 (Thread 0x7f9f34a437f0 (LWP 8647))]

Thread 2 (Thread 0x7f9f21a44910 (LWP 8656)):
#0  0x00007f9f31a5d373 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f9f2e45b37c in g_main_context_poll (context=0x1287e30, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>)
    at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2904
#2  g_main_context_iterate (context=0x1287e30, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2586
#3  0x00007f9f2e45b6c0 in IA__g_main_context_iteration (context=0x1287e30, may_block=1) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2654
#4  0x00007f9f3304a676 in QEventDispatcherGlib::processEvents (this=0x128b740, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:409
#5  0x00007f9f3301f972 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#6  0x00007f9f3301fd4c in QEventLoop::exec (this=0x7f9f21a43f50, flags=) at kernel/qeventloop.cpp:201
#7  0x00007f9f32f2ac79 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#8  0x00007f9f2667d698 in ?? () from /usr/lib/libsopranoserver.so.1
#9  0x00007f9f32f2d6c5 in QThreadPrivate::start (arg=0x1287530) at thread/qthread_unix.cpp:244
#10 0x00007f9f32c9ea04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#11 0x00007f9f31a697bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f9f34a437f0 (LWP 8647)):
[KCrash Handler]
#5  0x00007f9f319bd4b5 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007f9f319c0f50 in *__GI_abort () at abort.c:92
#7  0x00007f9f32f25754 in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2226
#8  0x00007f9f32f25932 in qt_message (msgType=QtFatalMsg, msg=0x7f9f32869b78 "QWidget: Cannot create a QWidget when no GUI is being used", ap=0x7fffa5fb6240) at global/qglobal.cpp:2272
#9  0x00007f9f32f25ae5 in qFatal (msg=0x21c7 <Address 0x21c7 out of bounds>) at global/qglobal.cpp:2455
#10 0x00007f9f3221f964 in QWidgetPrivate::init (this=0x1282ec0, parentWidget=0x0, f=) at kernel/qwidget.cpp:1116
#11 0x00007f9f3221fc81 in QWidget (this=0x1276760, dd=<value optimized out>, parent=0x0, f=...) at kernel/qwidget.cpp:1039
#12 0x00007f9f3225e852 in QDesktopWidget (this=0x1276760) at kernel/qdesktopwidget_x11.cpp:220
#13 0x00007f9f321c712c in QApplication::desktop () at kernel/qapplication.cpp:3062
#14 0x00007f9f335904ad in KGlobalSettings::Private::applyCursorTheme (this=<value optimized out>) at ../../kdeui/kernel/kglobalsettings.cpp:1037
#15 0x00007f9f33590785 in KGlobalSettings::Private::_k_slotNotifyChange (this=0x11e9bb0, changeType=<value optimized out>, arg=0) at ../../kdeui/kernel/kglobalsettings.cpp:865
#16 0x00007f9f335909a3 in KGlobalSettings::qt_metacall (this=0x11c7030, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffa5fb6840) at ./kglobalsettings.moc:100
#17 0x00007f9f3140efce in QDBusConnectionPrivate::deliverCall (this=<value optimized out>, object=<value optimized out>, msg=<value optimized out>, metaTypes=..., slotIdx=<value optimized out>)
    at qdbusintegrator.cpp:904
#18 0x00007f9f31416b5f in QDBusCallDeliveryEvent::placeMetaCall(QObject*) () from /usr/lib/libQtDBus.so.4
#19 0x00007f9f33030d19 in QObject::event (this=0x11c7030, e=0x12769b0) at kernel/qobject.cpp:1260
#20 0x00007f9f321c6e8c in QApplicationPrivate::notify_helper (this=0x1178660, receiver=0x11c7030, e=0x12769b0) at kernel/qapplication.cpp:4242
#21 0x00007f9f321cd48d in QApplication::notify (this=0x7fffa5fb7310, receiver=0x11c7030, e=0x12769b0) at kernel/qapplication.cpp:4125
#22 0x00007f9f33565856 in KApplication::notify (this=0x7fffa5fb7310, receiver=0x11c7030, event=0x12769b0) at ../../kdeui/kernel/kapplication.cpp:302
#23 0x00007f9f3302104c in QCoreApplication::notifyInternal (this=0x7fffa5fb7310, receiver=0x11c7030, event=0x12769b0) at kernel/qcoreapplication.cpp:704
#24 0x00007f9f330237c7 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x10ea270) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#25 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x10ea270) at kernel/qcoreapplication.cpp:1345
#26 0x00007f9f3304aae3 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#27 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#28 0x00007f9f2e457bce in g_main_dispatch (context=0x117b130) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:1960
#29 IA__g_main_context_dispatch (context=0x117b130) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2513
#30 0x00007f9f2e45b598 in g_main_context_iterate (context=0x117b130, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>)
    at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2591
#31 0x00007f9f2e45b6c0 in IA__g_main_context_iteration (context=0x117b130, may_block=1) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2654
#32 0x00007f9f3304a623 in QEventDispatcherGlib::processEvents (this=0x1176b80, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#33 0x00007f9f3301f972 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#34 0x00007f9f3301fd4c in QEventLoop::exec (this=0x7fffa5fb71c0, flags=) at kernel/qeventloop.cpp:201
#35 0x00007f9f33023a8b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#36 0x00007f9f26b913fd in kdemain (argc=<value optimized out>, argv=<value optimized out>) at ../../../nepomuk/server/main.cpp:113
#37 0x0000000000406fb8 in launch (argc=1, _name=<value optimized out>, args=<value optimized out>, cwd=<value optimized out>, envc=0, envs=<value optimized out>, reset_env=false, tty=0x0, 
    avoid_loops=false, startup_id_str=0x40a4a1 "0") at ../../kinit/kinit.cpp:705
#38 0x0000000000407c70 in handle_launcher_request (sock=8, who=<value optimized out>) at ../../kinit/kinit.cpp:1197
#39 0x0000000000408121 in handle_requests (waitForPid=0) at ../../kinit/kinit.cpp:1390
#40 0x0000000000408dea in main (argc=4, argv=<value optimized out>, envp=<value optimized out>) at ../../kinit/kinit.cpp:1825

Possible duplicates by query: bug 200448.

Reported using DrKonqi
Comment 1 Pino Toscano 2010-01-03 19:17:26 UTC

*** This bug has been marked as a duplicate of bug 200448 ***
Comment 2 Dario Andres 2010-01-08 02:21:07 UTC
Reopening
Comment 3 Dario Andres 2010-01-08 02:21:25 UTC
*** Bug 221683 has been marked as a duplicate of this bug. ***
Comment 4 Christoph Feck 2010-01-09 20:49:57 UTC
When Nepomuk server does not use GUI, it should probably not use KUniqueApplication. I did not look everywhere, but something creates a KGlobalSettings object, which cannot happen when you do not link to libkdeui in the first place.

Suggestion: use QCoreApplication, and handle uniqueness using DBus yourself, until kdelibs offers an adequate solution or the bug in libkdeui is found.

See also http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Utilities/qtsingleapplication which offers a LGPL class for QtCoreSingleApplication.

I will reassign this to kdelibs/kdeui, as this is no Nepomuk bug.
Comment 5 Andrew Crouthamel 2018-10-29 22:44:35 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2018-11-13 14:23:22 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2018-11-28 04:51:50 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!