Bug 311984 - Plasma Desktop: configuration file item causes crash
Summary: Plasma Desktop: configuration file item causes crash
Status: RESOLVED WORKSFORME
Alias: None
Product: amarok
Classification: Applications
Component: Context View/Wikipedia (show other bugs)
Version: 2.6.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: 2.8
Assignee: Amarok Developers
URL:
Keywords: regression, release_blocker
Depends on:
Blocks:
 
Reported: 2012-12-20 12:50 UTC by Thomas
Modified: 2013-02-23 09:53 UTC (History)
2 users (show)

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


Attachments
New crash information added by DrKonqi (10.92 KB, text/plain)
2013-01-06 11:31 UTC, Thomas
Details
New crash information added by DrKonqi (15.30 KB, text/plain)
2013-02-03 18:38 UTC, Thomas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas 2012-12-20 12:50:26 UTC
Application: plasma-desktop (0.4)
KDE Platform Version: 4.8.5 (4.8.5)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-35-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:
direct crash after login with my username/password
direct crash after trying to manually start plasma-desktop
probably related to #311952
doing the things described in #311952 added the things listed under custom settings to plasma-desktop-appletsrc
after removing those configuration items from plasma-desktop-appletsrc, plasma-desktop started working again
console output I got when I tried to start plasma-desktop manually:
----------
[…]
QObject::connect: Cannot connect (null)::trackChanged( Meta::TrackPtr ) to WikipediaEngine::_checkRequireUpdate( Meta::TrackPtr )
QObject::connect: Cannot connect (null)::trackMetadataChanged( Meta::TrackPtr ) to WikipediaEngine::_checkRequireUpdate( Meta::TrackPtr )
QObject::connect: Cannot connect (null)::stopped( qint64, qint64 ) to WikipediaEngine::_stopped()
[…]
KCrash: Attempting to start /usr/bin/plasma-desktop from kdeinit
sock_file=/home/thomas/.kde/socket-Thomas-PC/kdeinit4__0
KCrash: Application 'plasma-desktop' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/thomas/.kde/socket-Thomas-PC/kdeinit4__0
-------

- Custom settings of the application:
in plasma-desktop-appletsrc:

[Containments][300][Applets][393]
geometry=682,428.337611154783,200,200
immutability=1
plugin=wikipedia
zvalue=0

[Containments][300][Applets][394]
geometry=682,648.337611154783,200,200
immutability=1
plugin=wikipedia
zvalue=0

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma-Desktop-Umgebung (plasma-desktop), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fb5f3f1b780 (LWP 2926))]

