App freezes when plotting.
Issue #63
resolved
The program randomly freezes/hangs when plotting.
To force the error open a Gerber file and click on the "Re-plot all" toolbar button frequently. If more objects are being plotted, the higher the chance to trigger the problem.
This might be related to Matplotlib and threading, or with the progress bar being called unsafely from another thread (less likely).
The plotting takes considerable time, so it has to be done in a separate thread, otherwise the UI becomes unresponsive for an unacceptable amount of time.
Comments (3)
-
reporter -
reporter - marked as major
Reduced priority as the problem hasn't shown up in a while.
-
reporter - changed status to resolved
Problem has not shown up since using Qt.
- Log in to comment
Changed in
App.plot_all()
:into
This seems to reduce the probability of occurrence.
Also changed at the end of
FlatCAMGerber.plot()
:I did not make this change in the other FlatCAMObj's, but the problem seems much better even when plotting objects of other kinds.