This forum has been archived. All content is frozen. Please use KDE Discuss instead.

amaroK crashes when adding tracks via DCOP

Tags: None
(comma "," separated)
Schijf
Karma
0
I\'m working on an app that adds tracks to amaroK\'s playlist through the DCOP interface. The result so far: amaroK crashes...

The code
[code:1]
KURL trackURL;
trackURL.setPath( filename ); // filename is a QString

QByteArray data;
QDataStream arg(data, IO_WriteOnly);
arg << trackURL.url();

if (!client->send(\"amarok\", \"player\", \"playMedia(KURL)\", data))
log->append(\"There was some error using DCOP.\"«»);
[/code:1]

What am I missing/doing wrong? When adding a track through the console or kdcop everything works fine.
User avatar
Max Howell
Alumni
Posts
195
Karma
0
Please keep bringing this to our attention. I haven\'t the time to look into it now, but it needs to be fixed if it is a bug. Thanks!
Schijf
Karma
0
Don\'t know if this is helpfull, but here\'s some more info.

This happens with amaroK 1.2-beta2 and 1.2-beta3

It doesn\'t matter which of the following urls is send;
/home/zotty/media/audio/Megamixes/Ace of Base - Megamix.mp3
/home/zotty/media/audio/Megamixes/Ace%20of%20Base%20-%20Megamix.mp3
/home/zotty/media/audio/Megamixes/Ace\\ of\\ Base\\ -\\ Megamix.mp3

The above file urls will crash amaroK and popup the KDE crash handler. It doesn\'t matter if \'file:\' is added in front of it or not.

When doing it through the console it works fine;
dcop amarok player addMedia \"/home/zotty/media/audio/Megamixes/Ace of Base - Megamix.mp3\"
dcop amarok player addMedia /home/zotty/media/audio/Megamixes/Ace\\ of\\ Base\\ -\\ Megamix.mp3
dcop amarok player addMedia \"/home/zotty/media/audio/Megamixes/Ace%20of%20Base%20-%20Megamix.mp3\"

The following will also crash amaroK, but will not call the KDE crash handler:
dcop amarok player addMedia \"test\"

The KDE crash handler has this description:
The application amaroK crashed and caused the signal 6 (SIGABRT)


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], markhm, Sogou [Bot], Yahoo [Bot]