[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 194215] New: Amarok crashes undeterministically when adding songs
From:       Michi vK <michisspam () gmail ! com>
Date:       2009-05-26 20:06:05
Message-ID: bug-194215-17878 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=194215

           Summary: Amarok crashes undeterministically when adding songs
           Product: amarok
           Version: 2.1-SVN
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: ScriptManager
        AssignedTo: amarok-bugs-dist@kde.org
        ReportedBy: michisspam@gmail.com
                CC: stharward@gmail.com, peterzhoulei@gmail.com


I found this bug during scripting (it could also be a bug of the (main)
playlist). Sometimes it happens faster sometimes it takes longer. With the
following script you should have a high chance to reproduce the bug:

function onTrackInserted( newTrack, row ){
    print("lala "+row);
}
Amarok.Playlist.trackInserted.connect( onTrackInserted );
Importer.loadQtBinding( "qt.core" );
var qurl = new QUrl( "file:///home/user/music/lala.mp3" );
Amarok.Playlist.clearPlaylist();
for( var j=0; j<10; j++){
    for( var i=0; i<10; i++){
        Amarok.Playlist.addMedia( qurl );
    }
    Amarok.Playlist.clearPlaylist();
}

this outputs:
lala 0
lala 1
lala 2
lala 3
lala 4
lala 5
lala 6
lala 7
lala 8
lala 9
lala 0
lala 1
lala 2
lala 3
lala 4
ASSERT failure in QVector<T>::at: "index out of range", file
../../include/QtCore/../../src/corelib/tools/qvector.h, line 329
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = amarok path = <unknown> pid = 15377
sock_file=/home/kk/.amarok-nightly/socket-abfallsack/kdeinit4__0
kdeinit4: Got EXEC_NEW '' from wrapper.
kdeinit4: preparing to launch 
Could not find '' executable.
KCrash cannot reach kdeinit, launching directly.
kdeinit4: PID 15405 terminated.
KCrash failed to exec(), errno = 2

...as I said... sometimes I get more, sometimes less "lala" before amarok
crashes :)

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic