[Kst] Mysterious crash, please help!
Peter Kümmel
syntheticpp at gmx.net
Tue Nov 12 07:23:22 UTC 2013
On 11.11.2013 22:43, Nicolas Brisset wrote:
> 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.
Maybe statusBar() returns NULL because setMessage() is called very early.
>
> 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
>
>
>
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst
>
More information about the Kst
mailing list