Matlab access violation on startup
古いコメントを表示
Hi,
I've recently run into a problem where Matlab suffers an access violation every time I try to start it (first section of crash log is pasted below, full log is attached). I can start Matlab with the -nojvm option just fine, but that's obviously not ideal.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000007798fb75, pid=7200, tid=7556
#
# JRE version: 6.0_17-b04
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.3-b01 mixed mode windows-amd64 )
# Problematic frame:
# C [ntdll.dll+0x4fb75]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Running Matlab 2012b (managed machine, can't update) on Windows 7 Enterprise SP1, Intel Core i7-3770. JRE version is 6.0_17-b04.
The problem started when I ran some code that called a MEX file, which crashed. I went to restart Matlab to try and figure out what inputs to the MEX file caused it to crash, but Matlab exited immediately with an access violation. I've seen a few similar questions, but I'm not sure any quite apply to my situation:
- "Matlab crashes on startup after segfault on last" - tried deleting the .xml files and offending .m file as suggested, but doesn't help.
- "How can I resolve a Java error when launching Matlab 2012a?" - no MATLAB_JAVA environment variable, so pretty sure I'm using the JVM that ships with Matlab
- "Matlab crash on startup after mex c++ segfaulting" - most similar to mine, but unfortunately no answers and unlike the question asker I hadn't very recently updated Windows or my JVM.
Does anyone have any idea how I can fix this?
The log file from the first time this happened is attached.
採用された回答
その他の回答 (1 件)
Jeovane
2021 年 5 月 29 日
0 投票
I have replaced the internal matlab jre files (at: C:\Program Files\MATLAB\R2012a\sys\java\jre\win64\jre) by the OS installed ones (from: C:\Program Files\Java\jre1.8.0_291) and it worked to me. Perhaps changing some environment variable should work too.
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!