Memory corruption upon reloading project
Set up a simulation model (instrument and sample), or load a project that contains such a model. Run a simulation. Then open a project (the same or another one). The GUI will crash.
My debugger points to corrupted JobItem::batch_info(). However, the corruption may have happened anywhere else.
If the project contains an "autosave" subfolder, then the GUI crashes while showing the "Recover project" dialog. The debugger backtrace indicates that the crash happens while redrawing a QTreeView.
We have only few QTreeView%s. One of them is in JobEditor. And indeed, no more memory corruption if we comment out JobEditor::setJobItem.
After dissolving class JobEditor: Crash is caused by m_properties_model->setJobItem(new_job);
, not by m_messages_display
.
Edited by Wuttke, Joachim