uqbar-project / wollok

Wollok Programming Language
GNU General Public License v3.0
60 stars 16 forks source link

Open GL Problems #1493

Open npasserini opened 6 years ago

npasserini commented 6 years ago

In some machines Wollok Game doesn't work because of missing Open GL drivers. Giving this error:

Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: OpenGL is not supported by the video driver.
at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(LwjglGraphics.java:229)
at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setupDisplay(LwjglGraphics.java:174)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:138)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:120)
Caused by: org.lwjgl.LWJGLException: Pixel format not accelerated
at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)
at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)
at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:253)
at org.lwjgl.opengl.Display.createWindow(Display.java:306)
at org.lwjgl.opengl.Display.create(Display.java:848)
at org.lwjgl.opengl.Display.create(Display.java:757)
at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(LwjglGraphics.java:220)
... 3 more
npasserini commented 6 years ago

I tried a fix for this, which can be found in branch fix-#1493-opengl-problems, but it does not work. After installing a new product with this fix, we got another error:

Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: OpenGL 2.0 or higher with the FBO extension is required. OpenGL version: 1.1.0
at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.initiateGLInstances(LwjglGraphics.java:258)
at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setupDisplay(LwjglGraphics.java:175)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:138)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:120)
npasserini commented 6 years ago

Marking this as show stopper as WGame does not work if we don't fix this.

npasserini commented 6 years ago

@Juancete ¿Vos sabés de esto?

Juancete commented 6 years ago

I really don't know about it, but i found this: https://stackoverflow.com/questions/32423629/opengl-2-0-or-higher-with-the-fbo-extension-is-required-libgdx-error

Seems to be an incompatibility between Java 1.8 and LibGDX. We have an older version of the framework. I don't know if upgrade it will bee a workaround.

PalumboN commented 5 years ago

Este año no vi este problema en ninguna máquina. @npasserini

npasserini commented 5 years ago

@51lv3str1 Lucas, te parece apuntarle a tener la versión sin libgdx para el próximo cuatri? @PalumboN qué opina?

PalumboN commented 5 years ago

:+1:

faloi commented 5 years ago

A un estudiante que usa Linux le pasó esto:

Exception in thread "LWJGL Application" java.lang.NoClassDefFoundError: Could
not initialize class org.lwjgl.Sys
at org.lwjgl.opengl.Display.(Display.java:135)

¿Estará relacionado?

PalumboN commented 5 years ago

@faloi no sé si está relacionado, pero parece que es un error de más bajo nivel que el de OpenGL. Eso le pasa al querer levantar cualquier juego? Podremos tener más info de la máquina en la que está corriendo?

faloi commented 5 years ago

El que sabe es @clombardi, él lo reportó.

isaiaslafon commented 4 years ago

I look on the github repository the branch you mention, but I couldn't find any reference to libgdx, etc on the plain text files. In which parts are the references to system settings? or that is on another level? Thxs in advance.

I tried a fix for this, which can be found in branch fix-#1493-opengl-problems, but it does not work. After installing a new product with this fix, we got another error:

Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: OpenGL 2.0 or higher with the FBO extension is required. OpenGL version: 1.1.0
at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.initiateGLInstances(LwjglGraphics.java:258)
at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setupDisplay(LwjglGraphics.java:175)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:138)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:120)
PalumboN commented 4 years ago

Entiendo que ahora se tira este error por consola cuando los drivers no se bancan libgdx:

Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: OpenGL 2.0 or higher with the FBO extension is required. OpenGL version: 1.1.0

Lo cual me parece bien. No sé si podemos evitar ese error.

@isaiaslafon si tenías ganas de jugar con esto está la versión nativa que hizo @51lv3str1 que entiendo que no tiene esta dependencia. Quizá se podría trabajar para reemplazar la versión actual por esa!

asanzo commented 4 years ago

Tengo 2 personas más con este problema. A ambes les estoy recomendando actualizar drivers, pero si no se puede, se quedan sin wollok game y sin poder hacer el TP integrador.