https://bugs.winehq.org/show_bug.cgi?id=57808
--- Comment #4 from Forest forestix@nom.one --- In case it helps track down the problem, wine-staging 9.3 prints this line 11 times instead of crashing when I switch to another VC and back again:
01e4:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4090409, 0000: semi-stub!