Bug 269785 - crash when manually modified the file servicetype_profilerc
Summary: crash when manually modified the file servicetype_profilerc
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kdecore (show other bugs)
Version: SVN
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-30 21:50 UTC by Jaime Torres
Modified: 2011-08-21 11:02 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaime Torres 2011-03-30 21:50:16 UTC
Application: systemsettings (1.0)
KDE Platform Version: 4.6.41 (4.7 >= 20110106) (Compiled from sources)
Qt Version: 4.7.4
Operating System: Linux 2.6.38.2optimum x86_64
Distribution (Platform): openSUSE RPMs

-- Information about the crash:
- Custom settings of the application:

Before, the file $KDEHOME/share/config/servicetype_profilerc has:

[PhononBackend]
Entry0_Preference=3
Entry0_Service=phononbackends/vlc.desktop
Entry1_Preference=1
Entry1_Service=phononbackends/gstreamer.desktop
Entry2_Preference=2
Entry2_Service=phononbackends/xine.desktop
NumberOfEntries=3

no crash of systemsettings

Changing that file to

[PhononBackend]
Entry1_Preference=1
Entry1_Service=phononbackends/gstreamer.desktop
Entry2_Preference=2
Entry2_Service=phononbackends/xine.desktop
NumberOfEntries=2

i.e. removing the Entry0.

systemsettings and almost all KDE application crashes

