Experienced the same problem, after installing Cura 4.8.0 on MacOS Big Sur 11.1. Under 'Preferences/general' I enabled the "force layer view compatibility" setting (just a guess) and did a restart. Then layer-view worked, but now x-ray didn't display anything. So I disabled above setting again and did another restart. Now everything works. Maybe just a restart would have solved it too.