Solution: A window marked for ext_cmdline usage is still referenced after it is already closed and freed. Solution: Unset cmdline_win when the window is closed.