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

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

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

serkan_tas
Hi,

How can i resolve the issue ?

Exception detail :
===================

Exception in thread "main" 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(AccessController.java:318)
        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 javax.media.j3d.JoglPipeline.initialize(JoglPipeline.java:131)
        at javax.media.j3d.Pipeline.createPipeline(Pipeline.java:92)
        at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:858)
        at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:267)
        at jMAVSimTester.TestMe.main(TestMe.java:12)


Test Code:
===================
package jMAVSimTester;

import java.awt.GraphicsConfiguration;

import com.sun.j3d.utils.universe.SimpleUniverse;

public class TestMe {

        public static void main(String[] args) {
                // TODO Auto-generated method stub

                GraphicsConfiguration gc = SimpleUniverse.getPreferredConfiguration();
               
                System.out.println(gc.toString());
        }

}


Platform
===================
Ubuntu 20.04 on parallels on Mac M1

Used Libraries
===================
from  https://jogamp.org/deployment/archive/rc/v2.4.0-rc-20210111/jar/

gluegen-rt.jar
gluegen-rt-natives-linux-aarch64.jar
j3dcore.jar
j3dutils.jar
jogl-all.jar
jogl-all-natives-linux-aarch64.jar

Thanks in advance
Reply | Threaded
Open this post in threaded view
|

Re: InternalError: XXX0 profile[2]: GL2 -> profileImpl GL3bc !!! not mapped

gouessej
Administrator
Hello

Use Virtual Box instead of Parallels or don't use a VM and it will work as expected. I won't spend any time in trying to work around limitations or bugs of OpenGL support in Parallels.

By the way, follow my tutorial for Java3D, you don't need *-natives-linux-aarch64.jar, the native libraries are extracted from jogl-all.jar and gluegen-rt.jar.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: InternalError: XXX0 profile[2]: GL2 -> profileImpl GL3bc !!! not mapped

serkan_tas
Hello,

It is your decision to spend time on whatever.

I have to use Prallels for some limitations on native support macos at least for now, that does not mean i prefer to use.

Thank you for your advises.
Reply | Threaded
Open this post in threaded view
|

Re: InternalError: XXX0 profile[2]: GL2 -> profileImpl GL3bc !!! not mapped

gouessej
Administrator
Your bug is similar to this one:
https://jogamp.org/bugzilla/show_bug.cgi?id=1357

You can try to update Mesa, which version do you use?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: InternalError: XXX0 profile[2]: GL2 -> profileImpl GL3bc !!! not mapped

serkan_tas
I checked the mesa version

parallels@ubuntu-linux-20-04-desktop:~/dev/github/jogamp/jogl$ glxinfo | grep "OpenGL version"
OpenGL version string: 3.1 Mesa 21.2.6

Than upgraded to latest

parallels@ubuntu-linux-20-04-desktop:~/dev/github/jogamp/jogl$ glxinfo | grep "OpenGL version"
libGL error: pci id for fd 4: 1ab8:0010, driver (null)
pci id for fd 5: 1ab8:0010, driver (null)
OpenGL version string: 3.1 Mesa 22.2.0-devel (git-d2ab0ed 2022-05-09 focal-oibaf-ppa)

And get the message :



libEGL warning: pci id for fd 19: 1ab8:0010, driver (null)

pci id for fd 20: 1ab8:0010, driver (null)
Exception in thread "main" 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(AccessController.java:318)
        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 javax.media.j3d.JoglPipeline.initialize(JoglPipeline.java:131)
        at javax.media.j3d.Pipeline.createPipeline(Pipeline.java:92)
        at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:858)
        at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:267)
        at jMAVSimTester.TestMe.main(TestMe.java:12)
Reply | Threaded
Open this post in threaded view
|

Re: InternalError: XXX0 profile[2]: GL2 -> profileImpl GL3bc !!! not mapped

serkan_tas
This is the code block where exception occurs :

final GLProfile _mglp = _mappedProfiles.get( profileImpl );
if( null == _mglp ) {
     // Bug 1383: We may consider allowing cross mapping here,
     // i.e. mapping on actually non-supported (implementation) profiles
     throw new InternalError("XXX0 profile["+i+"]: "+profile+" -> profileImpl "+profileImpl+" !!! not mapped ");
 }
 glProfile = new GLProfile(profile, _mglp, isHardwareRasterizer[0], false /* custom */);
 
And the stack :

no method return value
device EGLGraphicsDevice  (id=38)
desktopCtxUndef false
esCtxUndef false
isHardwareRasterizer (id=52)
defaultGLProfileAny null
defaultGLProfileHW null
_mappedProfiles HashMap<K,V>  (id=53)
i 2
profile "GL2" (id=61)
profileImpl "GL3bc" (id=60)
_mglp null
Reply | Threaded
Open this post in threaded view
|

Re: InternalError: XXX0 profile[2]: GL2 -> profileImpl GL3bc !!! not mapped

gouessej
Administrator
What's your hardware? GPU?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: InternalError: XXX0 profile[2]: GL2 -> profileImpl GL3bc !!! not mapped

serkan_tas
Macbook Apple M1 Max

10 cores CPU
32 core GPU
16 core Neural Engine
32 GB integrated memory
1 TB SSD

https://www.macrumors.com/guide/m1-max/

Reply | Threaded
Open this post in threaded view
|

Re: InternalError: XXX0 profile[2]: GL2 -> profileImpl GL3bc !!! not mapped

serkan_tas
is it sufficient or you need something different @gouessej ?


Reply | Threaded
Open this post in threaded view
|

Re: InternalError: XXX0 profile[2]: GL2 -> profileImpl GL3bc !!! not mapped

Martin
Hi,

For M1 I rather use this release https://github.com/jzy3d/jogl-maven-deployer#getting-jogl-24-rc-4-for-macos-bigsur-20211116.

Hope this can help a bit :/