[SOLVED] org.lwjgl.opengl.WGL on AMD RX 580

Started by robidoo, February 14, 2020, 09:08:44

Previous topic - Next topic

robidoo

Hello,
a dev of the gaiasky project https://zah.uni-heidelberg.de/institutes/ari/gaia/outreach/gaiasky/ assumes that the crash of the application might be a bug in the lwjgl in association with AMD Graphics Card ..

https://gitlab.com/langurmonkey/gaiasky/issues/326#note_288141379

I used the search option in this forum here, but did not get results according to my problem:

java.lang.NoClassDefFoundError: Could not initialize class org.lwjgl.opengl.WGL$Functions

Maybe someone can give a hint where to dig instead...

Thank you

TheMrMilchmann

Hey,
this is most likely not an issue with LWJGL but with the library's gaiasky.util.VMemInfo.ATIVRAM. Despite the class using Windows-specific functionality (WGL), it seems to be used when running on an unix-based OS based on your crash report.
The application should check which OS it's currently running on and which extensions are supported before using WGLAMDGPUAssociation (or GLXAMDGPUAssociation).

robidoo

Thank you very much for the precise analysis!

Based on your comment the dev of the gaiasky app was able to figure out the problem in the code and fixed it - works now!

:)