<div dir="ltr">Hey,<br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 2, 2015 at 8:24 AM, Diane Trout <span dir="ltr"><<a href="mailto:diane@ghic.org" target="_blank">diane@ghic.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-family:'Oxygen Mono';font-size:9pt;font-weight:400;font-style:normal">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Hi,</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">I was trying to develop a connection manager in python, and once had enough interfaces implemented for TelepathyQt to try reading contacts I was getting ktp-contactlist and plasmashell to crash.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">It looks like TelepathyQt was crashing at at TelepathyQt/contact.cpp:1048 when it was parsing the mess I was returning for oft.Connection.Interface.ContactCapabilities/capabilities </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">I suspect the plasma shell crash is because I had the ktp widget in the system tray. This is with the Debian builds of 15.04.3 [1] and TelepathyQt 0.9.6.1</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">For reference this is the function that returns the garbage that triggers the crash</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><a href="https://github.com/detrout/telepathy-gitter/blob/51cba4dacefb7fd10e4d107045f30a5679bd0912/glitter/contacts.py#L140" target="_blank">https://github.com/detrout/telepathy-gitter/blob/51cba4dacefb7fd10e4d107045f30a5679bd0912/glitter/contacts.py#L140</a></p></div></blockquote><div><br></div><div>I'm not entirely sure about Python and/or the struct you need to return,</div><div>however you can check the Telegram CM which is done in Qt,</div><div>see <a href="https://github.com/Kaffeine/telegram-qt/">https://github.com/Kaffeine/telegram-qt/</a> ...maybe it will help :)</div><div> <span style="font-family:'Oxygen Mono';font-size:9pt"> </span></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-family:'Oxygen Mono';font-size:9pt;font-weight:400;font-style:normal">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Obviously I need to figure out how to properly construct the dbus structure (any hints would be appreciated). I was also wondering if causing plasmashell to crash because of my own bad code is something that should file a plasmashell bugreport for?</p></div></blockquote><div><br></div><div>Yeah, probably. Perhaps it should be fixed in tp-qt, even. Just</div><div>file one and paste the backtrace there, we can follow it there.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-family:'Oxygen Mono';font-size:9pt;font-weight:400;font-style:normal">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">[1] the ktp builds are unreleased, though the packages are in alioth's git.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">also I made some improvements to telepathy-python </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><a href="https://github.com/detrout/telepathy-python" target="_blank">https://github.com/detrout/telepathy-python</a></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">I improved the python3 compatibility and adding a few more of the newer _generated interfaces to where I found the older related interfaces.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><a href="https://github.com/detrout/telepathy-python/commit/313269dbe612f6d5d16752e582f288550cb58525" target="_blank">https://github.com/detrout/telepathy-python/commit/313269dbe612f6d5d16752e582f288550cb58525</a></p></div></blockquote><div><br></div><div>Good stuff, nicely done \o/</div><div><br></div></div><div>Cheers</div>-- <br><div class="gmail_signature"><div><span style="color:rgb(102,102,102)">Martin Klapetek | KDE Developer</span></div></div>
</div></div>