On my work computer, my company gives us a way to elevate our accounts to have administrator privileges on our computers for 10 minutes at a time. I deleted all my Scilab versions (removing them from AppData>Roaming>), then elevated my privileges, and then reinstalled Scilab 2025. It installed into Program Files directory. While my account was elevated, I ran the Scilab Xcos demos. It ran the first time, but then crashed/closed when I would try running them again.
My IT guy had me open the Event Viewer and look under Windows Logs>Applications. It was capturing the following Application Error:
Faulting application name: WScilex.exe, version: 2025.1.0.0, time stamp: 0x682efb21
Faulting module name: ucrtbase.dll, version: 10.0.22621.3593, time stamp: 0x10c46e71
Exception code: 0xc0000409
Fault offset: 0x000000000007e008
Faulting process id: 0x0x4090
Faulting application start time: 0x0x1DC21C82EC23D33
Faulting application path: C:\Program Files\scilab-2025.1.0\bin\WScilex.exe
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
Report Id: ac38f84e-9d26-42a1-a74b-8b1217eaa5a0
Faulting package full name:
Faulting package-relative application ID:
He suggested that I try changing & running the WScilex.exe in compatibility mode (Properties>Compatibility). So I changed it to Windows 8, which was the latest Windows version available):
This significantly improved being able to open and run XCOS and run the demos, but did not completely eliminate the crashing/closing of Scilab/XCOS. I was able to open XCOS and build a simple diagram and run it. I was able to add to the diagram and change parameters, and it continued to run without crashing. I could change the transfer function parameters, add different sources, etc., and it would continue to work.
Then I tried running the demos. I was able to open and run about 5 or 6 of them before it would crash. Sometimes I would change the a parameter value in the demos and re-run it before opening the next demo to run. But eventually, Scilab/Xcos would crash. One particular demo that I could get it to crash regularly was the Xcos>Control Systems>Water Tank demo. I would open and run it, change the controller tuning, and run it. Change the controller setpoint and run it. I would keep doing this, but eventually after 8 to 12 runs, Scilabl/Xcos would crash.
So from the event log above, there are two lines of interest:
Faulting application path: C:\Program Files\scilab-2025.1.0\bin\WScilex.exe
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
When I did not change the compatibility mode for WScilex.exe to Windows 8, Scilab/Xcos would crash immediately, every time I tried running it. And it would generate the same error in the event log. When I changed the compatibility mode for WScilex.exe to Windows 8, it would run multiple times, but when it did crash, it would generate the same error in the event log.
So there seems to be a compatibility issue with WScilex.exe and ucrtbase.dll for Windows 11, at least for my work computer. I am flattening my home Windows machine and reinstalling Windows on it … it is currently in its 12th hour of installing. When it is done, I am going to reinstall Scilab 2025 and try running all the demos multiple times, changing parameters, seeing if I can get it to crash.