With factory settings:
- Duplicate the current workspace
- Enter edit-mode
- Select the original workspace (notice edit-mode is no longer active).
- Enter vertex-paint mode.
- Assert: BLI_assert failed: mesh_data.c:445, ED_mesh_color_ensure(), at 'me->edit_btmesh == ((void *)0)'
Logic for switching workspaces needs to check object modes.