Page 1 of 1

Simulator Issue

Posted: Sun Oct 17, 2021 6:20 pm
by madcat1212
Hi there,

Complete noobie to this platform, but am a seasoned .NET developer and Linux Sys Admin so pretty familiar with basic troubleshooting and reading source code.

I've been trying to get the simulator to run on my Windows 10 PC all afternoon. Eventually I get an error saying "Port Not Opened" thrown from the Java App (seems like this can be up to 10 minutes after trying to run the program) but I am not convinced its the port after trying to run the simulator.exe directly.
sim_output.png
sim_output.png (96.08 KiB) Viewed 3276 times
For reference here is the log of the Console.jar app:
log_output.png
log_output.png (167.27 KiB) Viewed 3276 times
I've read through the source and see that the chSysHalt is printed from the chconf.h file in the simulator in what appears to be on error. I'll admit my C/C++ is no where near as good as my Java/C#, so having a bit of trouble tracing this and maybe a little timid (though getting close) to trying to build/debug the code myself.

Anyone have any insight for me here?

Re: Simulator Issue

Posted: Sun Oct 17, 2021 6:24 pm
by AndreyB
chSysHalt sounds like something pretty fatal, looks like master simulator is FUBAR. I suspect that simulator validations is not part of continues integration :(

Maybe try pulling the source code from 6 or 12 months ago, or try simulator executable from older releases bundles those all have it?

Re: Simulator Issue

Posted: Sun Oct 17, 2021 10:32 pm
by AndreyB

Re: Simulator Issue

Posted: Mon Oct 18, 2021 2:27 pm
by madcat1212
Wow guys -- thanks for the quick PR and fix on this.

I literally just installed the C tools into Visual Studio so I could have at least had the error message printed out.

I'll pull the latest and give it a try.

Re: Simulator Issue

Posted: Mon Oct 18, 2021 6:08 pm
by mck1117
Should be fixed now! Try a fresh nightly snapshot bundle.