I encountered this issue today. It turns out it was caused by gnome (more specifically, the MESA GL library).
Didn’t want to waste more time on this. So I installed xfce4 and used it instead. That solved the problem.
Here are the steps:
- Install xfce4
sudo apt install xfce4 - Comment out the last two lines in /etc/xrdp/startwm.sh
- Add the following line to /etc/xrdp/startwm.sh
startxfce4 - Restart xrdp
sudo service xrdp restart