WorldWindJava icon indicating copy to clipboard operation
WorldWindJava copied to clipboard

Worldwind 2.2.0 XXX0 profile[2]: GL2 -> profileImpl GL3bc !!! not mapped

Open FJBDev opened this issue 4 years ago • 0 comments

Description

I get this error when I try to launch Worldwind 2.2.0 on Debian 11

java -jar worldwindx.jar 
java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at gov.nasa.worldwindx.examples.ApplicationTemplate.start(Unknown Source)
	at gov.nasa.worldwindx.examples.ApplicationTemplate.main(Unknown Source)
Caused by: java.lang.InternalError: XXX0 profile[2]: GL2 -> profileImpl GL3bc !!! not mapped 
	at com.jogamp.opengl.GLProfile.computeProfileMap(GLProfile.java:2098)
	at com.jogamp.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1976)
	at com.jogamp.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1895)
	at com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1861)
	at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80)
	at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:239)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:225)
	at com.jogamp.opengl.GLProfile.getProfileMap(GLProfile.java:2324)
	at com.jogamp.opengl.GLProfile.get(GLProfile.java:1042)
	at com.jogamp.opengl.GLProfile.get(GLProfile.java:1071)
	at com.jogamp.opengl.GLProfile.getMaxFixedFunc(GLProfile.java:824)
	at gov.nasa.worldwind.Configuration.getMaxCompatibleGLProfile(Unknown Source)
	at gov.nasa.worldwind.Configuration.getRequiredGLCapabilities(Unknown Source)
	at gov.nasa.worldwind.awt.WorldWindowGLCanvas.<init>(Unknown Source)
	at gov.nasa.worldwindx.examples.ApplicationTemplate$AppPanel.createWorldWindow(Unknown Source)
	at gov.nasa.worldwindx.examples.ApplicationTemplate$AppPanel.<init>(Unknown Source)
	at gov.nasa.worldwindx.examples.ApplicationTemplate$AppFrame.createAppPanel(Unknown Source)
	at gov.nasa.worldwindx.examples.ApplicationTemplate$AppFrame.initialize(Unknown Source)
	at gov.nasa.worldwindx.examples.ApplicationTemplate$AppFrame.<init>(Unknown Source)
	... 6 more

Steps to Reproduce

  1. Download Worldwind 2.2.0
  2. [Open a terminal and type java -jar worldwindx.jar

Expected behavior: Launch Worldwind

Actual behavior: Crash

Reproduces how often: Every time

Operating System and Version

Debian 11

Additional Information

It works fine with Worldwind 2.1.0

After hours of investigation, it seems to be an issue with the JOGL and MESA libraries when using an ATI card (see here and here)

I've tried to replace with the latest jogl jar files with no success

FJBDev avatar Aug 25 '21 18:08 FJBDev