<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>321758</bug_id>
          
          <creation_ts>2013-06-29 11:46:56 +0000</creation_ts>
          <short_desc>phonon(kded) crashes when using 2 users at the same time</short_desc>
          <delta_ts>2013-07-03 23:20:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>Phonon</product>
          <component>kded module for audio device listing</component>
          <version>4.6-git</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>318451</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>4.6.1</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Bernd Buschinski">b.buschinski</reporter>
          <assigned_to name="Harald Sitter">sitter</assigned_to>
          <cc>martin.sandsmark</cc>
    
    <cc>myriam</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1380188</commentid>
    <comment_count>0</comment_count>
    <who name="Bernd Buschinski">b.buschinski</who>
    <bug_when>2013-06-29 11:46:56 +0000</bug_when>
    <thetext>When trying to use a second user with phonon, it crashes.
While there is no usefull console output, I am guessing there is some &quot;can not open a second time&quot; open error and maybe it tries to save something invalid?

using phonon git master + phonon-gstreamer git master.


ASSERT failure in QVariant::save: &quot;Invalid type to save&quot;, file kernel/qvariant.cpp, line 2049

Reproducible: Always




Application: KDE-Dienst (kdeinit4), signal: Aborted
Using host libthread_db library &quot;/lib64/libthread_db.so.1&quot;.
[Current thread is 1 (Thread 0x7fc12b688780 (LWP 8579))]

