I have not found a way to reproduce this bug other than dragging some tracks. I made a video that shows the phenomenon I am sometimes observing. But I never lost any tracks nor did kicad crash as long as I do not remove a ghost track. So usually I simply dismiss the clarify dialog and everything is fine. About the video: The "clarify selection" dialog appeared after I pressed ESC to exit the routing tool. The assert dialog appeared after I pressed DEL. After the assert dialog appeared I saved the board and this time the tracks were still there after I reopened it. The were fewer assert messages than before but none of the additional asserts were triggered. I have a core dump with lost tracks but I don't think it's useful. I cannot not use with it with gdb on another machine. This is the console output (commit 5c5b74b29): OpenGL WARNING: Buffer performance warning: Buffer object 2 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to DMA CACHED memory. [Thread 0x7fffe73ef700 (LWP 23640) exited] /data/src/kicad-source-mirror/common/view/view.cpp(374): assert "viewData->m_view == this" failed in Remove(). /data/src/kicad-source-mirror/common/dlist.cpp(175): assert "aElement && aElement->GetList() == this" failed in remove(). [New Thread 0x7fffe73ef700 (LWP 23659)] [Thread 0x7fffe73ef700 (LWP 23659) exited] Segfault after exiting: Thread 1 "kicad" received signal SIGSEGV, Segmentation fault. 0x00000000000000a1 in ?? () (gdb) (gdb) bt #0 0x00000000000000a1 in ?? () #1 0x00007fffd5796337 in PICKED_ITEMS_LIST::ClearListAndDeleteItems (this=0x6a66910) at /data/src/kicad-source-mirror/common/undo_redo_container.cpp:135 #2 0x00007fffd50dc0a1 in PCB_SCREEN::ClearUndoORRedoList (this=0x408c530, aList=..., aItemCount=-1) at /data/src/kicad-source-mirror/pcbnew/undo_redo.cpp:614 #3 0x00007fffd54fe09f in BASE_SCREEN::ClearUndoRedoList (this=0x408c530) at /data/src/kicad-source-mirror/common/base_screen.cpp:409 #4 0x00007fffd5025bf5 in PCB_EDIT_FRAME::Clear_Pcb (this=0x27f28d0, aQuery=false) at /data/src/kicad-source-mirror/pcbnew/initpcb.cpp:52 #5 0x00007fffd506d1a8 in PCB_EDIT_FRAME::OnCloseWindow (this=0x27f28d0, Event=...) at /data/src/kicad-source-mirror/pcbnew/pcb_edit_frame.cpp:717 #6 0x00007ffff648736e in wxAppConsoleBase::CallEventHandler (this=0x822890, handler=0x27f28d0, functor=..., event=...) at ../src/common/appbase.cpp:623 #7 0x00007ffff660d4d7 in wxEvtHandler::ProcessEventIfMatchesId (entry=..., handler=, event=...) at ../src/common/event.cpp:1390 #8 0x00007ffff660d5cb in wxEventHashTable::HandleEvent (this=, event=..., self=self@entry=0x27f28d0) at ../src/common/event.cpp:996 #9 0x00007ffff660d97b in wxEvtHandler::TryHereOnly (this=0x27f28d0, event=...) at ../src/common/event.cpp:1587 #10 0x00007fffd575a2f4 in EDA_BASE_FRAME::ProcessEvent (this=0x27f28d0, aEvent=...) at /data/src/kicad-source-mirror/common/eda_base_frame.cpp:194 #11 0x00007ffff660d783 in wxEvtHandler::DoTryChain (this=, event=...) at ../src/common/event.cpp:1552 #12 0x00007ffff660da65 in wxEvtHandler::ProcessEvent (this=0x27f2d38, event=...) at ../src/common/event.cpp:1493 #13 0x00007ffff660d7d7 in wxEvtHandler::SafelyProcessEvent (this=, event=...) at ../src/common/event.cpp:1611 #14 0x00007ffff6fb10ec in wxWindowBase::HandleWindowEvent (this=this@entry=0x27f28d0, event=...) at ../src/common/wincmn.cpp:1525 #15 0x00007ffff6fb13f7 in wxWindowBase::Close (this=this@entry=0x27f28d0, force=force@entry=false) at ../src/common/wincmn.cpp:589 #16 0x00007ffff6db9464 in gtk_frame_delete_callback (win=0x27f28d0) at ../src/gtk/toplevel.cpp:303 #17 0x00007ffff49c7aec in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 #18 0x00007ffff439cfa5 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #19 0x00007ffff43aefc1 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #20 0x00007ffff43b77f9 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #21 0x00007ffff43b808f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #22 0x00007ffff4adf93c in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 #23 0x00007ffff49c684d in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 #24 0x00007ffff463ac8c in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0 #25 0x00007ffff3c58197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #26 0x00007ffff3c583f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #27 0x00007ffff3c58712 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #28 0x00007ffff49c5697 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0