zoukankan      html  css  js  c++  java
  • ubuntu18系统 Qt Error BadAccess

    现象:在ubuntu18中报错

    X Error: BadAccess (attempt to access private resource denied) 10
      Extension:    130 (MIT-SHM)
      Minor opcode: 1 (X_ShmAttach)
      Resource id:  0x152
    2
    X Error: BadShmSeg (invalid shared segment parameter) 128
      Extension:    130 (MIT-SHM)
      Minor opcode: 5 (X_ShmCreatePixmap)
      Resource id:  0x420000d
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
      Major opcode: 62 (X_CopyArea)
      Resource id:  0x420000e
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
      Major opcode: 62 (X_CopyArea)
      Resource id:  0x420000e
    X Error: BadAccess (attempt to access private resource denied) 10
      Extension:    130 (MIT-SHM)
      Minor opcode: 1 (X_ShmAttach)
      Resource id:  0x15c
    X Error: BadShmSeg (invalid shared segment parameter) 128
      Extension:    130 (MIT-SHM)
      Minor opcode: 5 (X_ShmCreatePixmap)
      Resource id:  0x420000f
    X Error: BadPixmap (invalid Pixmap parameter) 4
      Major opcode: 54 (X_FreePixmap)
      Resource id:  0x420000e
    X Error: BadShmSeg (invalid shared segment parameter) 128
      Extension:    130 (MIT-SHM)
      Minor opcode: 2 (X_ShmDetach)
      Resource id:  0x420000d
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
      Major opcode: 62 (X_CopyArea)
      Resource id:  0x4200010
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
      Major opcode: 62 (X_CopyArea)
      Resource id:  0x4200010

    解决方案:

    1 https://blog.csdn.net/nima_zhang_b/article/details/88118665

    末尾添加  

    1 QT_X11_NO_MITSHM=1

    保存之后,运行

    1  source  /etc/environment

    参考链接:https://github.com/P0cL4bs/WiFi-Pumpkin/issues/53

    https://blog.csdn.net/nima_zhang_b/article/details/88118665

  • 相关阅读:
    cat more less 命令
    nano 命令 linux
    关于socket的知识总结
    linux进程的挂起和恢复
    find & grep 命令 in linux(转)
    ssh 免密登录
    ssh远程服务器
    c# 可以设置透明度的 Panel 组件
    Qt编写地图综合应用14-离线地图下载
    Qt编写地图综合应用13-获取边界点
  • 原文地址:https://www.cnblogs.com/jsdy/p/11461460.html
Copyright © 2011-2022 走看看