[Kst] Mysterious crash, please help!

Nicolas Brisset nicolas.brisset at free.fr
Mon Nov 11 21:43:44 UTC 2013


Hi,

I have been trying to understand a crash for quite some time but I don't get it. I was trying to use the text message integrated in the mainwindow's status bar, since it prevents some ugly artefacts I have with the QLabel added manually on top. The patch seems trivial, but somehow it triggers a consistent crash in the painting code (viewitem.cpp, line 933), which I don't seem to be able to get rid of. Assuming that maybe QStatusBar's showMessage() wasn't thread-safe I added a QMutex, but even that doesn't help.
If someone could help me understand what's going on and get it to work, I'd be grateful.
When I comment out the code calling kstApp->mainwindow()->setMessage() in plotrenderitem.cpp, the crash is gone but of course I don't get the status bar display of coordinates.

The patch is attached to this mail. There are some unrelated changes on asciisource.cpp but they're not the issue.
And by the way, how do we have to wrap strings to be translated: tr() or i18n()?

Thanks,

Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: status_message.patch
Type: text/x-patch
Size: 3185 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kst/attachments/20131111/42ebff45/attachment.patch>


More information about the Kst mailing list