I opened two database (one pgn and one sci) and 2 games from the pgn, one game from the sci and a new game. When i switch to a game which is not in the currently selected database i receive this error
(func) view
(file) ../app/app_cursor.ipp:93
(what) precondition violation: isViewOpen(id)
(type) mstl::precondition_violation_exception
=== Backtrace ============================================
app::Cursor::view(unsigned int) const [app_cursor.ipp:93]
cmdCount [tcl_view.cpp:414]
safeCall [tcl_base.cpp:764]
==========================================================
(func) view
(file) ../app/app_cursor.ipp:93
(what) precondition violation: isViewOpen(id)
(type) mstl::precondition_violation_exception
=== Backtrace ============================================
app::Cursor::view(unsigned int) const [app_cursor.ipp:93]
cmdCount [tcl_view.cpp:414]
safeCall [tcl_base.cpp:764]
==========================================================
while executing
"scidb::view::count games $base $variant $view"
(procedure "UpdateGameButtonState(list)" line 10)
invoked from within
"UpdateGameButtonState(list) $position"
(procedure "::application::board::GameSwitched" line 19) [gameSwitched] invocation failed:
::application::board::GameSwitched 3
I am not sure is this is a bug or a feature. Anyway if i select "OK" or simply close the Error Log window, then it continue to work fine.
Thanks for the report, will be fixed in version r1001.
Yes, this bug has no severe side effects. Only the change of a button state fails.