How to Disable "Couldn't create JOGL canvas--using painters" Message?

Whenever I use any function that involves plotting, I get the message "Couldn't create JOGL canvas--using painters". It's not a warning because it's not orange, nor is it an error because it's not red. So it's some sort of mysterious third thing.
Whatever it is, this message doesn't affect my work at all---it's just really annoying not being able to see the rest of my command window because of it. So I'd like to know if's possible to just turn the message off

 Accepted Answer

Hi Aaron,
The message "Couldn't create JOGL canvas--using painters" appears when MATLAB can't initialize OpenGL graphics properly, usually due to issues with the graphics driver or system libraries.
To resolve this, try launching MATLAB with OpenGL by running:
matlab -softwareopengl
or
matlab -softwareopenglmesa
from the Windows Command Prompt. If that helps, consider updating your graphics driver.
If you'd like to prevent the message from showing up every time MATLAB starts, you can set OpenGL as the default for all future sessions. To do that, run this in the MATLAB Command Window:
opengl('save','software')
Then restart MATLAB.
Also, check out the following link for further troubleshooting:
Hope this helps!

4 Comments

Note: As of R2025a, OpenGL is no longer used, so the opengl() command no longer has any function.
On the other hand, since OpenGL is no longer used, the messae about creating JOGL canvas should no longer occur starting in R2025a.
Thank you, the matlab -softwareopengl fixed the issue and also has made my life significantly better. The opengl('save','software') command didn't work though, so I guess my computer is weird.
Did you try running the opengl('save','software') command in the MATLAB Command Window?

Sign in to comment.

More Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Products

Release

R2022b

Tags

Asked:

on 11 Jul 2025

Commented:

on 16 Jul 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!