Solved gvim gives error on remote system

This is possibly an SSH issue or a BHyve configuration issue.

I am working on a remote host running Rocky-Linux-8 (RL8) via ssh -X and am running X-window programs. I get this error while working in them:
Code:
X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  104 (X_Bell)
  Serial number of failed request:  6476
  Current serial number in output stream:  6601


A similar error occurs whenever I press the <esc> key in gvim:
Code:
BadAccess (attempt to access private resource denied)
Vim: Got X error
Vim: Finished.

The RL8 OS is running as a BHyve vm on 13.1-RELEASE-p7. sshd_config has this: X11Forwarding yes

The local host is running 12.4-RELEASE-p2. ssh_config has this: ForwardX11 yes

What is the likely cause of this? How is it fixed.
 
This appears to be related to using ssh -X. If I switch to ssh -Y then the problem appears to have been solved, so far.
 
I have experienced the same error as OP with OpenMotif-applications. Since other graphical applications work with ssh -X, I would be interested in the root cause of this problem. Does anyone have an idea?
 
Back
Top