[Kst] Mysterious crash, please help!
syntheticpp at gmx.net
Tue Nov 12 08:32:52 UTC 2013
On 12.11.2013 08:36, Brisset, Nicolas wrote:
> Hi Peter,
> I don't think this is the reason. When using the datawizard to load from a large ASCII source, I get the proper feedback and I even see curves if I leave the mouse outside of the Kst Window. The crash seems to happen only when the mouse enters the Kst window (more precisely: hovers over a plot) and Kst tries to display some text in the status bar. The funny thing is, that under Windows with Qt 4.7 it does not seem to crash right away. But if I have a live source with data coming every second at some point it does also crash, and just before the crash you see two labels written in the status bar one on top of the other.
> The crash is very reproducible under openSuse 12.3 and Qt 4.8.
Yes, sounds reasonable. So maybe a multi-thread problem: setMessage() is called
from a worker thread, not the gui-thread.
You could try to connect all signals to setMessage() with Qt::QueuedConnection.
> I have attached a small ruby script which allows you to write an ASCII file in pieces to simulate a streaming source from a fixed file if you want to give it a try under Windows.
> One thing I haven't tested yet is whether it works better with Qt5.
More information about the Kst