# Processing OpenGL issue under Linux

**URL:** <https://discourse.processing.org/t/processing-opengl-issue-under-linux/40677>\
**Category:** Processing\
**Created:** [January 22, 2023, 6:17pm UTC](https://discourse.processing.org/t/processing-opengl-issue-under-linux/40677 "2023-01-22T18:17:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Divitiacus](https://avatars.discourse-cdn.com/v4/letter/d/848f3c/32.png) [@Divitiacus](https://discourse.processing.org/u/Divitiacus)\
**Post date:** [January 22, 2023, 6:17pm UTC](https://discourse.processing.org/t/processing-opengl-issue-under-linux/40677/1 "2023-01-22T18:17:05Z")

</div>

There seems to be a general issue with OpenGL at least since 3.5.4. under Linux. There are different threads for this and they stay mostly unresolved.  
I have the same issue and cannot use 3D in Processing after updating to Processing 4, although it worked fine in the past.

Based on what I have seen, the issue has to do with a wrong entry in GLProfile.java in jogl-all.jar, so something the developers have to address.

> **[jogl - InternalError: XXX0 profile\[2\]: GL2 -\> profileImpl GL3bc !!! not...](https://forum.jogamp.org/InternalError-XXX0-profile-2-GL2-gt-profileImpl-GL3bc-not-mapped-td4041754i20.html#a4042018)**
>
> \[Page 2\] InternalError: XXX0 profile\[2\]: GL2 -\> profileImpl GL3bc !!! not mapped. Hi, How can i resolve the issue ? Exception detail : =================== Exception in thread "main"...

This was stated already in this thread but there was no response:

> [@Processing doesnt work now](https://discourse.processing.org/t/processing-doesnt-work-now/18034):
>
> I’m using a chromebook that runs linux in a container. I downloaded processsing 3.5.3 a month ago and things worked great. I got a message today when I went to start the chromebook that an important update was being installed dont turn off. Now when I try to run processing, it says: "java.lang.InternalError: XXX0 profile[1]: GL3bc -\> profileImpl GL4bc !!! not mapped " I did the “sudo apt-get update” and sudo apt-get upgrade and some stuff downloaded but the error is still there when I try …

Any chances, that will be addressed ?

Previous reports:

> [@OpenGL Problems with P2D and P3D](https://discourse.processing.org/t/opengl-problems-with-p2d-and-p3d/39439/4):
>
> Thank you for your reply!!! The following is information and I droped ‘xxx extensions:…’ : root@firefly:~# glxinfo name of display: :0 libGL error: failed to create dri screen libGL error: failed to load driver: rockchip libGL error: failed to create dri screen libGL error: failed to load driver: rockchip display: :0 screen: 0 direct rendering: Yes server glx vendor string: SGI server glx version string: 1.4 server glx extensions: client glx vendor string: Mesa Project and SGI client glx v…

> [@P3D mode not working on Chromebook](https://discourse.processing.org/t/p3d-mode-not-working-on-chromebook/34682/3):
>
> mrchris, I feel your pain. I’m stuck with processing-2 on my chromebook linux container. I wrote quite a bit for processing-3.5.3 and then it broke and I get the similar GL mapping errors that you get. If there’s a fix, I’d like to use it too. coincidentally, I was using an RC flight simulator with an arduino interface for the transmitter over USB, called crrcsim. It worked great. I got a new update on the chromebook and now it won’t load the scenery so it just sits there stuck and flicker…

> [@Problems running P2D and P3D in 7y old laptop](https://discourse.processing.org/t/problems-running-p2d-and-p3d-in-7y-old-laptop/40057):
>
> I’d like to run Processing in an old computer (Acer ES1) with Xubuntu , but while everything seems to work fine, when I run sketches that use P2D or P3D I get the following error: InternalError: XXX0 profile[2]: GL2 -\> profileImpl GL3bc !!! not mapped This happens with Processing 4.1.1. (as well as 4.0 and 3.5.4). In my understandings the issues is about an old bug that has been solved in the recent version for most of the machines, but not for mine. I suppose the bug should be related to this…

> [@Processing doesnt work now](https://discourse.processing.org/t/processing-doesnt-work-now/18034):
>
> I’m using a chromebook that runs linux in a container. I downloaded processsing 3.5.3 a month ago and things worked great. I got a message today when I went to start the chromebook that an important update was being installed dont turn off. Now when I try to run processing, it says: "java.lang.InternalError: XXX0 profile[1]: GL3bc -\> profileImpl GL4bc !!! not mapped " I did the “sudo apt-get update” and sudo apt-get upgrade and some stuff downloaded but the error is still there when I try …

> [@\[SOLVED\] P2D/P3D sketches won't start on fresh Ubuntu 18.04 installation](https://discourse.processing.org/t/solved-p2d-p3d-sketches-wont-start-on-fresh-ubuntu-18-04-installation/3568/33):
>
> @Architector_4 given that the proposed fix (reversion) now breaks my system, can I ask if you could possibly try the following code in Processing 3.4 on your system and see if it works? The lack of bc profiles in your first error message is intriguing me. void settings() { System.setProperty("jogl.disable.openglcore", "true"); size(100, 100, P3D); } void setup() { PGraphicsOpenGL pg = (PGraphicsOpenGL)g; println(PGraphicsOpenGL.OPENGL\_VENDOR); println(PGraphicsOpenGL.OPENGL\_RENDERER…

> <https://github.com/processing/processing/issues/5476>
>
> \## Description
> Processing 3.3.7 crash at any attempt to use P2D or P3D renderer…. 
> 
> \## Expected Behavior
> No problems with 3.3.6 version on the same system, working side by side.
> 
> \## Current Behavior
> \`\`\`
> java.lang.RuntimeException: Profile GL3bc is not available on X11GraphicsDevice\[type .x11, connection :0, unitID 0, handle 0x7fccc001dae0, owner true, ResourceToolkitLock\[obj 0x449b71a5, isOwner true, \<40a4edee, 5a67b9e\>\[count 1, qsz 0, owner \<main-FPSAWTAnimator#00-Timer0\>\]\]\], but: \[GLProfile\[GLES1/GLES1.hw\], GLProfile\[GLES2/GLES3.hw\], GLProfile\[GL2ES1/GLES1.hw\], GLProfile\[GL4ES3/GLES3.hw\], GLProfile\[GL2ES2/GL3.hw\], GLProfile\[GL3/GL3.hw\], GLProfile\[GLES3/GLES3.hw\], GLProfile\[GL3/GL3.hw\], GLProfile\[GL2GL3/GL3.hw\]\]
> at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:410)
> at java.lang.Thread.run(Thread.java:748)
> \`\`\`
> \## Steps to Reproduce
> Run
> \`\`\`
> void setup() {
> size(300,200, P2D);
> }
> void draw() {
> }
> \`\`\`
> \## Your Environment
> Processing 3.3.7
> Linux Mint 18.3 64 bits
> Kernel 4.15.0-13-generic
> VGA compatible controller: Advanced Micro Devices, Inc. \[AMD/ATI\] Park \[Mobility Radeon HD 5430/5450/5470\]
> 
> \## Possible Causes / Solutions
> Any recent JOGL update?
> https://github.com/gohai/processing-glvideo/issues/46
> https://bugs.freedesktop.org/show\_bug.cgi?id=105847

---

<div class="post-metadata">

**Author:** ![div-p](https://avatars.discourse-cdn.com/v4/letter/d/ecb155/32.png) [@div-p](https://discourse.processing.org/u/div-p)\
**Post date:** [January 22, 2023, 9:53pm UTC](https://discourse.processing.org/t/processing-opengl-issue-under-linux/40677/2 "2023-01-22T21:53:04Z")

</div>

Hi [Divitiacus](https://discourse.processing.org/u/Divitiacus), a developer of JOGL told me that the problem will be fixed in the next release, even if there is a workaround (present in your first link) but I didn’t manage to solve.

I guess that, Processing developer can fix this already, otherwise I hope that when the fixed version of JOGL will be released, that will be implemented in a new Processing update.

---

<div class="post-metadata">

**Author:** ![Divitiacus](https://avatars.discourse-cdn.com/v4/letter/d/848f3c/32.png) [@Divitiacus](https://discourse.processing.org/u/Divitiacus)\
**Post date:** [January 23, 2023, 2:17am UTC](https://discourse.processing.org/t/processing-opengl-issue-under-linux/40677/3 "2023-01-23T02:17:11Z")

</div>

Thanks for the info.

---

<div class="post-metadata">

**Author:** ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Post date:** [January 24, 2023, 11:00am UTC](https://discourse.processing.org/t/processing-opengl-issue-under-linux/40677/4 "2023-01-24T11:00:36Z")

</div>

> [@div-p](#):
>
> a developer of JOGL told me that the problem will be fixed in the next release,

And how many more years is that going to be?! 😆 There hasn’t been an official release of JOGL for 8 years as far as I know, just a bunch of broken promises.

---

<div class="post-metadata">

**Author:** ![HackinHarry](https://avatars.discourse-cdn.com/v4/letter/h/3e96dc/32.png) [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Post date:** [April 16, 2023, 2:52pm UTC](https://discourse.processing.org/t/processing-opengl-issue-under-linux/40677/5 "2023-04-16T14:52:33Z")

</div>

Well, I nuked my beta channel chromebook and started fresh without beta and it was working great for a few months. I just got another chromebook update and it’s broken again. I give up. The chromebook is nice, but they keep breaking it. I read about people who still have windowsXP and they stay off the internet and abandoned updates long ago. That seems like the only way to protect something that works.
