Sunday, July 10, 2016

solve X problem that show qt applaction with blank interface

1- when you run the application you got message like below
X Error: BadAccess (attempt to access private resource denied) 10
  Extension:    130 (MIT-SHM)
  Minor opcode: 1 (X_ShmAttach)
  Resource id:  0x3800002
X Error: BadShmSeg (invalid shared segment parameter) 128
  Extension:    130 (MIT-SHM)
  Minor opcode: 5 (X_ShmCreatePixmap)
  Resource id:  0xdd
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x380000c
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x380000c


and it show blank window like below



2- solution
 - quick solution
export QT_X11_NO_MITSHM=1 below run the application
$ export QT_X11_NO_MITSHM=1 
$ gns3

-  permanent solution
update ~/ .bashrc to include "export QT_X11_NO_MITSHM=1"  at the end of the file(without quote mark).

No comments:

Post a Comment