Matlab crashes every time I close a figure, how can I fix this?

8 views (last 30 days)
My problem is that every time I close a figure, this crash is produced:
MATLAB crash file:C:\Users\MATTIA~1\AppData\Local\Temp\matlab_crash_dump.6284-1:
------------------------------------------------------------------------
Access violation detected at Thu May 28 12:29:39 2015
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Crash Mode : continue (default)
Current Graphics Driver: NVIDIA Corporation GeForce 610M/PCI/SSE2 Version 4.2.0
Default Encoding : windows-1252
Graphics card 1 : NVIDIA ( 0x10de ) NVIDIA GeForce 610M Version 8.17.12.8564
Graphics card 2 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics Family Version 8.15.10.2418
Host Name : MattiaGasparini
MATLAB Architecture : win64
MATLAB Root : C:\Program Files\MATLAB\R2015a
MATLAB Version : 8.5.0.197613 (R2015a)
OpenGL : hardware
Operating System : Microsoft Windows 7 Home Premium
Processor ID : x86 Family 6 Model 42 Stepping 7, GenuineIntel
Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : Version 6.1 (Build 7601: Service Pack 1)
Fault Count: 1
Abnormal termination:
Access violation
Register State (from fault):
RAX = 0000000000000000 RBX = 0000000008d9d5d0
RCX = 0000000008d9d5d0 RDX = 0000000000000000
RSP = 000000013840fb70 RBP = 0000000000000000
RSI = 0000000000000000 RDI = 0000000008d9d5d0
R8 = 00000000f688f9a0 R9 = 0000000000000000
R10 = 00000000f66b0360 R11 = 000001c801af0006
R12 = 0000000000000000 R13 = 000000007de286f0
R14 = 000000007de3cfe0 R15 = 0000000000000000
RIP = 000000007de79362 EFL = 00010202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x000000007de79362 C:\Windows\system32\nvoglv64.DLL+09212770 DrvPresentBuffers+00083586
[ 1] 0x000000007de3d137 C:\Windows\system32\nvoglv64.DLL+08966455 DrvCopyContext+00009799
[ 2] 0x000000007de27f67 C:\Windows\system32\nvoglv64.DLL+08879975
[ 3] 0x000000007de2897f C:\Windows\system32\nvoglv64.DLL+08882559
[ 4] 0x000000007de28a79 C:\Windows\system32\nvoglv64.DLL+08882809
[ 5] 0x000000007de3cfba C:\Windows\system32\nvoglv64.DLL+08966074 DrvCopyContext+00009418
[ 6] 0x000000007de3cfff C:\Windows\system32\nvoglv64.DLL+08966143 DrvCopyContext+00009487
[ 7] 0x00000000772487fe C:\Windows\system32\USER32.dll+00165886 GetMenuBarInfo+00000638
[ 8] 0x0000000077248755 C:\Windows\system32\USER32.dll+00165717 GetMenuBarInfo+00000469
[ 9] 0x000000007722cbae C:\Windows\system32\USER32.dll+00052142 InSendMessageEx+00000106
[ 10] 0x000000007748dae5 C:\Windows\SYSTEM32\ntdll.dll+00318181 KiUserCallbackDispatcher+00000031
[ 11] 0x000000007722cbfa C:\Windows\system32\USER32.dll+00052218 DestroyWindow+00000010
[ 12] 0x000000000a121a1e C:\Users\Mattia Gasparini\AppData\Local\Temp\jogamp_0000\file_cache
\jln3831883175509346061\jln1224411755425872083\nativewindow_win32.dll+00006686
[ 13] 0x00000000773359cd C:\Windows\system32\kernel32.dll+00088525 BaseThreadInitThunk+00000013
[ 14] 0x000000007746b981 C:\Windows\SYSTEM32\ntdll.dll+00178561 RtlUserThreadStart+00000033
I don't know what to do and I didn't found anything similar around the web. Thank you :)
  1 Comment
Peeyush
Peeyush on 1 Jun 2015
Looking at the crash logs MATLAB generated, the crash appears to be occurring in the "nvoglv64.DLL", which is a dynamically linked library from your NVidia graphics card drivers. By default MATLAB uses the OpenGL software embedded in your graphics card drivers. It is possible these crashes are in fact occurring due to graphics issues although the crash may not happen immediately.
As a troubleshooting step, you can tell MATLAB to use the OpenGL software included in the MATLAB installation to see if the crash still occurs. To do so simply execute the following command after starting MATLAB
>> opengl software
At this point, try to reproduce the crash.
If the crash still occurs, please contact MathWorks Technical Support by referring to the following link:
If the crash does not occur, it is in fact due to bugs in your graphics card drivers. At this point the best option is try upgrade to the latest drivers available in the NVidia website. Note that sometimes even the latest drivers are not bug-free. If the latest drivers in fact do not fix the crashes, please try the following workarounds:
1) Change figure renderer: You can change the renderer MATLAB uses while opening the figure by executing the following command:
>> figure('Renderer','Zbuffer')
This will open a figure using the Zbuffer renderer. Another renderer that can be used is Painters as well. To facilitate this workaround, you can set the default renderer to be other than OpenGL as follows:
>> set(0,'DefaultFigureRenderer','Zbuffer');
This will tell MATLAB it should use the Zbuffer renderer whenever it opens a new figure. Please note that Zbuffer renderer is only available in releases prior to R2014b.
2) Use software version of OpenGL: another possible workaround is to use the earlier command to use the OpenGL software within MATLAB instead of that from your drivers. Please note that you will need to execute the "opengl software" command at the beginning of each MATLAB session as the change does not carry between sessions.
To facilitate this, you can simply add the above command to your startup file. For information on this file, simply refer to the documentation page by executing the following command:
>> doc('startup')

Sign in to comment.

Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!