Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tetris.v runtime error #6171

Closed
wpeckham opened this issue Aug 19, 2020 · 11 comments
Closed

tetris.v runtime error #6171

wpeckham opened this issue Aug 19, 2020 · 11 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@wpeckham
Copy link

V version: V 0.1.29 e6e1011

OS: Manjaro-ARM (PinebookPro) AARCH64 version 20.03
Installed glfw-x11, freetype2

What did you do?
Compiled tetris.v with no errors. Attempted to run tetris.

What did you expect to see?
A GL window with the TETRIS game, named TETRIS

What did you see instead?
gg error: GLX: failed to create GL context

Clearly, either a LIB is wrong or missing or I have done something silly.
Please point me in the right direction. When we get this error, what do we look at to find the missing or incorrect piece?
Is there and easy way to avoid this issue?

@wpeckham wpeckham added the Bug This tag is applied to issues which reports bugs. label Aug 19, 2020
@JalonSolov
Copy link
Contributor

That's almost always a problem with your video driver, and/or OpenGL support therein.

@wpeckham
Copy link
Author

wpeckham commented Aug 19, 2020 via email

@JalonSolov
Copy link
Contributor

The only "fix" might be for V to back-level the version of OpenGL it wants to use, and that could affect everyone else adversely. Hopefully one of the OpenGL gurus will take a look, but I'm not guaranteeing anything.

@wpeckham
Copy link
Author

wpeckham commented Aug 20, 2020 via email

@medvednikov
Copy link
Member

medvednikov commented Aug 20, 2020 via email

@wpeckham
Copy link
Author

wpeckham commented Aug 21, 2020 via email

@medvednikov
Copy link
Member

medvednikov commented Aug 21, 2020

Hm very weird seeing modern hardware only support OpenGL spec released in 1992, 28 years ago.

@pramoth
Copy link

pramoth commented Aug 27, 2020

I have same problem on Manjaro-ARM (PinebookPro) AARCH64 version 20.03 (V version: V 0.1.29)
It use ARM Mali-T860MP4 GPU. Which support OpenGL ES1.1/2.0/3.0, OpenCL1.2, DirectX11.1.
So I think it support GL3.0

@mozbugbox
Copy link

Mesa can do OpenGL 3.3 using CPU with soft rendering: https://docs.mesa3d.org/envvars.html .

$ LIBGL_ALWAYS_SOFTWARE=true glxinfo |grep version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Max core profile version: 3.3
    Max compat profile version: 3.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL core profile version string: 3.3 (Core Profile) Mesa 20.1.7
OpenGL core profile shading language version string: 3.30
OpenGL version string: 3.1 Mesa 20.1.7
OpenGL shading language version string: 1.40
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 20.1.7
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
    GL_EXT_separate_shader_objects, GL_EXT_shader_implicit_conversions, 

Rendering OpenGL with the CPU would be slow but should be fast enough for GUI toolkit. This can be done like:

$ LIBGL_ALWAYS_SOFTWARE=true ./tetris

@mozbugbox
Copy link

OpenGL 3.3 was required by sokol.

@IngwiePhoenix
Copy link

The issue still seems to persist: pcmacdon/jsish#36 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

No branches or pull requests

6 participants