错误如下:

ERROR: In /home/whistler/Desktop/build/VTK-8.2.0/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx, line 452
vtkXOpenGLRenderWindow (0x34ae140): bad X server connection.

解决方案:

方案一:

Xvfb :5 -screen 0 800x600x24 &
export DISPLAY=:5
glxgears 

方案二:

#pip3 install xvfbwrapperfrom xvfbwrapper import Xvfb
vdisplay = Xvfb(width=1920, height=1080)
vdisplay.start()# your codevdisplay.stop()

解决:unable to connect to X server相关推荐

  1. EKS 解决Unable to connect to the server 问题

    报错内容如下 Unable to connect to the server: getting credentials: exec plugin is configured to use API ve ...

  2. 解决: Unable to connect to zookeeper server within timeout: 5000

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 一个项目启动不起来了,报错如题: Caused by: org.I0Itec.zkclient.ex ...

  3. kubectl get node运行时出现:Unable to connect to the server: x509: certificate signed by unknown authority

    kubectl get nodes运行时出现:Unable to connect to the server: x509: certificate signed by unknown authorit ...

  4. Android 模拟器连接异常:Unable to connect to ADB server

    简介 在使用Android Studio开始的过程是,偶尔会突然出现一只在检测设备,导致无法进行运行的调试的情况,本文记录下解决方法 现象描述 在启动Android Studio后,在设备状态栏中一直 ...

  5. k8s系列之:Unable to connect to the server: x509: certificate signed by unknown authority

    k8s系列之:Unable to connect to the server: x509: certificate signed by unknown authority K8s使用kubeadm r ...

  6. 解决Can't connect to MySQL server on 'localhost' (10048)

    解决Can't connect to MySQL server on 'localhost' (10048) 您使用的是Windows操作系统,此错误与一个注册表键值TcpTimedWaitDelay ...

  7. kubesphere master节点执行kubectl get po Unable to connect to the server: Forbidden

    在kubesphere master节点上执行kubectl get po -n xx报出Unable to connect to the server: Forbidden的错误信息,但是集群整体运 ...

  8. aks Unable to connect to the server: x509

    问题: aks 执行kubectl get pods 等命令 遇到: Unable to connect to the server: x509: certificate signed by unkn ...

  9. VNC Viewer 远程 Unable to connect to VNC Server using your chosen securitysetting. 问题解决

    VNC Viewer 远程 Ubuntu桌面时(VNC服务端为Vino)可能出现以下问题: Unable to connect to VNC Server using your chosen secu ...

最新文章

  1. Python设置环境变量,改变GnomeConnectionManager的语言
  2. IOS 学习---触摸事件与手势
  3. HEOI2016/TJOI2016 字符串问题
  4. java打字母小游戏总结与收获,java:打字母小游戏demo
  5. 【面经】字节跳动后端开发视频架构方向一面二面
  6. boost::mpl模块实现front相关的测试程序
  7. 寻找一个字符串中所有重复字符的索引
  8. 卓语言对泛型类的使用
  9. apache weblogic ssl linux,apache基于ssl配置weblogic(完结篇)
  10. hadoop yarn 获取日志_Hadoop YARN日志查看方式
  11. Go 性能优化技巧 8/10 1
  12. Redis 经典 必问21问,BAT面试都会问,你会回答吗?
  13. 浅谈ViewState原理
  14. 倍福--读取控制器诊断信息
  15. 【PyG 教程】PyG 自定义构造 GNN
  16. linux公社_又一个Linux发行版宣告死亡!曾经是最好的桌面版BSD操作系统
  17. 最大似然函数,琴生不等式
  18. Arduino通过RXTX联通JAVA实现数字温度计案例
  19. Initialization failed for ‘https://start.spring.io
  20. Dell技术支持年度笑话总结

热门文章

  1. vue实现自动登录功能
  2. 微信小程序中使用wx:for,循环中绑定点击事件,对数组进行渲染
  3. 英伟达Jetson NX,AI配置。安装SDK Components
  4. 辨析BI、数据仓库、数据湖和数据中台内涵及差异点
  5. 关于中控车机与仪表互联的通讯协议和联调理解
  6. 【有利可图网】PS教程:设计扁平化相机APP图标
  7. flipclock开发手册_FlipClock
  8. [Linux] 老是记不住的Mount用法
  9. java 超长字符串处理_JAVA的StringBuffer类( 较长字符串处理时,代替String)
  10. mate10升级鸿蒙,Mate40优先升级为鸿蒙系统?华为终于回应了,粉丝高兴早了