[Bug 61367] noatun crashes when opening a XML-Playlist

Carsten Pfeiffer carpdjih at mailbox.tu-berlin.de
Fri Jul 18 19:23:24 BST 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=61367     
carpdjih at mailbox.tu-berlin.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From carpdjih at mailbox.tu-berlin.de  2003-07-18 20:23 -------
Subject: kdelibs/arts/kde

CVS commit by pfeiffer: 

noatun uses Arts::Dispatcher, KFileAudioPreview KArtsDispatcher, which
tries to create another Arts::Dispatcher, which hits an assertion.

Note: update arts as well (either HEAD or ARTS_1_1_BRANCH) or you'll hit
another assertion :-/

CCMAIL: 61367-close at bugs.kde.org


  M +10 -2     kartsdispatcher.cc   1.3


--- kdelibs/arts/kde/kartsdispatcher.cc  #1.2:1.3
@@ -22,4 +22,7 @@
 #include <qiomanager.h>
 #include <dispatcher.h>
+
+#include <kdebug.h>
+
 #include "kartsdispatcher.moc"
 
@@ -34,6 +37,11 @@ KArtsDispatcher::KArtsDispatcher(QObject
         if(artsDispatcher == 0)
         {
+                if (!Arts::Dispatcher::the()) // only if no Arts::Dispatcher is created yet
+                {
                 artsQIOManager = new Arts::QIOManager();
                 artsDispatcher = new Arts::Dispatcher(artsQIOManager);
+                }
+                else
+                        kdWarning(400) << "An Arts::Dispatcher() instance exists already while trying to instantiate KArtsDispatcher!" << endl;
         }
 }



More information about the kde-multimedia mailing list