Error using getframe in one of my computers
조회 수: 10 (최근 30일)
이전 댓글 표시
Hi, I am doing simulations of a Shallow Water Model and making videos of they through getframe. In one computer works perfectly but in the other not. I tried to install de same Java and Matlab version of the computer that works well but the error continues to appear. I tried to use getframe(gcf) and getframe(gca), and write drawnow just before getframe but it doesnt't work. This is the complete error, thanks:
Error using getFrameImage
Problem while processing in an OutputHelper. Error making context 0x20000 current on Thread AWT-EventQueue-0, drawableWrite 0x10110bb, drawableRead 0x10110bb, werr: 0,
WindowsWGLContext [Version 4.5 (Compat profile, arb, compat[ES2, ES3, ES31], FBO, hardware) - 4.5.0 - Build 30.0.101.1371 [GL 4.5.0, vendor 30.0.101 (- Build 30.0.101.1371)],
options 0x3c03, this 0x968b34b, handle 0x20000, isShared false, jogamp.opengl.gl4.GL4bcImpl@1d86b6a8,
quirks: [NoDoubleBufferedBitmap, NoSurfacelessCtx],
Drawable: ResizeableImpl[Initialized true, realized true, texUnit 0, samples 8,
Factory jogamp.opengl.windows.wgl.WindowsWGLDrawableFactory@1167a2c4,
Handle 0x10110bb,
Caps GLCaps[wgl vid 8 arb: rgba 8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/8, sample-ext default, dbl, mono , hw, GLProfile[GL4bc/GL4bc.hw], offscr[fbo]],
fboI back 0, front 0, num 1,
FBO front read 2, FBO[name r/w 2/2, init true, bound true, size 560x420, samples 0/16, modified false/false, depth RenderAttachment[type DEPTH, format 0x81a5, samples 0,
560x420, name 0x4, obj 0x38247224], stencil null, colorbuffer attachments: 1/8, with 0 textures: [ColorAttachment[type COLOR, format 0x8058, samples 0, 560x420, name 0x3, obj
0x1af0bb27], null, null, null, null, null, null, null], msaa[null, hasSink false, dirty true], state OK, obj 0x2d071341],
FBO back write 1, FBO[name r/w 1/2, init true, bound false, size 560x420, samples 8/16, modified false/false, depth RenderAttachment[type DEPTH, format 0x81a5, samples 8,
560x420, name 0x2, obj 0x1a2a79b8], stencil null, colorbuffer attachments: 1/8, with 0 textures: [ColorAttachment[type COLOR, format 0x8058, samples 8, 560x420, name 0x1, obj
0x51cc3bf], null, null, null, null, null, null, null], msaa[ColorAttachment[type COLOR, format 0x8058, samples 0, 560x420, name 0x3, obj 0x1af0bb27], hasSink true, dirty
false], state OK, obj 0x1048d8b],
Surface GDISurface[ displayHandle 0x0
, surfaceHandle 0x10110bb
, size 560x420
, UOB[ OWNS_SURFACE | OWNS_DEVICE | WINDOW_INVISIBLE ]
, WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[obj 0x242d0593]],
idx 0], pfdID 8, ARB-Choosen true,
requested GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/8, sample-ext default, one, mono , hw, GLProfile[GL4bc/GL4bc.hw], on-scr[.]],
chosen GLCaps[wgl vid 8 arb: rgba 8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/8, sample-ext default, dbl, mono , hw, GLProfile[GL4bc/GL4bc.hw], offscr[fbo]]]
, surfaceLock <140c0bf1, 776e23f4>[count 1, qsz 0, owner <AWT-EventQueue-0>]
, GDIDummyUpstreamSurfaceHook[pixel 560x420]
, upstreamSurface false ]]]
com.mathworks.hg.util.OutputHelperProcessingException: Problem while processing in an OutputHelper. Error making context 0x20000 current on Thread AWT-EventQueue-0, drawableWrite
0x10110bb, drawableRead 0x10110bb, werr: 0, WindowsWGLContext [Version 4.5 (Compat profile, arb, compat[ES2, ES3, ES31], FBO, hardware) - 4.5.0 - Build 30.0.101.1371 [GL 4.5.0,
vendor 30.0.101 (- Build 30.0.101.1371)], options 0x3c03, this 0x968b34b, handle 0x20000, isShared false, jogamp.opengl.gl4.GL4bcImpl@1d86b6a8,
quirks: [NoDoubleBufferedBitmap, NoSurfacelessCtx],
Drawable: ResizeableImpl[Initialized true, realized true, texUnit 0, samples 8,
Factory jogamp.opengl.windows.wgl.WindowsWGLDrawableFactory@1167a2c4,
Handle 0x10110bb,
Caps GLCaps[wgl vid 8 arb: rgba 8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/8, sample-ext default, dbl, mono , hw, GLProfile[GL4bc/GL4bc.hw], offscr[fbo]],
fboI back 0, front 0, num 1,
FBO front read 2, FBO[name r/w 2/2, init true, bound true, size 560x420, samples 0/16, modified false/false, depth RenderAttachment[type DEPTH, format 0x81a5, samples 0,
560x420, name 0x4, obj 0x38247224], stencil null, colorbuffer attachments: 1/8, with 0 textures: [ColorAttachment[type COLOR, format 0x8058, samples 0, 560x420, name 0x3, obj
0x1af0bb27], null, null, null, null, null, null, null], msaa[null, hasSink false, dirty true], state OK, obj 0x2d071341],
FBO back write 1, FBO[name r/w 1/2, init true, bound false, size 560x420, samples 8/16, modified false/false, depth RenderAttachment[type DEPTH, format 0x81a5, samples 8,
560x420, name 0x2, obj 0x1a2a79b8], stencil null, colorbuffer attachments: 1/8, with 0 textures: [ColorAttachment[type COLOR, format 0x8058, samples 8, 560x420, name 0x1, obj
0x51cc3bf], null, null, null, null, null, null, null], msaa[ColorAttachment[type COLOR, format 0x8058, samples 0, 560x420, name 0x3, obj 0x1af0bb27], hasSink true, dirty
false], state OK, obj 0x1048d8b],
Surface GDISurface[ displayHandle 0x0
, surfaceHandle 0x10110bb
, size 560x420
, UOB[ OWNS_SURFACE | OWNS_DEVICE | WINDOW_INVISIBLE ]
, WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[obj 0x242d0593]],
idx 0], pfdID 8, ARB-Choosen true,
requested GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/8, sample-ext default, one, mono , hw, GLProfile[GL4bc/GL4bc.hw], on-scr[.]],
chosen GLCaps[wgl vid 8 arb: rgba 8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/8, sample-ext default, dbl, mono , hw, GLProfile[GL4bc/GL4bc.hw], offscr[fbo]]]
, surfaceLock <140c0bf1, 776e23f4>[count 1, qsz 0, owner <AWT-EventQueue-0>]
, GDIDummyUpstreamSurfaceHook[pixel 560x420]
, upstreamSurface false ]]]
at com.mathworks.hg.util.HGGetframeOutputHelper.generateOutput(HGGetframeOutputHelper.java:154)
at com.mathworks.hg.util.OutputHelper.generateOutput(OutputHelper.java:76)
at com.mathworks.hg.util.ImageGrabber.generateOutput(ImageGrabber.java:63)
at com.mathworks.hg.util.MatlabImageGrabber.generateOutput(MatlabImageGrabber.java:49)
at com.mathworks.hg.util.ImageGrabber.grab(ImageGrabber.java:32)
at com.mathworks.hg.util.MatlabImageGrabber.captureImage(MatlabImageGrabber.java:136)
Caused by: com.jogamp.opengl.GLException: Error making context 0x20000 current on Thread AWT-EventQueue-0, drawableWrite 0x10110bb, drawableRead 0x10110bb, werr: 0,
WindowsWGLContext [Version 4.5 (Compat profile, arb, compat[ES2, ES3, ES31], FBO, hardware) - 4.5.0 - Build 30.0.101.1371 [GL 4.5.0, vendor 30.0.101 (- Build 30.0.101.1371)],
options 0x3c03, this 0x968b34b, handle 0x20000, isShared false, jogamp.opengl.gl4.GL4bcImpl@1d86b6a8,
quirks: [NoDoubleBufferedBitmap, NoSurfacelessCtx],
Drawable: ResizeableImpl[Initialized true, realized true, texUnit 0, samples 8,
Factory jogamp.opengl.windows.wgl.WindowsWGLDrawableFactory@1167a2c4,
Handle 0x10110bb,
Caps GLCaps[wgl vid 8 arb: rgba 8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/8, sample-ext default, dbl, mono , hw, GLProfile[GL4bc/GL4bc.hw], offscr[fbo]],
fboI back 0, front 0, num 1,
FBO front read 2, FBO[name r/w 2/2, init true, bound true, size 560x420, samples 0/16, modified false/false, depth RenderAttachment[type DEPTH, format 0x81a5, samples 0,
560x420, name 0x4, obj 0x38247224], stencil null, colorbuffer attachments: 1/8, with 0 textures: [ColorAttachment[type COLOR, format 0x8058, samples 0, 560x420, name 0x3, obj
0x1af0bb27], null, null, null, null, null, null, null], msaa[null, hasSink false, dirty true], state OK, obj 0x2d071341],
FBO back write 1, FBO[name r/w 1/2, init true, bound false, size 560x420, samples 8/16, modified false/false, depth RenderAttachment[type DEPTH, format 0x81a5, samples 8,
560x420, name 0x2, obj 0x1a2a79b8], stencil null, colorbuffer attachments: 1/8, with 0 textures: [ColorAttachment[type COLOR, format 0x8058, samples 8, 560x420, name 0x1, obj
0x51cc3bf], null, null, null, null, null, null, null], msaa[ColorAttachment[type COLOR, format 0x8058, samples 0, 560x420, name 0x3, obj 0x1af0bb27], hasSink true, dirty
false], state OK, obj 0x1048d8b],
Surface GDISurface[ displayHandle 0x0
, surfaceHandle 0x10110bb
, size 560x420
, UOB[ OWNS_SURFACE | OWNS_DEVICE | WINDOW_INVISIBLE ]
, WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[obj 0x242d0593]],
idx 0], pfdID 8, ARB-Choosen true,
requested GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/8, sample-ext default, one, mono , hw, GLProfile[GL4bc/GL4bc.hw], on-scr[.]],
chosen GLCaps[wgl vid 8 arb: rgba 8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/8, sample-ext default, dbl, mono , hw, GLProfile[GL4bc/GL4bc.hw], offscr[fbo]]]
, surfaceLock <140c0bf1, 776e23f4>[count 1, qsz 0, owner <AWT-EventQueue-0>]
, GDIDummyUpstreamSurfaceHook[pixel 560x420]
, upstreamSurface false ]]]
at jogamp.opengl.windows.wgl.WindowsWGLContext.makeCurrentImpl(WindowsWGLContext.java:415)
at jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:834)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:642)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:580)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1263)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
at com.jogamp.opengl.awt.GLJPanel$OffscreenBackend.doPlainPaint(GLJPanel.java:2110)
at com.jogamp.opengl.awt.GLJPanel.print(GLJPanel.java:919)
at com.mathworks.hg.peer.JavaSceneServerGLJPanel.print(JavaSceneServerGLJPanel.java:134)
at javax.swing.JComponent.printAll(JComponent.java:1148)
at com.mathworks.hg.peer.HeavyweightLightweightContainerFactory$PrintHelper.printAllComponents(HeavyweightLightweightContainerFactory.java:512)
at com.mathworks.hg.peer.HeavyweightLightweightContainerFactory$FigurePanelContainerLight.printAll(HeavyweightLightweightContainerFactory.java:495)
at javax.swing.JComponent.paintChildren(JComponent.java:896)
at javax.swing.JComponent.printChildren(JComponent.java:1233)
at javax.swing.JComponent.paint(JComponent.java:1068)
at com.mathworks.hg.peer.FigureClientProxyPanel.paint(FigureClientProxyPanel.java:89)
at javax.swing.JComponent.print(JComponent.java:1202)
at javax.swing.JComponent.printAll(JComponent.java:1148)
at com.mathworks.hg.util.HGGetframeOutputHelper$1.run(HGGetframeOutputHelper.java:129)
at com.mathworks.jmi.AWTUtilities$Invoker$5$1.run(AWTUtilities.java:591)
at com.mathworks.mvm.context.ThreadContext$1.call(ThreadContext.java:76)
at com.mathworks.mvm.context.ThreadContext.callWithContext(ThreadContext.java:105)
at com.mathworks.mvm.context.ThreadContext.runWithContext(ThreadContext.java:73)
at com.mathworks.mvm.context.MvmContext.runWithContext(MvmContext.java:107)
at com.mathworks.jmi.AWTUtilities$Invoker$5.runWithOutput(AWTUtilities.java:588)
at com.mathworks.jmi.AWTUtilities$Invoker$2.watchedRun(AWTUtilities.java:475)
at com.mathworks.jmi.AWTUtilities$WatchedRunnable.run(AWTUtilities.java:436)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Error in matlab.graphics.internal.getframeWithDecorations>getJavaFrameWithDecorations (line 57)
cdata = getFrameImage(c, withDecorations);
Error in matlab.graphics.internal.getframeWithDecorations (line 29)
cdata = getJavaFrameWithDecorations(f, withDecorations);
Error in alternateGetframe
Error in getframe (line 61)
x = alternateGetframe(parentFig, offsetRect, scaledOffsetRect, includeDecorations, true, h, offsetRectSpecified);
Error in gravitywaveEarthElipsoidalZONALWINDS (line 485)
frame = getframe(gca);%animation code %probar cambiar gcf por gca
댓글 수: 4
Walter Roberson
2023년 2월 6일
I suggest using automatic driver updates through https://www.intel.ca/content/www/ca/en/download-center/home.html
답변 (2개)
Himanshu
2023년 4월 26일
Hello Joel,
As per my understanding, you are facing an error while trying to use "getframe" in MATLAB. It seems that it is a graphics-related issue, and the error indicates a problem with the OpenGL context.
You can try the following steps to resolve the issue:
- Update your graphics drivers: Ensure that you have the latest graphics drivers installed for your GPU. Outdated drivers can sometimes cause problems with OpenGL. Visit your graphics card manufacturer's website to download and install the latest drivers.
- Check graphics card compatibility: Ensure that your graphics card is compatible with the version of MATLAB you are using. You can find the system requirements for your MATLAB version on the MathWorks website.
- Check for conflicting software: Some software applications might conflict with MATLAB's graphics rendering. Close any unnecessary applications while running your MATLAB simulations to see if that resolves the issue.
I hope this helps.
댓글 수: 0
laurent jalabert
2023년 10월 6일
I have same problem with
Error using getFrameImage
Problem while processing in an OutputHelper. setupPrint() not called
com.mathworks.hg.util.OutputHelperProcessingException: Problem while
processing in an OutputHelper. setupPrint() not called
at
com.mathworks.hg.util.HGGetframeOutputHelper.generateOutput(HGGetframeOutputHelper.java:154)
at
com.mathworks.hg.util.OutputHelper.generateOutput(OutputHelper.java:76)
at
com.mathworks.hg.util.ImageGrabber.generateOutput(ImageGrabber.java:63)
Mac Sonoma (newest) - Matlab 2022b update 6.
This problem never happened with previous MAC OS.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!