Klayout (v0.27.7) is crashing with the following error message when I execute the following command two times in a row:
pya.Application.instance().main_window().current_view().show_layout(layout, False)
pya.Application.instance().main_window().current_view().show_layout(layout, False)

ERROR: ../../../src/laybasic/laybasic/layCellTreeModel.cc,444,! mp_layout->under_construction () && ! (mp_layout->manager () && mp_layout->manager ()->transacting ())
ERROR: Exception caught: Internal error: ../../../src/laybasic/laybasic/layCellTreeModel.cc:444 ! mp_layout->under_construction () && ! (mp_layout->manager () && mp_layout->manager ()->transacting ()) was not true
PS: minor but.. same layers' colors keep changing each time I execute the above command, which becomes troublesome to id the layers in a dense layout