• 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

  • 相关阅读:
    概率面试题
    机器学习概率题总结(转载)
    筛素数以及判断数是否是素数
    腾讯2019正式批春笔试题
    推荐系统架构
    文本表示与匹配
    CTR预估经典模型总结
    spark运行原理
    leetcode 字符串动态规划总结
    无向图的邻接矩阵创建代码以及深度遍历广度遍历
  • 原文地址:https://www.cnblogs.com/jsdy/p/11461460.html
Copyright © 2020-2023  润新知