Java crashes upon executing Matlab

16 visualizaciones (últimos 30 días)
Tony Chan
Tony Chan el 16 de En. de 2015
Respondida: Tobias B el 13 de Dic. de 2016
I am having a Java RE crash upon running a MatLab on some laptops I am running on.
I have MatLab Compiler Runtime 8.4 installed, and the same executable works on some laptops running Windows Win 7 64-bit, and fails to run on some. It works OK on the 32-bit Win 7 machines I have access to. On the failed machines, I have tried Java RE versions 7, update 45, 71, and Java RE 8.
The following is the log. Please help.
  1. # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x5e6505b2, pid=5368, tid=6020 # # JRE version: 7.0_11-b21 # Java VM: Java HotSpot™ Client VM (23.6-b04 mixed mode windows-x86 ) # Problematic frame: # C 0x5e6505b2 DrvPresentBuffers+0x637502 # # Failed to write core dump. Minidumps are not enabled by default on client vers ions of Windows # # An error report file with more information is saved as: # C:\Users\SDDTRA~1\AppData\Local\Temp\hs_error_pid5368.log # # If you would like to submit a bug report, please visit: # http://bugreport.sun.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # Assertion failed: Fatal Java Exception. See Java Crash Report for details.
Function: void __stdcall `anonymous-namespace'::mwJavaAbort(void), file b:\matla b\src\jmi\javainit.cpp, line 1319
------------------------------------------------------------------------ Assertion detected at Fri Jan 16 11:50:43 2015 ------------------------------------------------------------------------
Configuration: Crash Decoding : Disabled Default Encoding : windows-1252 Graphics card 1 : Advanced Micro Devices, Inc. ( 0x1002 ) AMD Radeon HD 845 0G Version 12.102.1.8000 Java Crash Report : C:\Users\SDDTRA~1\AppData\Local\Temp\hs_error_pid5368.log
MATLAB Architecture: win32
MATLAB Root : C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v84
MATLAB Version : 8.4.0.150421 (R2014b)
Operating System : Microsoft Windows 7 Professional
Processor ID : x86 Family 111 Model 19 Stepping 1, AuthenticAMD
Software OpenGL : 0
Virtual Machine : Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM
) Client VM mixed mode
Window System : Version 6.1 (Build 7601: Service Pack 1)
Fault Count: 1
Assertion in void __stdcall `anonymous-namespace'::mwJavaAbort(void) at b:\matla b\src\jmi\javainit.cpp line 1319: Fatal Java Exception. See Java Crash Report for details.
Register State (captured): EAX = 7e3dc201 EBX = 7e3cc1f0 ECX = 028ae5b4 EDX = 7e365a6c ESP = 028aead4 EBP = 028aede8 ESI = 7e3dc218 EDI = 028aeb00
EIP = 7e24f5aa EFL = 00000202
CS = 00000023 DS = 0000002b SS = 028a002b
ES = b7cd002b FS = 683c0053 GS = 0000002b
Stack Trace (captured): [ 0] 0x7e24f5aa C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v84\bin\w in32\libmwfl.dll+00062890 fl::diag::thread_context::unspecified_bool+00003450 [ 1] 0x7e252cda C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v84\bin\w in32\libmwfl.dll+00077018 fl::diag::terminate+00000058 [ 2] 0x06e71b1f C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v84\bin\w in32\jmi.dll+00465695 mljShutdown+00000431 [ 3] 0x68609cf5 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v84\sys\j ava\jre\win32\jre\bin\client\jvm.dll+01547509 JVM_FindSignal+00002037 [ 4] 0x6860a8c1 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v84\sys\j ava\jre\win32\jre\bin\client\jvm.dll+01550529 JVM_FindSignal+00005057 [ 5] 0x6860e817 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v84\sys\j ava\jre\win32\jre\bin\client\jvm.dll+01566743 JVM_FindSignal+00021271 [ 6] 0x686697ec C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v84\sys\j ava\jre\win32\jre\bin\client\jvm.dll+01939436 JVM_FindSignal+00393964 [ 7] 0x685ba5a3 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v84\sys\j ava\jre\win32\jre\bin\client\jvm.dll+01222051 JVM_Clone+00301587 [ 8] 0x685ba607 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v84\sys\j ava\jre\win32\jre\bin\client\jvm.dll+01222151 JVM_Clone+00301687 [ 9] 0x6856315f C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v84\sys\j ava\jre\win32\jre\bin\client\jvm.dll+00864607 jio_fprintf+00000383 [ 10] 0x685da6b7 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v84\sys\j ava\jre\win32\jre\bin\client\jvm.dll+01353399 JVM_Clone+00432935 [ 11] 0x685da820 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v84\sys\j ava\jre\win32\jre\bin\client\jvm.dll+01353760 JVM_Clone+00433296 [ 12] 0x6860f009 C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v84\sys\j ava\jre\win32\jre\bin\client\jvm.dll+01568777 JVM_FindSignal+00023305 [ 13] 0x6840c556 C:\Windows\system32\MSVCR100.dll+00378198 end threadex+00000058 [ 14] 0x6840c600 C:\Windows\system32\MSVCR100.dll+00378368 end threadex+00000228 [ 15] 0x756e338a C:\Windows\syswow64\kernel32.dll+00078730 Bas eThreadInitThunk+00000018 [ 16] 0x77739f72 C:\Windows\SysWOW64\ntdll.dll+00237426 Rtl InitializeExceptionChain+00000099 [ 17] 0x77739f45 C:\Windows\SysWOW64\ntdll.dll+00237381 Rtl InitializeExceptionChain+00000054
If this problem is reproducible, please submit a Service Request via: http://www.mathworks.com/support/contact_us/
A technical support engineer might contact you with further information.
Thank you for your help.** This crash report has been saved to disk as C:\Users\ SDDTRA~1\AppData\Local\Temp\matlab_crash_dump.5368-1
MATLAB is exiting because of fatal error
  3 comentarios
Nils Dittmar
Nils Dittmar el 15 de Sept. de 2016
I have the same problem!!
Assertion in void __cdecl `anonymous-namespace'::mwJavaAbort(void) at b:\matlab\src\jmi\jmi\javainit.cpp line 1418: Fatal Java Exception. See Java Crash Report for details.
From the java log: # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
A also run WIN7 64.
What can I do?
Tobias B
Tobias B el 12 de Dic. de 2016
I am having an identical problem. I have a compiled GUI made in guide working properly on two windows XP 32 bit test machines, but the program throws this error when trying to run it on the machine I really need it for. Is this an OpenGL issue? I've updated .NET to 4.0, Java to 7, and this error still appears.
I made a test program that consists of the following code:
function EZtest()
fprintf('This message appears only in the console.\n');
msgbox('The script is working properly.')
I compiled this and executed it from the command prompt. I do see the message 'This message appears only in the console.'. The runtime is loading properly. But then Java crashes before the msgbox appears! What is wrong, and how do I fix it?

Iniciar sesión para comentar.

Respuestas (1)

Tobias B
Tobias B el 13 de Dic. de 2016
This problem was solved on my windows XP SP3 32 bit machine by installing the latest OpenGL drivers for my chipset. Programs executed normally, as long as no graphics objects were used. After driver update, all graphics objects execute normally with no Java crash reported.

Categorías

Más información sobre Java Package Integration en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by