Hardware Simulator Interactive Mode is broken?

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Hardware Simulator Interactive Mode is broken?

HowardAbraham
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x509721f4, pid=18184, tid=0x000043d4
#
# JRE version: Java(TM) SE Runtime Environment (8.0_131-b11) (build 1.8.0_131-b11)
# Java VM: Java HotSpot(TM) Client VM (25.131-b11 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  [msvcr100.dll+0x121f4]

.
.
.

VM Arguments:
java_command: HardwareSimulatorMain
java_class_path (initial): .;C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip;.;bin/classes;bin/lib/Hack.jar;bin/lib/HackGUI.jar;bin/lib/Simulators.jar;bin/lib/SimulatorsGUI.jar;bin/lib/Compilers.jar
Launcher Type: SUN_STANDARD

Environment Variables:
CLASSPATH=.;C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip
PATH=C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\TDM-GCC-64\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;H:\Program Files\nodejs\;C:\Program Files (x86)\IDM Computer Solutions\UltraEdit\;C:\Users\Howard\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Nmap;C:\Users\Howard\AppData\Roaming\npm;h:\Program Files (x86)\Microsoft VS Code\bin
USERNAME=Howard
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 60 Stepping 3, GenuineIntel



---------------  S Y S T E M  ---------------

OS: Windows 10.0 , 64 bit Build 16215 (10.0.16215.1000)

CPU:total 4 (initial active 4) (4 cores per cpu, 1 threads per core) family 6 model 60 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, lzcnt, tsc, tscinvbit, bmi1, bmi2

Memory: 4k page, physical 16646928k(6930784k free), swap 19661584k(3106812k free)

vm_info: Java HotSpot(TM) Client VM (25.131-b11) for windows-x86 JRE (1.8.0_131-b11), built on Mar 15 2017 01:26:29 by "java_re" with MS VC++ 10.0 (VS2010)

time: Sat Jun 24 16:54:04 2017
elapsed time: 0 seconds (0d 0h 0m 0s)
Reply | Threaded
Open this post in threaded view
|

Re: Hardware Simulator Interactive Mode is broken?

ivant
It looks like you are running java 8, but are using some libraries from java 7.
Reply | Threaded
Open this post in threaded view
|

Re: Hardware Simulator Interactive Mode is broken?

HowardAbraham
I uninstalled Java and reinstalled it and got the same result.

Are you saying the hardware simulator requires version 7 of Java?
Reply | Threaded
Open this post in threaded view
|

Re: Hardware Simulator Interactive Mode is broken?

cadet1620
Administrator
Works with Java8 on Win7 for me
[D:/TECS/projects/05]
% HardwareSimulator CPU.tst
End of script - Comparison ended successfully
[D:/TECS/projects/05]
% java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
[D:/TECS/projects/05]
Google search for "java msvcr100.dll crash 0x121f4" turns up this bug report
    https://bugs.openjdk.java.net/browse/JDK-8178873
and several other reports of this crash happening with other apps.

Since this is FileChooser related it may be a startup path problem.  In the past there have been problems with old information in the *.dat files in nand2tetris/tools/bin.  (They keep track of the last oppend directory for the tools)

You might try deleting "Hardware Simulator.dat" and reruning HardwareSimulator.
Reply | Threaded
Open this post in threaded view
|

Re: Hardware Simulator Interactive Mode is broken?

ivant
In reply to this post by HowardAbraham

I was referring to this:

CLASSPATH=.;C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip
I'm not sure what it is for, but my guess is that it may cause problems because it seems to be for java 7.

Reply | Threaded
Open this post in threaded view
|

Re: Hardware Simulator Interactive Mode is broken?

HowardAbraham
I removed that from the java_class_path and renamed that directory for an added measure of prevention, but that did not solve the problem.
Reply | Threaded
Open this post in threaded view
|

Re: Hardware Simulator Interactive Mode is broken?

HowardAbraham
In reply to this post by cadet1620
The only DAT file I have is Virtual Machine Emulator.dat.  Renaming this file had no effect.
Reply | Threaded
Open this post in threaded view
|

Re: Hardware Simulator Interactive Mode is broken?

srohitdutt
In reply to this post by cadet1620
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000069e76adf, pid=6856, tid=19240
#
# JRE version: Java(TM) SE Runtime Environment (8.0_31-b13) (build 1.8.0_31-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.31-b07 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [msvcr100.dll+0x36adf]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

What can be a possible solution for this?