开发者

X11 error BadRequest when running OpenGL applications

I compiled Xorg for a custom Linux I'm building for an ARM device. I'm trying to run OpenGL applications using EGL with the Qt framework but I get these errors:

X Error: BadRequest (invalid request code or no such oper开发者_StackOverflow社区ation) 1
Extension: 198 (Uknown extension)
Minor opcode: 0 (Unknown request)
Resource id: 0x600082

and this:

X Error: BadRequest (invalid request code or no such operation) 1
Extension: 160 (Uknown extension)
Minor opcode: 0 (Unknown request)
Resource id: 0x600082

repeated many times. What does this mean? How can I investigate on what is wrong? Something is drawn on the screen correctly with OpenGL, but after that everything is screwed up. It seems like something is missing in my Xorg, but I can't find anything about these extensions 198 and 160. How does one figure out what is missing or anyway what is wrong? Do I have to compile anything specific to be able to run OpenGL applications for X11? Thanks!


The extension numbers are dynamically assigned by the X server based on the extensions supported in a particular codebase and enabled in a particular configuration. To get a list of the extension name to number mappings on the current display, you can run xdpyinfo -queryExtensions | grep opcode — the opcode value listed for each one should match the extension number in Xlib error reports. If none of the extensions match, then it seems likely you've got memory corruption or are calling an extension without first verifying it's currently available in the X server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