Thread 3 (Thread 0x7fc1191a3700 (LWP 8602)):
#0  0x00007fc128ba6efd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fc125886e3c in g_main_context_iterate.isra.24 () from /usr/lib/libglib-2.0.so.0
#2  0x00007fc125886f6c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007fc12a2d2bce in QEventDispatcherGlib::processEvents (this=0x7fc1140008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fc12a2a012f in QEventLoop::processEvents (this=this@entry=0x7fc1191a2e30, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fc12a2a03e8 in QEventLoop::exec (this=this@entry=0x7fc1191a2e30, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fc12a196a0d in QThread::exec (this=this@entry=0x2772f80) at thread/qthread.cpp:542
#7  0x00007fc12a27fa73 in QInotifyFileSystemWatcherEngine::run (this=0x2772f80) at io/qfilesystemwatcher_inotify.cpp:256
#8  0x00007fc12a199779 in QThreadPrivate::start (arg=0x2772f80) at thread/qthread_unix.cpp:338
#9  0x00007fc129f0301b in start_thread (arg=0x7fc1191a3700) at pthread_create.c:308
#10 0x00007fc128bb0b6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7fc1189a2700 (LWP 8603)):
#0  0x00007fc128ba6efd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fc125886e3c in g_main_context_iterate.isra.24 () from /usr/lib/libglib-2.0.so.0
#2  0x00007fc125886f6c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007fc12a2d2bce in QEventDispatcherGlib::processEvents (this=0x7fc10c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fc12a2a012f in QEventLoop::processEvents (this=this@entry=0x7fc1189a1e30, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fc12a2a03e8 in QEventLoop::exec (this=this@entry=0x7fc1189a1e30, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fc12a196a0d in QThread::exec (this=this@entry=0x27c37b0) at thread/qthread.cpp:542
#7  0x00007fc12a27fa73 in QInotifyFileSystemWatcherEngine::run (this=0x27c37b0) at io/qfilesystemwatcher_inotify.cpp:256
#8  0x00007fc12a199779 in QThreadPrivate::start (arg=0x27c37b0) at thread/qthread_unix.cpp:338
#9  0x00007fc129f0301b in start_thread (arg=0x7fc1189a2700) at pthread_create.c:308
#10 0x00007fc128bb0b6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7fc12b688780 (LWP 8579)):
[KCrash Handler]
#6  0x00007fc128afa995 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007fc128afbe07 in __GI_abort () at abort.c:90
#8  0x00007fc12a18f344 in qt_message_output (msgType=&lt;optimized out&gt;, msgType@entry=QtFatalMsg, buf=&lt;optimized out&gt;) at global/qglobal.cpp:2323
#9  0x00007fc12a18f4a0 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, msg=msg@entry=0x7fc12a30b1a8 &quot;ASSERT failure in %s: \&quot;%s\&quot;, file %s, line %d&quot;, ap=ap@entry=0x7fff1af08308) at global/qglobal.cpp:2369
#10 0x00007fc12a18f614 in qFatal (msg=msg@entry=0x7fc12a30b1a8 &quot;ASSERT failure in %s: \&quot;%s\&quot;, file %s, line %d&quot;) at global/qglobal.cpp:2552
#11 0x00007fc12a18f63a in qt_assert_x (where=where@entry=0x7fc12a38ae6e &quot;QVariant::save&quot;, what=what@entry=0x7fc12a38ae59 &quot;Invalid type to save&quot;, file=file@entry=0x7fc12a38ae18 &quot;kernel/qvariant.cpp&quot;, line=line@entry=2049) at global/qglobal.cpp:2026
#12 0x00007fc12a2c6c53 in QVariant::save (this=this@entry=0x2952878, s=...) at kernel/qvariant.cpp:2049
#13 0x00007fc12a2c6d6f in operator&lt;&lt; (s=..., p=...) at kernel/qvariant.cpp:2076
#14 0x00007fc1194b2d5b in operator&lt;&lt; &lt;QByteArray, QVariant&gt; (out=..., hash=...) at /usr/include/qt4/QtCore/qdatastream.h:383
#15 0x00007fc1194acd92 in streamToByteArray&lt;QHash&lt;QByteArray, QVariant&gt; &gt; (data=...) at /var/tmp/portage/kde-base/phonon-kde-4.10.4/work/phonon-kde-4.10.4/phonon/kded-module/phononserver.cpp:956
#16 PhononServer::updateDevicesCache (this=0x2704b80) at /var/tmp/portage/kde-base/phonon-kde-4.10.4/work/phonon-kde-4.10.4/phonon/kded-module/phononserver.cpp:1017
#17 0x00007fc1194ada4b in PhononServer::audioDevicesIndexes (this=&lt;optimized out&gt;, type=&lt;optimized out&gt;) at /var/tmp/portage/kde-base/phonon-kde-4.10.4/work/phonon-kde-4.10.4/phonon/kded-module/phononserver.cpp:823
#18 0x00007fc1194a8718 in qt_static_metacall (_a=&lt;optimized out&gt;, _id=&lt;optimized out&gt;, _o=&lt;optimized out&gt;, _c=&lt;optimized out&gt;) at /var/tmp/portage/kde-base/phonon-kde-4.10.4/work/phonon-kde-4.10.4_build/phonon/kded-module/moc_phononserver.cpp:75
#19 PhononServer::qt_static_metacall (_o=&lt;optimized out&gt;, _c=&lt;optimized out&gt;, _id=&lt;optimized out&gt;, _a=&lt;optimized out&gt;) at /var/tmp/portage/kde-base/phonon-kde-4.10.4/work/phonon-kde-4.10.4_build/phonon/kded-module/moc_phononserver.cpp:69
#20 0x00007fc1194a88a3 in PhononServer::qt_metacall (this=0x2704b80, _c=QMetaObject::InvokeMetaMethod, _id=&lt;optimized out&gt;, _a=0x7fff1af08870) at /var/tmp/portage/kde-base/phonon-kde-4.10.4/work/phonon-kde-4.10.4_build/phonon/kded-module/moc_phononserver.cpp:131
#21 0x00007fc126f21a34 in QDBusConnectionPrivate::deliverCall (this=this@entry=0x255eff0, object=object@entry=0x2704b80, msg=..., metaTypes=..., slotIdx=8) at qdbusintegrator.cpp:951
#22 0x00007fc126f22c37 in QDBusConnectionPrivate::activateCall (this=this@entry=0x255eff0, object=0x2704b80, flags=241, msg=...) at qdbusintegrator.cpp:856
#23 0x00007fc126f233e7 in QDBusConnectionPrivate::activateObject (this=0x255eff0, node=..., msg=..., pathStartPos=&lt;optimized out&gt;) at qdbusintegrator.cpp:1447
#24 0x00007fc126f237db in QDBusActivateObjectEvent::placeMetaCall (this=0x298dc10) at qdbusintegrator.cpp:1541
#25 0x00007fc12a2b8c1e in QObject::event (this=0x2704b80, e=&lt;optimized out&gt;) at kernel/qobject.cpp:1194
#26 0x00007fc12935dd51 in QApplicationPrivate::notify_helper (this=this@entry=0x2569a60, receiver=receiver@entry=0x2704b80, e=e@entry=0x298dc10) at kernel/qapplication.cpp:4562
#27 0x00007fc1293603f9 in QApplication::notify (this=this@entry=0x7fff1af0a510, receiver=receiver@entry=0x2704b80, e=e@entry=0x298dc10) at kernel/qapplication.cpp:4423
#28 0x00007fc12b08fb08 in KApplication::notify (this=0x7fff1af0a510, receiver=0x2704b80, event=0x298dc10) at /var/tmp/portage/kde-base/kdelibs-4.10.4/work/kdelibs-4.10.4/kdeui/kernel/kapplication.cpp:311
#29 0x00007fc12a2a1bcd in QCoreApplication::notifyInternal (this=0x7fff1af0a510, receiver=receiver@entry=0x2704b80, event=event@entry=0x298dc10) at kernel/qcoreapplication.cpp:946
#30 0x00007fc12a2a5457 in sendEvent (event=0x298dc10, receiver=0x2704b80) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#31 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x24f42b0) at kernel/qcoreapplication.cpp:1570
#32 0x00007fc12a2a57c5 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1463
#33 0x00007fc12a2d2a33 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#34 postEventSourceDispatch (s=0x256ab80) at kernel/qeventdispatcher_glib.cpp:279
#35 0x00007fc125886b34 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#36 0x00007fc125886ea4 in g_main_context_iterate.isra.24 () from /usr/lib/libglib-2.0.so.0
#37 0x00007fc125886f6c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#38 0x00007fc12a2d2ba4 in QEventDispatcherGlib::processEvents (this=0x24f5750, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#39 0x00007fc129407d86 in QGuiEventDispatcherGlib::processEvents (this=&lt;optimized out&gt;, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#40 0x00007fc12a2a012f in QEventLoop::processEvents (this=this@entry=0x7fff1af09440, flags=...) at kernel/qeventloop.cpp:149
#41 0x00007fc12a2a03e8 in QEventLoop::exec (this=this@entry=0x7fff1af09440, flags=...) at kernel/qeventloop.cpp:204
#42 0x00007fc129861d47 in QDialog::exec (this=0x25a8fe0) at dialogs/qdialog.cpp:554
#43 0x00007fc12affd71a in KMessageBox::createKMessageBox (dialog=dialog@entry=0x25a8fe0, icon=..., text=..., strlist=..., ask=..., checkboxReturn=checkboxReturn@entry=0x7fff1af0979f, options=..., details=..., notifyType=notifyType@entry=QMessageBox::Information) at /var/tmp/portage/kde-base/kdelibs-4.10.4/work/kdelibs-4.10.4/kdeui/dialogs/kmessagebox.cpp:344
#44 0x00007fc1194aa88c in PhononServer::askToRemoveDevices (this=0x2704b80, devList=..., type=&lt;optimized out&gt;, indexes=...) at /var/tmp/portage/kde-base/phonon-kde-4.10.4/work/phonon-kde-4.10.4/phonon/kded-module/phononserver.cpp:1145
#45 0x00007fc1194a86fe in qt_static_metacall (_a=&lt;optimized out&gt;, _id=&lt;optimized out&gt;, _o=&lt;optimized out&gt;, _c=&lt;optimized out&gt;) at /var/tmp/portage/kde-base/phonon-kde-4.10.4/work/phonon-kde-4.10.4_build/phonon/kded-module/moc_phononserver.cpp:92
#46 PhononServer::qt_static_metacall (_o=&lt;optimized out&gt;, _c=&lt;optimized out&gt;, _id=&lt;optimized out&gt;, _a=&lt;optimized out&gt;) at /var/tmp/portage/kde-base/phonon-kde-4.10.4/work/phonon-kde-4.10.4_build/phonon/kded-module/moc_phononserver.cpp:69
#47 0x00007fc12a2b8c1e in QObject::event (this=0x2704b80, e=&lt;optimized out&gt;) at kernel/qobject.cpp:1194
#48 0x00007fc12935dd51 in QApplicationPrivate::notify_helper (this=this@entry=0x2569a60, receiver=receiver@entry=0x2704b80, e=e@entry=0x2919320) at kernel/qapplication.cpp:4562
#49 0x00007fc1293603f9 in QApplication::notify (this=this@entry=0x7fff1af0a510, receiver=receiver@entry=0x2704b80, e=e@entry=0x2919320) at kernel/qapplication.cpp:4423
#50 0x00007fc12b08fb08 in KApplication::notify (this=0x7fff1af0a510, receiver=0x2704b80, event=0x2919320) at /var/tmp/portage/kde-base/kdelibs-4.10.4/work/kdelibs-4.10.4/kdeui/kernel/kapplication.cpp:311
#51 0x00007fc12a2a1bcd in QCoreApplication::notifyInternal (this=0x7fff1af0a510, receiver=receiver@entry=0x2704b80, event=event@entry=0x2919320) at kernel/qcoreapplication.cpp:946
#52 0x00007fc12a2a5457 in sendEvent (event=0x2919320, receiver=0x2704b80) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#53 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x24f42b0) at kernel/qcoreapplication.cpp:1570
#54 0x00007fc12a2a57c5 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1463
#55 0x00007fc12a2d2a33 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#56 postEventSourceDispatch (s=0x256ab80) at kernel/qeventdispatcher_glib.cpp:279
#57 0x00007fc125886b34 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#58 0x00007fc125886ea4 in g_main_context_iterate.isra.24 () from /usr/lib/libglib-2.0.so.0
#59 0x00007fc125886f6c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#60 0x00007fc12a2d2ba4 in QEventDispatcherGlib::processEvents (this=0x24f5750, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#61 0x00007fc129407d86 in QGuiEventDispatcherGlib::processEvents (this=&lt;optimized out&gt;, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#62 0x00007fc12a2a012f in QEventLoop::processEvents (this=this@entry=0x7fff1af0a290, flags=...) at kernel/qeventloop.cpp:149
#63 0x00007fc12a2a03e8 in QEventLoop::exec (this=this@entry=0x7fff1af0a290, flags=...) at kernel/qeventloop.cpp:204
#64 0x00007fc12a2a5868 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#65 0x00007fc1293583fc in QApplication::exec () at kernel/qapplication.cpp:3823
#66 0x00007fc120d38a99 in kdemain (argc=1, argv=0x2518620) at /var/tmp/portage/kde-base/kdelibs-4.10.4/work/kdelibs-4.10.4/kded/kded.cpp:925
#67 0x0000000000408a63 in launch (argc=argc@entry=1, _name=_name@entry=0x40b44c &quot;kded4&quot;, args=args@entry=0x0, cwd=cwd@entry=0x0, envc=envc@entry=0, envs=&lt;optimized out&gt;, envs@entry=0x0, reset_env=reset_env@entry=false, tty=tty@entry=0x0, avoid_loops=avoid_loops@entry=false, startup_id_str=startup_id_str@entry=0x40b2e6 &quot;0&quot;) at /var/tmp/portage/kde-base/kdelibs-4.10.4/work/kdelibs-4.10.4/kinit/kinit.cpp:726
#68 0x00000000004063b5 in main (argc=2, argv=&lt;optimized out&gt;, envp=0x7fff1af0aca0) at /var/tmp/portage/kde-base/kdelibs-4.10.4/work/kdelibs-4.10.4/kinit/kinit.cpp:1841</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381016</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Sandsmark">martin.sandsmark</who>
    <bug_when>2013-07-03 11:48:06 +0000</bug_when>
    <thetext>What do you mean with &quot;second user&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381022</commentid>
    <comment_count>2</comment_count>
    <who name="Bernd Buschinski">b.buschinski</who>
    <bug_when>2013-07-03 11:58:54 +0000</bug_when>
    <thetext>another account on the system

useradd foo
passwd foo
su - foo
./something-that-uses-phonon

its really just a testuser in my case, so I delete ~/.kde (for the testuser) from time to time, but always BEFORE running the first kde app.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381177</commentid>
    <comment_count>3</comment_count>
    <who name="Harald Sitter">sitter</who>
    <bug_when>2013-07-03 22:58:30 +0000</bug_when>
    <thetext>launch kdebugdialog first, activate everything, then trigger the crash, then attach .xsession-errors to the report please.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381187</commentid>
    <comment_count>4</comment_count>
    <who name="Harald Sitter">sitter</who>
    <bug_when>2013-07-03 23:20:15 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 318451 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>