--===============3582392571203686087== Content-Type: multipart/signed; boundary="nextPart2119841.q93XnjsefY"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart2119841.q93XnjsefY Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Thu, July 11, 2013 00:35:51 Christian Esken wrote: > Here is some background information on what is happening: > MPRIS2 is using DBUS. I finally I got the notion that doing DBUS > requests is evil - at least ANY synchronous DBUS communication. I am > pretty sure I am not the first with these problems, so if anybody has > working code that shows how to do it I would be glad. Or review my > concept code. I can say (as the JuK dev ;) you're not the only one with the problem. And you're right about the cause as well: sync calls going over the DBus causing deadlock (in JuK's case, deadlock with KStatusNotifierItem which uses DBus to communicate the other direction back to plasma-desktop). MPRIS2 happens to be the proximate cause but this would happen again in any other situation where you have two processes sending sync messages to each other over DBus. Unfortunately I have not been able to fix JuK's code fully yet to workaround the issue. The real fix is to use async design (and if at all possible do not block in your response to a DBus call, nor make a blocking call into the DBus). You can use Q_NOREPLY annotations for adapter objects, but solutions in general are much more difficult. And sometimes you can't control the code at all (e.g. KStatusNotifierItem). Regards, - Michael Pyne --nextPart2119841.q93XnjsefY Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQIcBAABCAAGBQJR3gaSAAoJEAuvDJx7aunycNMQAJKWzen2rcTF8YdpQuvjgrj2 wH9AxqRIVe8UH4806+tN1Uwy0lWQN3edXcUN95XlgZ5qGEWf3X6m7gfKxfjaoZ71 yXL0KQnaLQpwhsdfsEKKh87Q6r380Y613FZ0Hm1FmmbjfEXudS4jlR5be/nBvfKA lBLsOpquctuzs4REu2B7EiolAbYXT7/6sxg/BkBysk0rI+Fl9kAcIa9KTkH4J/eq CKERh9B4Z2Jb5iiGEXt9hcderHCUXaT09640C1dRqK6mhT4ibWrYDffisxV4TrGp XHlhofeOZdXr9qZvBX0SYaFmQQy8A0ReRcnVDCeBx9GdD50DhjFLtiZ1hM1SZTYg GWsZWMDqK0VB4kifiD+5/E5m0VvUJ4E3/OQzFmbLkV135XuUr4U45+BGJIhyZKJC LaPXtMvNnp7urj9XghffmjuNb7lLc2HjSxFvm7tQu86oDyhmddcCLzOszHbAzG2l GjeHyVl165Ydit8rcTqqbSEivNhldHWTUmJ05mCPkFCatVHULo61mEpeeILU2oUY jIaoN+kOS77/nK+nW30FSSHZDehC61Txm8Bty+xY91FV1JqwIhooJAoTM97bVY09 ecPZRa72ktqVJ9A38Ls6qL6JKdbZCb9yo+4Jtje56buzTwXYrGNvF4f+uDChmpn9 NtBd/2gdi39Vj7KQss3n =ZRhv -----END PGP SIGNATURE----- --nextPart2119841.q93XnjsefY-- --===============3582392571203686087== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kde-multimedia mailing list kde-multimedia@kde.org https://mail.kde.org/mailman/listinfo/kde-multimedia --===============3582392571203686087==--