Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 398.82
Broken: version: 2.80 (sub 49), branch: blender2.7, commit date: 2019-03-17 23:25, hash: rB9099305771ec
Short description of error
Objects remain in edit mode when the collection they are in becomes hidden. This causes a crash if you add an object in a hidden edit mode, then try to undo the change.
Exact steps for others to reproduce the error
In the default startup file, enter edit mode on the cube. While still in edit mode, disable the visibility of the main collection. Press Shift-A and add a cube. This cube will be added in the hidden edit mode, which is a bit confusing. Press Ctrl-Z to undo this change. Blender will immediately crash.