WSL2 X410 glx OpenGL error

在使用WSL2时,遇到了一个与OpenGL相关的X Error,错误信息显示为GLXBadContext。请求的Major opcode为147,Minor opcode为6,错误出现在尝试创建OpenGL图形上下文时。尽管可以通过以root权限运行来临时解决此问题,但该错误阻碍了正常的应用程序运行。
摘要由CSDN通过智能技术生成
  1. List item
    X Error of failed request: GLXBadContext
    Major opcode of failed request: 147 (GLX)
    Minor opcode of failed request: 6 (X_GLXIsDirect)
    Serial number of failed request: 24
    Current serial number in output stream: 23

|| OR
Got an X11ErrorHandling call display=0x55b6f26b5930 event=0x7ffcb36115a0
GLXBadContext
Major opcode: 147
Minor opcode: 6
Error code: 151
Request serial: 19
Current serial: 18
ResourceID: 8388609
Error: Unable to create OpenGL graphics context.
Got an X11ErrorHandling call display=0x55b6f26b5930 event=0x7ffcb3611630
BadValue (integer parameter out of range for operation)
Major opcode: 147
Minor opcode: 3
Error code: 2
Request serial: 18
Current serial: 19
Value: 0
GraphicsWindow has not been created successfully.
Viewer::realize() - failed to set up any windows
start: simulation.cpp:493: bool lpzrobots::Simulation::run(int, char**): Assertion `windows.size()>0’ failed.
Aborted

When it happens, running as root with sudo fixes the issue
sudo glxgears
sudo ./start

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值