Exception Access Violation when running compiled exe on windows virtual machine

조회 수: 16 (최근 30일)
HpW
HpW 2025년 2월 17일
답변: Shlok 2025년 4월 29일
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!

답변 (1개)

Shlok
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:
  • 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.
Hope it helps.

카테고리

Help CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by