For example, ```LayoutView#insert_layer``` segfaults when the tab index refers to a non-existing tab. The implementation should either issue an error or ignore such requests rather than segfault.
For example,
LayoutView#insert_layersegfaults when the tab index refers to a non-existing tab.The implementation should either issue an error or ignore such requests rather than segfault.