Thread 7 (Thread 0x7fb5c7fff700 (LWP 2939)):
#0  0x00007fb5f37f6303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fb5e79a5036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb5e79a5164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb5f09c7426 in QEventDispatcherGlib::processEvents (this=0x7fb5c00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fb5f0996c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fb5f0996ed7 in QEventLoop::exec (this=0x7fb5c7ffedd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fb5f0895fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007fb5f09769ff in QInotifyFileSystemWatcherEngine::run (this=0x36771a0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fb5f0898fcb in QThreadPrivate::start (arg=0x36771a0) at thread/qthread_unix.cpp:298
#9  0x00007fb5e82a9e9a in start_thread (arg=0x7fb5c7fff700) at pthread_create.c:308
#10 0x00007fb5f3801cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fb5c6ffd700 (LWP 2941)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fb5eee62dec in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fb5eee62f19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fb5e82a9e9a in start_thread (arg=0x7fb5c6ffd700) at pthread_create.c:308
#4  0x00007fb5f3801cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fb5c67fc700 (LWP 2942)):
#0  0x00007fb5f37f6303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fb5e79a5036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb5e79a5164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb5f09c7426 in QEventDispatcherGlib::processEvents (this=0x7fb5bc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fb5f0996c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fb5f0996ed7 in QEventLoop::exec (this=0x7fb5c67fbe00, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fb5f0895fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007fb5f0898fcb in QThreadPrivate::start (arg=0x38d1d60) at thread/qthread_unix.cpp:298
#8  0x00007fb5e82a9e9a in start_thread (arg=0x7fb5c67fc700) at pthread_create.c:308
#9  0x00007fb5f3801cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fb5b181e700 (LWP 2944)):
#0  0x00007fb5f37f6303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fb5e79a5036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb5e79a5164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb5f09c7426 in QEventDispatcherGlib::processEvents (this=0x7fb5ac0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fb5f0996c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fb5f0996ed7 in QEventLoop::exec (this=0x7fb5b181ddd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fb5f0895fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007fb5f09769ff in QInotifyFileSystemWatcherEngine::run (this=0x3f4ed30) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fb5f0898fcb in QThreadPrivate::start (arg=0x3f4ed30) at thread/qthread_unix.cpp:298
#9  0x00007fb5e82a9e9a in start_thread (arg=0x7fb5b181e700) at pthread_create.c:308
#10 0x00007fb5f3801cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fb5b0d38700 (LWP 2945)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fb5ed77b222 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007fb5ed77b259 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007fb5e82a9e9a in start_thread (arg=0x7fb5b0d38700) at pthread_create.c:308
#4  0x00007fb5f3801cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fb5a9b1e700 (LWP 2950)):
#0  0x00007fb5f37f48bd in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fb5e79df8cf in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb5e79a4ba4 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb5e79a4fd6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fb5e79a549a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fb5aa608406 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#6  0x00007fb5e79c69e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007fb5e82a9e9a in start_thread (arg=0x7fb5a9b1e700) at pthread_create.c:308
#8  0x00007fb5f3801cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fb5f3f1b780 (LWP 2926)):
[KCrash Handler]
#6  KSharedPtr (o=..., this=0x7fff6b5deb80) at /usr/include/KDE/../ksharedptr.h:84
#7  EngineController::currentTrack (this=0x0) at ../../src/EngineController.cpp:776
#8  0x00007fb5c59065bb in WikipediaEnginePrivate::updateEngine (this=0x39e2fb0) at ../../../../../src/context/engines/wikipedia/WikipediaEngine.cpp:617
#9  0x00007fb5c590b4a5 in WikipediaEnginePrivate::_dataContainerUpdated (this=0x39e2fb0, source=..., data=...) at ../../../../../src/context/engines/wikipedia/WikipediaEngine.cpp:172
#10 0x00007fb5c590c4e1 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at ./WikipediaEngine.moc:61
#11 WikipediaEngine::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./WikipediaEngine.moc:54
#12 0x00007fb5f09ac281 in QMetaObject::activate (sender=0x39fd0d0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff6b5df430) at kernel/qobject.cpp:3547
#13 0x00007fb5f33158d7 in Plasma::DataContainer::dataUpdated (this=<optimized out>, _t1=..., _t2=...) at ./datacontainer.moc:126
#14 0x00007fb5f3315dfe in Plasma::DataContainer::checkForUpdate (this=0x39fd0d0) at ../../plasma/datacontainer.cpp:295
#15 0x00007fb5f33176af in timerEvent (this=<optimized out>, event=<optimized out>) at ../../plasma/dataengine.cpp:387
#16 Plasma::DataEngine::timerEvent (this=<optimized out>, event=<optimized out>) at ../../plasma/dataengine.cpp:362
#17 0x00007fb5f09b1179 in QObject::event (this=0x36b8860, e=<optimized out>) at kernel/qobject.cpp:1157
#18 0x00007fb5efd1a894 in notify_helper (e=0x7fff6b5dfb70, receiver=0x36b8860, this=0x2132060) at kernel/qapplication.cpp:4559
#19 QApplicationPrivate::notify_helper (this=0x2132060, receiver=0x36b8860, e=0x7fff6b5dfb70) at kernel/qapplication.cpp:4531
#20 0x00007fb5efd1f713 in QApplication::notify (this=0x211c0d0, receiver=0x36b8860, e=0x7fff6b5dfb70) at kernel/qapplication.cpp:4420
#21 0x00007fb5f167a3f6 in KApplication::notify (this=0x211c0d0, receiver=0x36b8860, event=0x7fff6b5dfb70) at ../../kdeui/kernel/kapplication.cpp:311
#22 0x00007fb5f0997e9c in QCoreApplication::notifyInternal (this=0x211c0d0, receiver=0x36b8860, event=0x7fff6b5dfb70) at kernel/qcoreapplication.cpp:876
#23 0x00007fb5f09c91f2 in sendEvent (event=0x7fff6b5dfb70, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#24 QTimerInfoList::activateTimers (this=0x2133370) at kernel/qeventdispatcher_unix.cpp:611
#25 0x00007fb5f09c6c0d in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:186
#26 timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:180
#27 0x00007fb5e79a4d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007fb5e79a50a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007fb5e79a5164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007fb5f09c73bf in QEventDispatcherGlib::processEvents (this=0x20a1ad0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#31 0x00007fb5efdc2d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#32 0x00007fb5f0996c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#33 0x00007fb5f0996ed7 in QEventLoop::exec (this=0x7fff6b5dfdd0, flags=...) at kernel/qeventloop.cpp:204
#34 0x00007fb5f099bf67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#35 0x00007fb5f3b0ea13 in kdemain (argc=1, argv=0x7fff6b5e01b8) at ../../../../plasma/desktop/shell/main.cpp:120
#36 0x00007fb5f372f76d in __libc_start_main (main=0x400640 <main(int, char**)>, argc=1, ubp_av=0x7fff6b5e01b8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff6b5e01a8) at libc-start.c:226
#37 0x0000000000400671 in _start ()

Reported using DrKonqi
Comment 1 Myriam Schweingruber 2012-12-21 15:36:37 UTC
Please upgrade to Amarok 2.6 and try again, 2.5 is outdated.
Comment 2 Thomas 2013-01-06 11:31:55 UTC
Created attachment 76238 [details]
New crash information added by DrKonqi

