简体   繁体   中英

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 operation) 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 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM