createuniverses / praxis

A live coding environment based on Lua, Lisp, Forth and Io
MIT License
183 stars 10 forks source link

BadValue error from X #4

Open ScoreUnder opened 9 years ago

ScoreUnder commented 9 years ago

I have no idea how to get this working. I modprobed snd-seq to get the /dev/snd/seq device and ran the timidity command mentioned in the readme (which appeared to work & stayed running), but couldn't get praxis to run:

score@kirisame ~/src/praxis/prods/TheCave % ../../praxis
In MemoryBlock(size_t). length = 25.
In MemoryBlock(MemoryBlock&&). length = 25. Moving resource.
In ~MemoryBlock(). length = 0.
In MemoryBlock(size_t). length = 75.
In MemoryBlock(MemoryBlock&&). length = 75. Moving resource.
In MemoryBlock(const MemoryBlock&). length = 25. Copying resource.
In ~MemoryBlock(). length = 25. Deleting resource.
In ~MemoryBlock(). length = 0.
In MemoryBlock(size_t). length = 50.
In MemoryBlock(MemoryBlock&&). length = 50. Moving resource.
In MemoryBlock(const MemoryBlock&). length = 25. Copying resource.
In MemoryBlock(const MemoryBlock&). length = 75. Copying resource.
In ~MemoryBlock(). length = 25. Deleting resource.
In ~MemoryBlock(). length = 75. Deleting resource.
In ~MemoryBlock(). length = 0.
In ~MemoryBlock(). length = 25. Deleting resource.
In ~MemoryBlock(). length = 50. Deleting resource.
In ~MemoryBlock(). length = 75. Deleting resource.

Hello from the input thread.

loading CORE EXT words 
loading SEARCH & SEARCH-EXT words 
loading Johns-Hopkins locals 
loading MARKER 
loading ficl O-O extensions 
loading ficl utility classes 
loading ficl string class 
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  47
  Current serial number in output stream:  48
createuniverses commented 9 years ago

Does glxgears work?

ScoreUnder commented 9 years ago

It does. It doesn't end process when you close the window (I need to ctrl+C in the terminal afterwards), but I don't know if that's just glxgears being strange.

I've also played minecraft on that machine since the last driver update.

createuniverses commented 9 years ago

Could you give the output of doing: ldd praxis

ScoreUnder commented 9 years ago

Here's the output:

score@kirisame ~/src/praxis % ldd ./praxis
    linux-vdso.so.1 (0x0000038450616000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x000003845013a000)
    libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x000003844fea1000)
    libGL.so.1 => /usr/lib/libGL.so.1 (0x000003844fc07000)
    libGLU.so.1 => /usr/lib/libGLU.so.1 (0x000003844f986000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0x000003844f644000)
    libdl.so.2 => /usr/lib/libdl.so.2 (0x000003844f440000)
    libpthread.so.0 => /usr/lib/libpthread.so.0 (0x000003844f223000)
    libasound.so.2 => /usr/lib/libasound.so.2 (0x000003844ef28000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x000003844ec19000)
    libm.so.6 => /usr/lib/libm.so.6 (0x000003844e914000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x000003844e6fe000)
    libc.so.6 => /usr/lib/libc.so.6 (0x000003844e35b000)
    libz.so.1 => /usr/lib/libz.so.1 (0x000003844e145000)
    libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x000003844df35000)
    libpng16.so.16 => /usr/lib/libpng16.so.16 (0x000003844dcff000)
    libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x000003844daa6000)
    libexpat.so.1 => /usr/lib/libexpat.so.1 (0x000003844d87c000)
    libglapi.so.0 => /usr/lib/libglapi.so.0 (0x000003844d652000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0x000003844d440000)
    libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x000003844d23d000)
    libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x000003844d037000)
    libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 (0x000003844ce35000)
    libxcb-glx.so.0 => /usr/lib/libxcb-glx.so.0 (0x000003844cc1b000)
    libxcb-dri2.so.0 => /usr/lib/libxcb-dri2.so.0 (0x000003844ca16000)
    libxcb-dri3.so.0 => /usr/lib/libxcb-dri3.so.0 (0x000003844c813000)
    libxcb-present.so.0 => /usr/lib/libxcb-present.so.0 (0x000003844c610000)
    libxcb-randr.so.0 => /usr/lib/libxcb-randr.so.0 (0x000003844c402000)
    libxcb-xfixes.so.0 => /usr/lib/libxcb-xfixes.so.0 (0x000003844c1fa000)
    libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0x000003844bff0000)
    libxcb-shape.so.0 => /usr/lib/libxcb-shape.so.0 (0x000003844bdec000)
    libxcb-sync.so.1 => /usr/lib/libxcb-sync.so.1 (0x000003844bbe5000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0x000003844b9c3000)
    libxshmfence.so.1 => /usr/lib/libxshmfence.so.1 (0x000003844b7c0000)
    libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x000003844b5ba000)
    libdrm.so.2 => /usr/lib/libdrm.so.2 (0x000003844b3ad000)
    /lib64/ld-linux-x86-64.so.2 (0x00000384503f7000)
    librt.so.1 => /usr/lib/librt.so.1 (0x000003844b1a5000)
    libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x000003844ae97000)
    libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 (0x000003844ac79000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0x000003844aa75000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x000003844a86f000)
    libpcre.so.1 => /usr/lib/libpcre.so.1 (0x000003844a600000)

Seems relatively normal to me. It was built with qmake-qt5 && make

createuniverses commented 9 years ago

In SingleWorldConfiguration.cpp, try changline line 87 from: glutInitDisplayMode( GLUT_RGB | GLUT_SINGLE | GLUT_DEPTH | GLUT_OFFSCREEN | GLUT_STENCIL ); to: glutInitDisplayMode( GLUT_RGB | GLUT_SINGLE | GLUT_DEPTH );

ScoreUnder commented 9 years ago

This leaves a black window floating around, but the software itself works.

The glutinitdisplaymode man page says this:

GLUT_OFFSCREEN windows do not work with nVidia cards/drivers. (Both Win32 and X11)

I am using a nvidia card, so that is probably the reason.

createuniverses commented 9 years ago

Try running praxis from within TextureTest, you'll see the textures being generated :)