<div dir="ltr"><br>Many thanks for your quick reply :)<br>I&#39;ve already checked them but i&#39;ve just re-checked now :P<br><div class="gmail_quote">2008/10/20 Alexis Ménard <span dir="ltr">&lt;<a href="mailto:menard@kde.org">menard@kde.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"><pre><pre>QSize s = dialog-&gt;size();<br>QPoint pos = q-&gt;view()-&gt;mapFromScene(q-&gt;scenePos());<br>
</pre></pre>Here is the code from popup applet. Three things that can crash :<br><br>First q-&gt;view() return null so you call mapFromScene to a null or broken pointer. Run gdb and test the variable (or print it with kDebug).</div>
</blockquote><div>Does not return null. checked with if(q-&gt;view()) <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">
<br>
<br>Second, q-&gt;scenePos() return crazy value (check).</div></blockquote><div>return value printed with kDebug says: plasma(27263)/libplasma Plasma::PopupAppletPrivate::updateDialogPosition: SCENEPOS QPointF(59, -54) <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"><br><br>Third, q is null or broken. Test.</div></blockquote><div>Not broken, checked =) <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"><br><br>mapFrom/toScene are common functions used everywhere both in KDE and Qt so it&#39;s probably not a bug inside Qt. If it&#39;s the case for sure i will fix it.<br>

<br>Give me news.<br><br><br><div class="gmail_quote"><div class="Ih2E3d">2008/10/20 Alessandro Diaferia <span dir="ltr">&lt;<a href="mailto:alediaferia@gmail.com" target="_blank">alediaferia@gmail.com</a>&gt;</span><br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Hello my dear ML,<div><div></div><div class="Wj3C7c"><br>i&#39;m fixing devicenotifier patch according to Aaron&#39;s suggestions but i encounter a crash calling PopupApplet::showPopup(); The backtrace and my tests say that the crash comes from Qt side, and it happens calling QGraphicsView::mapFromScene, in particular from line 442 of my popupapplet.cpp (PopupAppletPrivate::updateDialogPosition());<br>


<br>Along with this mail comes the device notifier patch.<br><br>Here instead comes the BT:<br><br>

<p style="margin: 0px; text-indent: 0px;">Application: Plasma Workspace (plasma), signal SIGSEGV</p>
<p style="margin: 0px; text-indent: 0px;">Using host libthread_db library &quot;/lib/libthread_db.so.1&quot;.</p>
<p style="margin: 0px; text-indent: 0px;">[Current thread is 0 (LWP 1037)]</p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">Thread 2 (Thread 0xb2dd7b90 (LWP 1038)):</p>
<p style="margin: 0px; text-indent: 0px;">#0  0xb8069424 in __kernel_vsyscall ()</p>
<p style="margin: 0px; text-indent: 0px;">#1  0xb5f45be5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0</p>
<p style="margin: 0px; text-indent: 0px;">#2  0xb5fa3fc2 in QWaitCondition::wait (this=0x9cf5d30, mutex=0x9cf5d2c, time=4294967295) at thread/qwaitcondition_unix.cpp:88</p>
<p style="margin: 0px; text-indent: 0px;">#3  0xb7dd508b in QHostInfoAgent::run (this=0x9cf5d20) at kernel/qhostinfo.cpp:247</p>
<p style="margin: 0px; text-indent: 0px;">#4  0xb5fa2e59 in QThreadPrivate::start (arg=0x9cf5d20) at thread/qthread_unix.cpp:191</p>
<p style="margin: 0px; text-indent: 0px;">#5  0xb5f42160 in start_thread () from /lib/libpthread.so.0</p>
<p style="margin: 0px; text-indent: 0px;">#6  0xb5c8fc0e in clone () from /lib/libc.so.6</p><p style="margin: 0px; text-indent: 0px;"><br></p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">Thread 1 (Thread 0xb49b7730 (LWP 1037)):</p>
<p style="margin: 0px; text-indent: 0px;">[KCrash Handler]</p>
<p style="margin: 0px; text-indent: 0px; background-color: rgb(255, 255, 102);"><b>#6  0xb73bef70 in QGraphicsView::mapFromScene () from /usr/lib/qt4/libQtGui.so.4</b></p>
<p style="margin: 0px; text-indent: 0px; background-color: rgb(255, 255, 102);"><b>#7  0xb7f3549a in Plasma::PopupAppletPrivate::updateDialogPosition (this=0x9b0ccc0) at /var/tmp/paludis/kde-base-libplasma-scm/work/libplasma/libs/plasma/popupapplet.cpp:442</b></p>



<p style="margin: 0px; text-indent: 0px; background-color: rgb(255, 255, 102);"><b>#8  0xb7f36184 in Plasma::PopupApplet::showPopup (this=0x9b5ad48, popupDuration=0) at /var/tmp/paludis/kde-base-libplasma-scm/work/libplasma/libs/plasma/popupapplet.cpp:311</b></p>



