**System Information**
Operating system: Linux-5.10.0-6-amd64-x86_64-with-glibc2.31 64 Bits (Debian testing)
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.73.01
But works on:
Operating system: Linux-5.10.0-6-amd64-x86_64-with-glibc2.31 64 Bits (Debian testing)
Graphics card: Mesa Intel(R) UHD Graphics 620 (WHL GT2) Intel 4.6 (Core Profile) Mesa 20.3.4
**Blender Version**
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-07-02 04:03, hash: `rB9f5c0ffb5ec2`
Worked: 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: `rB5be9ef417703`
**Short description of error**
When an object (specific ones) is set to be displayed in front of everything else, it will not come back immediately when reenabling the overlays. This happens only in solid shading mode as far as I can tell.
The objects affected by this are first off all objects which have some kind of lines, so camera, lights, the wireframes of meshes, outlines of reference images, empties, ...
Then there is also the armature which is special in the way that it is rendered solid, but it also vanishes just like the lines.
**Exact steps for others to reproduce the error**
1. Add an armature
2. set it to In Front in Armature > Viewport Display
3. toggle the viewport overlays on and off (that button next to x-ray)
4. if your rendering was set to solid shading, the armature should be gone now
5. rotate the view, the armature will reappear
6. you can do the same with the default camera and light and on the cube if wireframes are enabled (globally or locally on the cube)