-- Backtrace:
Application: System Settings (systemsettings), signal: Aborted
[KCrash Handler]
#6  0x00007f1fd6057ab5 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f1fd6058fb6 in abort () at abort.c:92
#8  0x00007f1fd6dbae47 in qt_message_output (msgType=QtFatalMsg, buf=0x2084948 "ASSERT: \"!serviceId.isEmpty()\" in file /g/kdegit/kdelibs/kdecore/services/kservicetypeprofile.cpp, line 93") at /g/kdegit/qt/src/corelib/global/qglobal.cpp:2282
#9  0x00007f1fd6dbafc3 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f1fd6f59d48 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fff69b77310) at /g/kdegit/qt/src/corelib/global/qglobal.cpp:2328
#10 0x00007f1fd6dbb831 in qFatal (msg=0x7f1fd6f59d48 "ASSERT: \"%s\" in file %s, line %d") at /g/kdegit/qt/src/corelib/global/qglobal.cpp:2511
#11 0x00007f1fd6dba9fb in qt_assert (assertion=0x7f1fd772a2e2 "!serviceId.isEmpty()", file=0x7f1fd772a278 "/g/kdegit/kdelibs/kdecore/services/kservicetypeprofile.cpp", line=93) at /g/kdegit/qt/src/corelib/global/qglobal.cpp:2027
#12 0x00007f1fd767f526 in KServiceTypeProfiles::ensureParsed (this=0x1e0f890) at /g/kdegit/kdelibs/kdecore/services/kservicetypeprofile.cpp:93
#13 0x00007f1fd767f6d0 in operator-> (this=<value optimized out>) at /g/kdegit/kdelibs/kdecore/services/kservicetypeprofile.cpp:60
#14 0x00007f1fd767f769 in KServiceTypeProfile::hasProfile (serviceType=...) at /g/kdegit/kdelibs/kdecore/services/kservicetypeprofile.cpp:172
#15 0x00007f1fd7681f74 in KServiceTypeTrader::query (this=0x2090d60, serviceType=..., constraint=...) at /g/kdegit/kdelibs/kdecore/services/kservicetypetrader.cpp:137
#16 0x000000000040d99f in SettingsBase::initApplication (this=0x1fb5820) at /g/kdegit/kde-workspace/systemsettings/app/SettingsBase.cpp:82
#17 0x000000000040dfa4 in SettingsBase::qt_metacall (this=0x1fb5820, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x2050740) at /g/b45/kde-workspace/systemsettings/app/SettingsBase.moc:92
#18 0x00007f1fd6ee2129 in QMetaObject::metacall (object=0x1fb5820, cl=QMetaObject::InvokeMetaMethod, idx=46, argv=0x2050740) at /g/kdegit/qt/src/corelib/kernel/qmetaobject.cpp:237
#19 0x00007f1fd6ef17f4 in QMetaCallEvent::placeMetaCall (this=0x2114090, object=0x1fb5820) at /g/kdegit/qt/src/corelib/kernel/qobject.cpp:535
#20 0x00007f1fd6ef2acb in QObject::event (this=0x1fb5820, e=0x2114090) at /g/kdegit/qt/src/corelib/kernel/qobject.cpp:1217
#21 0x00007f1fd7cb432b in QWidget::event (this=0x1fb5820, event=0x2114090) at /g/kdegit/qt/src/gui/kernel/qwidget.cpp:8737
#22 0x00007f1fd818ecf0 in QMainWindow::event (this=0x1fb5820, event=0x2114090) at /g/kdegit/qt/src/gui/widgets/qmainwindow.cpp:1480
#23 0x00007f1fd8f87940 in KXmlGuiWindow::event (this=0x1fb5820, ev=0x2114090) at /g/kdegit/kdelibs/kdeui/xmlgui/kxmlguiwindow.cpp:126
#24 0x00007f1fd7c4c3ea in QApplicationPrivate::notify_helper (this=0x1ddedc0, receiver=0x1fb5820, e=0x2114090) at /g/kdegit/qt/src/gui/kernel/qapplication.cpp:4462
#25 0x00007f1fd7c4c0ea in QApplication::notify (this=0x7fff69b78b70, receiver=0x1fb5820, e=0x2114090) at /g/kdegit/qt/src/gui/kernel/qapplication.cpp:4427
#26 0x00007f1fd8ea2d96 in KApplication::notify (this=0x7fff69b78b70, receiver=0x1fb5820, event=0x2114090) at /g/kdegit/kdelibs/kdeui/kernel/kapplication.cpp:311
#27 0x00007f1fd6ed9ffb in QCoreApplication::notifyInternal (this=0x7fff69b78b70, receiver=0x1fb5820, event=0x2114090) at /g/kdegit/qt/src/corelib/kernel/qcoreapplication.cpp:787
#28 0x00007f1fd7c3ceab in QCoreApplication::sendEvent (receiver=0x1fb5820, event=0x2114090) at ../../include/QtCore/../../../../kdegit/qt/src/corelib/kernel/qcoreapplication.h:215
#29 0x00007f1fd6edb22b in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1db0550) at /g/kdegit/qt/src/corelib/kernel/qcoreapplication.cpp:1428
#30 0x00007f1fd6edae4d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /g/kdegit/qt/src/corelib/kernel/qcoreapplication.cpp:1321
#31 0x00007f1fd7d18b25 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../../../kdegit/qt/src/corelib/kernel/qcoreapplication.h:220
#32 0x00007f1fd6f1290e in postEventSourceDispatch (s=0x1de15c0) at /g/kdegit/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:277
#33 0x00007f1fd211cbd3 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#34 0x00007f1fd211d3b0 in ?? () from /lib64/libglib-2.0.so.0
#35 0x00007f1fd211d650 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#36 0x00007f1fd6f131fd in QEventDispatcherGlib::processEvents (this=0x1dafd60, flags=...) at /g/kdegit/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:422
#37 0x00007f1fd7d24de2 in QGuiEventDispatcherGlib::processEvents (this=0x1dafd60, flags=...) at /g/kdegit/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#38 0x00007f1fd6ed7b6a in QEventLoop::processEvents (this=0x7fff69b78ad0, flags=...) at /g/kdegit/qt/src/corelib/kernel/qeventloop.cpp:149
#39 0x00007f1fd6ed7cbd in QEventLoop::exec (this=0x7fff69b78ad0, flags=...) at /g/kdegit/qt/src/corelib/kernel/qeventloop.cpp:201
#40 0x00007f1fd6eda6e8 in QCoreApplication::exec () at /g/kdegit/qt/src/corelib/kernel/qcoreapplication.cpp:1064
#41 0x00007f1fd7c49590 in QApplication::exec () at /g/kdegit/qt/src/gui/kernel/qapplication.cpp:3736
#42 0x0000000000412e91 in main (argc=1, argv=0x7fff69b78e48) at /g/kdegit/kde-workspace/systemsettings/app/main.cpp:49

Reported using DrKonqi
Comment 1 Jaime Torres 2011-08-21 11:02:05 UTC
fixed by commit 24498bb761630e24e39df1ea5c614136eff7310c