could not create JOGL render

160 visualizzazioni (ultimi 30 giorni)
Dehua Kang
Dehua Kang il 4 Apr 2016
Risposto: Dehua Kang il 12 Apr 2016
I plot a function in matlab, there is no function curve except for a blank figure.Sometime there is a error printed in the command window "****could not create JOGL render---use painter How could i do when i use the default plot render which is OpenGL in matlab? Thank you

Risposte (5)

Mike Garrity
Mike Garrity il 4 Apr 2016
You can set the default renderer like this:
set(groot,'DefaultFigureRenderer','painters')
But I thought that error message was actually this:
Couldn't create JOGL canvas--using painters
And that it automatically switched to painters for you when you hit it.
Do you know why you can't get an OpenGL context? What does
opengl info
say?

Dehua Kang
Dehua Kang il 5 Apr 2016
Modificato: Walter Roberson il 8 Apr 2016
Thank you.
My opengl info as follows:
Version: '2.1 INTEL-10.14.58'
Vendor: 'Intel Inc.'
Renderer: 'Intel(R) Iris(TM) Graphics 6100'
MaxTextureSize: 16384
Visual: 'Visual (Undefined), (RGBA 32 bits (8 8 8 8), Z depth 16 b…'
Software: 'false'
HardwareSupportLevel: 'full'
SupportsGraphicsSmoothing: 1
SupportsDepthPeelTransparency: 1
SupportsAlignVertexCenters: 1
Extensions: {128x1 cell}
MaxFrameBufferSize: 16384
====
You are right. the error is :Couldn't create JOGL canvas--using painters
Before recent update of my mac and java the matlab is ok.
Last week I have updated my Mac OS to 10.11.4(15E65) and java to java version "1.8.0_65"
(Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)),
When I awake my laptop from sleep the problem occur and the message is Couldn't create JOGL canvas--using painters. I reboot my laptop and the matlab can be ok again. So I am scared the operation of letting my laptop sleep. What can I do for this? Thank you very much.

Dehua Kang
Dehua Kang il 8 Apr 2016
Modificato: Walter Roberson il 8 Apr 2016
Thank you all . The detailed information is that:
javax.media.opengl.GLException: Profile GL_DEFAULT is not available on MacOSXGraphicsDevice[type .macosx, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[]], but: []
at javax.media.opengl.GLProfile.get(GLProfile.java:962)
at javax.media.opengl.GLProfile.getDefault(GLProfile.java:693)
at javax.media.opengl.GLCapabilities.<init>(GLCapabilities.java:84)
at com.mathworks.hg.uij.OpenGLUtils$MyGLListener.getGLInformation(OpenGLUtils.java:265)
at com.mathworks.hg.uij.OpenGLUtils$MyGLListener.getGLValid(OpenGLUtils.java:430)
at com.mathworks.hg.uij.OpenGLUtils.getGLValid(OpenGLUtils.java:89)
I want to know that it is or not the update of mat OS X on 23rd March cause the problem? Thank you!
  2 Commenti
Walter Roberson
Walter Roberson il 8 Apr 2016
Which MATLAB version are you using? Are you using R2016a with an NVIDIA graphics card?
Mike Garrity
Mike Garrity il 8 Apr 2016
No, the opengl info says he's got an Intel 6100. I think that means it's a "MacBook Pro (Retina, 13-inch, Early 2015)".

Accedi per commentare.


Dehua Kang
Dehua Kang il 12 Apr 2016
Yes, I use matlab2015b on my MacBook Pro(2.7 GHz Intel Core i5,Intel Iris Graphics 6100 1536 MB) laptop. When the OS X is 10.11.3 everything is ok. On March 23 I have updated the os x to 10.11.4 and when I used matlab for a long time the plot function would encounter the problem. I restart the laptop ,plot can work correctly. I have reset my mac's NVRM,but the problem doe not go away. I am crazy...

Dehua Kang
Dehua Kang il 12 Apr 2016
When I used matlab on mac os x 10.11.4 for a long time, I plot a figure or imshow a picture the figure showed up with empty content just a blank panel. When I restart the matlab and the matlab give an error as follows:
MATLAB has experienced a low-level graphics error, and may not have drawn correctly. Read about what you can do to prevent this issue at Resolving Low-Level Graphics Issues then restart MATLAB. To share details of this issue with MathWorks technical support, please include this file with your service request. JavaSceneServerPeer problem: Couldn't create JOGL canvas--using painters
In my home directory there is an jogl.ex.7913 file. In the file is :
javax.media.opengl.GLException: Profile GL_DEFAULT is not available on MacOSXGraphicsDevice[type .macosx, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[]], but: [] at javax.media.opengl.GLProfile.get(GLProfile.java:962) at javax.media.opengl.GLProfile.getDefault(GLProfile.java:693) at javax.media.opengl.GLCapabilities.<init>(GLCapabilities.java:84) at com.mathworks.hg.uij.OpenGLUtils$MyGLListener.getGLInformation(OpenGLUtils.java:265) at com.mathworks.hg.uij.OpenGLUtils$MyGLListener.getGLValid(OpenGLUtils.java:430) at com.mathworks.hg.uij.OpenGLUtils.getGLValid(OpenGLUtils.java:89) javax.media.opengl.GLException: Profile GL_DEFAULT is not available on MacOSXGraphicsDevice[type .macosx, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[]], but: [] at javax.media.opengl.GLProfile.get(GLProfile.java:962) at javax.media.opengl.GLProfile.getDefault(GLProfile.java:693) at javax.media.opengl.GLCapabilities.<init>(GLCapabilities.java:84) at com.mathworks.hg.peer.JavaSceneServerPeer.getCaps(JavaSceneServerPeer.java:211) at com.mathworks.hg.peer.JavaSceneServerPeer.doCreateCanvas(JavaSceneServerPeer.java:758) at com.mathworks.hg.peer.JavaSceneServerPeer.access$200(JavaSceneServerPeer.java:51) at com.mathworks.hg.peer.JavaSceneServerPeer$2.run(JavaSceneServerPeer.java:735) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:738) at java.awt.EventQueue.access$300(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:699) at java.awt.EventQueue$3.run(EventQueue.java:697) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:708) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
The problem appears after my os x updated to 10.11.4 .

Categorie

Scopri di più su Graphics Performance in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by