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

DCOPReply Failed opcode

Tags: None
(comma "," separated)
kitecraft
Registered Member
Posts
3
Karma
0

DCOPReply Failed opcode

Tue Aug 25, 2009 3:30 pm
Hi. When I run the following in a loop every 5 seconds, I end up with a problem after 3 - 5 iterations.

DCOPRef m_hdl("amarok", "player");
if(m_hdl.isNull())
return false;

DCOPReply reply = m_hdl.call("isPlaying");
m_hdl.clear();

if(!reply.isValid() || reply.type != "bool")
return false;

bool b = reply;
return b;


I get an application message of "Very strange! got a DCOPReply Failed opcode, but we were not waiting for a reply!" which seems to be from dcopclient.cpp
My code then hangs on the m_hdl.call() and never returns from it.

I'm using KDE 3.5.9 on Mandriva 2008
Anyone know what's going on and/or how to fix it please?
Thanks
Kitecraft
kitecraft
Registered Member
Posts
3
Karma
0

Re: DCOPReply Failed opcode

Thu Aug 27, 2009 8:21 pm
Well, at least no-one told me to just upgrade :)

I've tried the same routine with other DCOP services and always hit the same problem. Am I just doing this is some fundamentally wrong way?

Thanks
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: DCOPReply Failed opcode

Fri Aug 28, 2009 4:52 am
The reason for the lack of replies is that many users have upgraded to KDE 4 which uses D-Bus instead of DCOP. This is likely a restriction in DCOP, or a bug. Either of which are unlikely to ever be removed, as KDE 3.5 will not be having any further releases.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS

Re: DCOPReply Failed opcode

Fri Aug 28, 2009 4:59 pm
Just a general question: since you currently use polling, have you checked whether the service doesn't signal state changes?

If you really need to work around using polling, maybe keeping the reference and not continuously destroying and recreating it might help.

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
kitecraft
Registered Member
Posts
3
Karma
0

Re: DCOPReply Failed opcode

Tue Sep 01, 2009 9:22 pm
re: have you checked whether the service doesn't signal state changes?
Hmmmm, hadn't thought of that. Will check. Thanks.

re: maybe keeping the reference and not continuously destroying and recreating it might help.
That's actually what I started with. But once I hit this problem, I just went down to the simplest thing I could think of as the reproducible test case.

re: The reason for the lack of replies is that many users have upgraded to KDE 4...
Yeah, I figured that. I actually spent some time on the weekend installing various OS's and checking it out. I just really like my current system. A lot!! But, there are other things I want to do as well and QT4 has some good solutions not available in QT3.

I appreciate your responses.
Cheers,
T.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]