Fixing a crash caused by QCustomPlot's replot method in a concurrent thread
ClosedPublic

Authored by lancaster on Nov 29 2018, 3:46 AM.

Details

Summary

Fixing an intermittent crash caused by QCustomPlot's replot method
being used in a concurrent thread The reason for it is because Qt does not
support painting to GUI elements in any thread but the GUI thread and
QCustomPlot's replot method includes a repaint. So if the Histogram is
currently visible and construct histogram is run in a concurrent thread,
the program would call replot and crash.

Diff Detail

Repository
R321 KStars
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 5488
Build 5506: arc lint + arc unit
lancaster created this revision.Nov 29 2018, 3:46 AM
Restricted Application added a project: KDE Edu. · View Herald TranscriptNov 29 2018, 3:46 AM
Restricted Application added a subscriber: kde-edu. · View Herald Transcript
lancaster requested review of this revision.Nov 29 2018, 3:46 AM
mutlaqja accepted this revision.Nov 29 2018, 5:03 AM
This revision is now accepted and ready to land.Nov 29 2018, 5:03 AM
This revision was automatically updated to reflect the committed changes.