I have been having this same issue for probably a couple months now. The crashes don’t trigger the crash reporting feature. Happens when resuming from sleep, but not every time. Desktop background is black and dock is missing. The windows key works to bring up the menu. I have been running the same two commands to get it back.
How can I see diagnostic data on this if it doesn’t trigger a crash report? I’m still novice at all this and would appreciate advice. I have an NVIDIA RTX 2060 Super running the drivers from rpm fusion. Was surprised there aren’t more complaints about this online, which makes me wonder if it’s somewhat particular to my set-up and not just a general bug, but I don’t know what the next step is to figure that out.