sidorares / node-x11

X11 node.js network protocol client
MIT License
517 stars 72 forks source link

Error in glxgears #203

Open arteze opened 2 years ago

arteze commented 2 years ago

I obtain this error at execute examples/opengl/glxgears.js.

node
Welcome to Node.js v16.3.0.
Type ".help" for more information.
> x=require("/x11njs/examples/opengl/glxgears.js")
{}
> 887

64
Error: Bad param value
    at ReadFixedRequest.callback (/x11njs/lib/xcore.js:472:29)
    at ReadFixedRequest.execute (/x11njs/lib/unpackstream.js:41:10)
    at UnpackStream.resume (/x11njs/lib/unpackstream.js:165:30)
    at UnpackStream.write (/x11njs/lib/unpackstream.js:102:10)
    at Socket.<anonymous> (/x11njs/lib/xcore.js:88:21)
    at Socket.emit (node:events:394:28)
    at Socket.emit (node:domain:532:15)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10) {
  error: 2,
  seq: 7,
  badParam: 0,
  minorOpcode: 3,
  majorOpcode: 150
}
Error: GLX: Bad context
    at ReadFixedRequest.callback (/x11njs/lib/xcore.js:472:29)
    at ReadFixedRequest.execute (/x11njs/lib/unpackstream.js:41:10)
    at UnpackStream.resume (/x11njs/lib/unpackstream.js:165:30)
    at UnpackStream.write (/x11njs/lib/unpackstream.js:102:10)
    at Socket.<anonymous> (/x11njs/lib/xcore.js:88:21)
    at Socket.emit (node:events:394:28)
    at Socket.emit (node:domain:532:15)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10) {
  error: 156,
  seq: 8,
  badParam: 0,
  minorOpcode: 5,
  majorOpcode: 150
}
Error: GLX: Bad context tag
    at ReadFixedRequest.callback (/x11njs/lib/xcore.js:472:29)
    at ReadFixedRequest.execute (/x11njs/lib/unpackstream.js:41:10)
    at UnpackStream.resume (/x11njs/lib/unpackstream.js:165:30)
    at UnpackStream.write (/x11njs/lib/unpackstream.js:102:10)
    at Socket.<anonymous> (/x11njs/lib/xcore.js:88:21)
    at Socket.emit (node:events:394:28)
    at Socket.emit (node:domain:532:15)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10) {
  error: 160,
  seq: 9,
  badParam: 35651587,
  minorOpcode: 1,
  majorOpcode: 150
}
Error: GLX: Bad context tag
    at ReadFixedRequest.callback (/x11njs/lib/xcore.js:472:29)
    at ReadFixedRequest.execute (/x11njs/lib/unpackstream.js:41:10)
    at UnpackStream.resume (/x11njs/lib/unpackstream.js:165:30)
    at UnpackStream.write (/x11njs/lib/unpackstream.js:102:10)
    at Socket.<anonymous> (/x11njs/lib/xcore.js:88:21)
    at Socket.emit (node:events:394:28)
    at Socket.emit (node:domain:532:15)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10) {
  error: 160,
  seq: 10,
  badParam: 35651587,
  minorOpcode: 104,
  majorOpcode: 150
}
Error: GLX: Bad context tag
    at ReadFixedRequest.callback (/x11njs/lib/xcore.js:472:29)
    at ReadFixedRequest.execute (/x11njs/lib/unpackstream.js:41:10)
    at UnpackStream.resume (/x11njs/lib/unpackstream.js:165:30)
    at UnpackStream.write (/x11njs/lib/unpackstream.js:102:10)
    at Socket.<anonymous> (/x11njs/lib/xcore.js:88:21)
    at Socket.emit (node:events:394:28)
    at Socket.emit (node:domain:532:15)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10) {
  error: 160,
  seq: 10,
  badParam: 35651587,
  minorOpcode: 104,
  majorOpcode: 150
}
sidorares commented 2 years ago

can you start standard glxgears on your computer? What output glxinfo -b gives to you? What is your OS and X11 version?

arteze commented 2 years ago

Yes... My system is PuppyLinux LxPup64 (Slackware).

> uname -a
Linux puppypc5078 5.7.2-lxpup64 #1 SMP Sat Jun 13 11:12:52 BST 2020 x86_64 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux

The command glxinfo return 887.

> glxinfo -b
887

Version of X11:

> xdpyinfo
name of display:    :0.0
version number:    11.0
vendor string:    The X.Org Foundation
vendor release number:    12008000
X.Org version: 1.20.8
...
sidorares commented 2 years ago

can you also check that indirect GLX is enabled? On most modern systems it's disabled by default

https://askubuntu.com/questions/745135/how-to-enable-indirect-glx-contexts-iglx-in-ubuntu-14-04-lts-with-nvidia-gfx

arteze commented 2 years ago

There was not that option, but when adding it, it does not work either.