--===============2128797450166984099== Content-Type: multipart/signed; boundary="nextPart1436154.n4Uh8jTMsG"; micalg="pgp-sha1"; protocol="application/pgp-signature" Content-Transfer-Encoding: 7Bit --nextPart1436154.n4Uh8jTMsG Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Hi, I'm debugging a very frequent KMail crash I'm seeing since a few days, related to usage of Nepomuk from multiple threads (code is here: kdepim/messagecore/asyncnepomukresourceretriever.cpp). If it's because of recent changes in Nepomuk or due to the fact that I now have a production-size Nepomuk database with the Akonadi feeder finally working, I don't really know, but I think I found the cause :) Nepomuk::Resource is documented to be thread-safe, and the implementation looks like great care has been taken to ensure it really is. Same for ResourceData. Not so ResourceWatcher, it has no internal locks and it uses a D-Bus connection bound to the main thread. Since mid-January ResourceData uses ResourceWatcher internally though, effectively breaking the thread-safety guarantee of Resource. I have now commented out the ResourceWatcher usage in ResourceData locally, no more crashes so far, which seems to confirm the analysis above. How do we fix this best? Moving the ResourceWatcher instance to the main thread and using queued connections to communicate with it in both directions? regards, Volker --nextPart1436154.n4Uh8jTMsG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iD8DBQBPWzIpf5bM1k0S0kcRAt9vAJ9IvvnNQ4TlhB3ANy20jZ3toVSKGACfaEmX r2fXmr+TJA59R5AJym+23+k= =mRvE -----END PGP SIGNATURE----- --nextPart1436154.n4Uh8jTMsG-- --===============2128797450166984099== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ KDE PIM mailing list kde-pim@kde.org https://mail.kde.org/mailman/listinfo/kde-pim KDE PIM home page at http://pim.kde.org/ --===============2128797450166984099==--