Cocos2D-X project throws "X Error of failed request: BadMatch" error

Discussion in 'Linux Virtual Machine' started by AnthonyV1, Apr 19, 2016.

  1. AnthonyV1

    AnthonyV1 Bit poster

    Messages:
    1
    I'm running Ubuntu 14.04 under Parallels 11. I'm attempting to compile and run a Cocos2D-X project. While it compiles just fine, once the application runs it throws the following error.
    Code:
    X Error of failed request: BadMatch (invalid parameter attributes)
      Major opcode of failed request: 157 (GLX)
      Minor opcode of failed request: 5 (X_GLXMakeCurrent)
      Serial number of failed request: 122
      Current serial number in output stream: 122
    I've posted this in a few other fora and it appears to be unique to Parallels. There was one other fellow that could reproduce this issue. Another user tested in a non-VM Ubuntu environment as well as a VMWare Fusion Ubuntu environment, both of which did not experience errors. The following showed up in my /var/log/Xorg.0.log file.
    Code:
    [  6542.327] (II) XKB: reuse xkmfile /var/lib/xkb/server-34CEB476A3CB596DA76FD7010A029F76732EF824.xkm
    [  6542.351] (II) PRLCONTROL: GL PBuffer(this=0x7fa6acdab620, host_pbuf=57153A74, glxId=5000006, drawId=5000005, GLXDrawablePtr=0x7fa6a93a42e0, DrawablePtr=0x7fa6abd493a0, tex_fmt=20DA, tex_tgt=20DC) created
    [  6542.357] (II) PRLCONTROL: GL PBuffer(this=0x7fa6acdab620, host_pbuf=57153A74 tex_tgt=20DC) destroyed
    To see if the issue was with MESA in general, I ran glxgears, but it ran just fine. As I understand, a BadMatch error will occur if a GLX drawable wasn't created on the same X screen and visual as a specified GLX rendering context. It can also occur if the drawable is None and the context is not NULL.

    UPDATE 04/23/2015 10:20PM:
    I've been posting in the Cocos2D-x forum regarding this issue. Another user from a few years ago had the issue on Ubuntu 12 and I grave-dug the post, relating it to Ubuntu 14. The issue most definitely has to do with Parallels' graphical incompatibility with Ubuntu. The solution is to abandon Parallels 11 for VMWare Fusion 8. DO NOT migrate your virtual machine, create a brand new one. Visit this topic on the Cocos2D-X forum.
     
    Last edited: Apr 23, 2016

Share This Page