Comment 5 for bug 1743332

Revision history for this message
Lorenzo Marcantonio (l-marcantonio) wrote :

OK, it seems I was more or less on the right track. Workflow tried: open eeschema, load a schematic then the symbol editor.

Load a symbol (I tried on the 74125 since I hate that buffer for some reason) rename it, save the lib with the toolbar button.

Fun thing: it crashed when I accidentally hit the wheel and zoomed in/out.

Things I can observe from the valgrind log:

- Just *opening* the symbol editor triggers LIB_EDIT_FRAME::OnUpdateSaveLib; LIB_EDIT_FRAME::OnUpdatePartModified probably follows. This is strange in itself.

- The undo machinery (LIB_EDIT_FRAME::OnUpdateUndo) is using freed data from the part manager; ClearDeletedBuffer in SaveLibrary seems the culprit;

- All the following issues and ultimately the crash seem to come from the same data. So, just guessing, either we delete live data or we don't update the view (in this case) with the most recent one.

Hope this helps, can do other trials if needed