- Upgrading your JVM to the latest version available to avoid bugs present in older builds.
- Freeing up system memory by closing unused applications, as this error is more likely to occur when the system is under memory pressure.
- In some cases, the garbage collector fails to reclaim heap space, leading to crashes. Therefore, monitor the GC behavior in the "hs_error_pid*.log" file.
- A faulty entry in the PATH variable can also cause this issue, so it's worth double-checking your environment variables.
- Ensure your virtual machine has enough allocated RAM and CPU resources, and that hardware virtualization is enabled.
Exception Access Violation when running compiled exe on windows virtual machine
17 次查看(过去 30 天)
显示 更早的评论
Hello.
I have a GUI that is compiled and runs fine on almost all computers. One coworker needs to run on a windows virtual machine. After installing the appropriate matlab runtime he gets the following error when running the exe
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fff4115696d, pid=11776, tid=0x0000000000002bf4
#
# JRE version: Java(TM) SE Runtime Environment (8.0_202-b08) (build 1.8.0_202-b08)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.202-b08 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C 0x00007fff4115696d
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\xxxx\AppData\Local\Temp\hs_error_pid11776.log
I have uploaded the .log file (as a txt file) if that is helpful
The program is compiled using r2022a
any help would be greatly appreciated
thx!
0 个评论
回答(1 个)
Shlok
2025-4-29
Hi HpW,
I understand that you are encountering an "EXCEPTION_ACCESS_VIOLATION" error. This error usually occurs when the Java Virtual Machine (JVM) attempts to access restricted or invalid memory, often due to system resource issues, outdated Java versions, or misconfigured environment settings.
The possible fixes to this error include:
Hope it helps.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 C Shared Library Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!