plasma-desktop (0.4) on KDE Platform 4.9.4 using Qt 4.8.3

- What I was doing when the application crashed:
adding the amarok wikipedia widget to the plasma desktop through the network sharing function adds the thing under custom settings to the config file
plasma desktop keeps crashing until i remove it manually
$amarok --version
Qt: 4.8.3
KDE: 4.9.4
Amarok: 2.6.0
$ plasma-desktop --version
Qt: 4.8.3
KDE: 4.9.4
Plasma-Desktop-Umgebung: 0.4


- Custom settings of the application:
same thing as before:

[Containments][300][Applets][407]
geometry=682,648.337611154783,200,200
immutability=1
plugin=wikipedia
zvalue=0

-- Backtrace (Reduced):
#6  KSharedPtr (o=..., this=0x7fff7567a950) at /usr/include/KDE/../ksharedptr.h:84
#7  EngineController::currentTrack (this=0x0) at ../../src/EngineController.cpp:724
#8  0x00007fc17377b2ee in WikipediaEnginePrivate::updateEngine (this=this@entry=0x3108dc0) at ../../../../../src/context/engines/wikipedia/WikipediaEngine.cpp:617
#9  0x00007fc17377f5e1 in WikipediaEnginePrivate::_dataContainerUpdated (this=0x3108dc0, source=..., data=...) at ../../../../../src/context/engines/wikipedia/WikipediaEngine.cpp:172
#10 0x00007fc173780741 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at ./WikipediaEngine.moc:61
Comment 3 Myriam Schweingruber 2013-01-06 13:11:31 UTC
Thank you for the feedback.
Comment 4 Myriam Schweingruber 2013-01-06 13:17:34 UTC
Could you maybe test with the Amarok 2.7 beta version? It is available in the Kubuntu beta PPA.

FWIW: I can't reproduce this here with current git v2.6.90-76-g8674fad

Also, why would you add Amarok application specific configuration into plasma-desktop-appletsrc? That is rather uncommon and most likely will be the cause of the problem. Amarok has it's own configuration files, those should not be added to the plasma desktop where it makes no sense at all.
Comment 5 Thomas 2013-02-03 13:18:27 UTC
I did NOT add it myself!
to clearify the whole thing:
1. I opened the widget configuration dialog in amarok and saw that there is a network sharing option. I thought:"Let’s try that!"
2. plasma-desktop notified me that there is a new widget available over network. I added it to my desktop.
Doing so added the mentioned item to my config file automatically.
plasma-desktop kept crashing until I removed it manually from plasma-desktop-appletsrc.

I think it was worth reporting as you can brick other people’s desktop by enabling network sharing inside amarok.


Possible workaround: disable network sharing for widgets inside amarok
Comment 6 Thomas 2013-02-03 18:38:12 UTC
Created attachment 76884 [details]
New crash information added by DrKonqi

plasma-desktop (0.4) on KDE Platform 4.9.4 using Qt 4.8.3

- What I was doing when the application crashed:

updated amarok to 2.6.90 from Kubuntu beta PPA and tested it again. same results.
adding the widget works, plasma-desktop does not instant-crash, but as soon plasma-desktop is restarted(logout+login) it  instantly crashes on startup.

sharing wikipedia widget over network and readding it in plasma-desktop adds
[Containments][1][Applets][413]
geometry=906.5,257.833857548151,323.345869500925,283.166142451849
immutability=1
plugin=wikipedia
zvalue=915
to the config file. as long as this is in the config, plasma-desktop crashes.

-- Backtrace (Reduced):
#6  KSharedPtr (o=..., this=0x7fff2e660340) at /usr/include/KDE/../ksharedptr.h:84
#7  EngineController::currentTrack (this=0x0) at ../../src/EngineController.cpp:717
#8  0x00007f3ea46cf51e in WikipediaEnginePrivate::updateEngine (this=this@entry=0x2e1b8a0) at ../../../../../src/context/engines/wikipedia/WikipediaEngine.cpp:616
#9  0x00007f3ea46d35d6 in WikipediaEnginePrivate::_dataContainerUpdated (this=0x2e1b8a0, source=..., data=...) at ../../../../../src/context/engines/wikipedia/WikipediaEngine.cpp:176
#10 0x00007f3ea46d44d1 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at ./WikipediaEngine.moc:61
Comment 7 Myriam Schweingruber 2013-02-03 19:10:01 UTC
(In reply to comment #6)
> Created attachment 76884 [details]
> New crash information added by DrKonqi
> 
> plasma-desktop (0.4) on KDE Platform 4.9.4 using Qt 4.8.3
> 
> - What I was doing when the application crashed:
> 
> updated amarok to 2.6.90 from Kubuntu beta PPA and tested it again. same
> results.

Why 2.6.90 when 2.7 final is out since more than 2 weeks: http://kubuntu.org/news/amarok-27 ?
Comment 8 Myriam Schweingruber 2013-02-23 09:53:12 UTC
Closing for lack of feedback. Can't reproduce this at all.