<p style="margin: 0px; text-indent: 0px;">#9  0xb315e09e in DeviceNotifier::notifyDevice (this=0x9b5ad48, name=@0x9dae9d8)</p>
<p style="margin: 0px; text-indent: 0px;">    at /var/tmp/paludis/kde-base-plasma-workspace-scm/work/plasma-workspace/plasma/applets/devicenotifier/devicenotifier.cpp:211</p>
<p style="margin: 0px; text-indent: 0px;">#10 0xb315e1da in DeviceNotifier::onSourceAdded (this=0x9b5ad48, name=@0x9dae9d8)</p>
<p style="margin: 0px; text-indent: 0px;">    at /var/tmp/paludis/kde-base-plasma-workspace-scm/work/plasma-workspace/plasma/applets/devicenotifier/devicenotifier.cpp:257</p>
<p style="margin: 0px; text-indent: 0px;">#11 0xb315f130 in DeviceNotifier::fillPreviousDevices (this=0x9b5ad48) at /var/tmp/paludis/kde-base-plasma-workspace-scm/work/plasma-workspace/plasma/applets/devicenotifier/devicenotifier.cpp:128</p>



<p style="margin: 0px; text-indent: 0px;">#12 0xb315f217 in DeviceNotifier::constraintsEvent (this=0x9b5ad48, constraints={i = -1074254176})</p>
<p style="margin: 0px; text-indent: 0px;">    at /var/tmp/paludis/kde-base-plasma-workspace-scm/work/plasma-workspace/plasma/applets/devicenotifier/devicenotifier.cpp:106</p>
<p style="margin: 0px; text-indent: 0px;">#13 0xb7efc7d9 in Plasma::Applet::flushPendingConstraintsEvents (this=0x9b5ad48) at /var/tmp/paludis/kde-base-libplasma-scm/work/libplasma/libs/plasma/applet.cpp:890</p>
<p style="margin: 0px; text-indent: 0px;">#14 0xb7f18ba7 in Plasma::Corona::loadLayout (this=0x9acd3d8, configName=@0xbff830c0) at /var/tmp/paludis/kde-base-libplasma-scm/work/libplasma/libs/plasma/corona.cpp:308</p>
<p style="margin: 0px; text-indent: 0px;">#15 0xb7f18e33 in Plasma::Corona::initializeLayout (this=0x9acd3d8, configName=@0xbff830c0) at /var/tmp/paludis/kde-base-libplasma-scm/work/libplasma/libs/plasma/corona.cpp:252</p>



<p style="margin: 0px; text-indent: 0px;">#16 0xb80459e3 in PlasmaApp::corona (this=0x99c9128) at /var/tmp/paludis/kde-base-plasma-workspace-scm/work/plasma-workspace/plasma/shells/desktop/plasmaapp.cpp:434</p>
<p style="margin: 0px; text-indent: 0px;">#17 0xb80477e8 in PlasmaApp (this=0x99c9128, display=0x99c0720, visual=161251368, colormap=98566145)</p>
<p style="margin: 0px; text-indent: 0px;">    at /var/tmp/paludis/kde-base-plasma-workspace-scm/work/plasma-workspace/plasma/shells/desktop/plasmaapp.cpp:228</p>
<p style="margin: 0px; text-indent: 0px;">#18 0xb8048105 in PlasmaApp::self () at /var/tmp/paludis/kde-base-plasma-workspace-scm/work/plasma-workspace/plasma/shells/desktop/plasmaapp.cpp:121</p>
<p style="margin: 0px; text-indent: 0px;">#19 0xb8038b11 in kdemain (argc=1, argv=0xbff83344) at /var/tmp/paludis/kde-base-plasma-workspace-scm/work/plasma-workspace/plasma/shells/desktop/main.cpp:55</p>
<p style="margin: 0px; text-indent: 0px;">#20 0x080487af in main (argc=162901320, argv=0x9e19bb0) at /var/tmp/paludis/kde-base-plasma-workspace-scm/work/plasma-workspace_build/plasma/shells/desktop/plasma_qgv_dummy.cpp:3</p>



<p style="margin: 0px; text-indent: 0px;">#21 0xb5bda635 in __libc_start_main () from /lib/libc.so.6</p>
<p style="margin: 0px; text-indent: 0px;">#22 0x080486f1 in _start ()</p><br clear="all"><br>-- <br>Alessandro Diaferia<br>
</div></div></div>
<br>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org" target="_blank">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
<br></blockquote></div><br><br>Thanks again..<br><br>Regards<br clear="all"><br>-- <br>Alessandro Diaferia<br>
</div>