I recently installed Scilab 2025.1.0 on a Windows 11 Enterprise (24H2) and it often crashes. Even the 2025.0.0 version has the same behavior. When running a script, Scilab (both Desk and console) closes randomly and I cannot understand the reason.
Then I installed Scilab 2025.1.0 on a different machine, with win11 home and it works perfectly.
So, I guess the problem is not the script itself (it worked even under with Scilab 5.5.2) but it is probably related to the Scilab installation, or the OS or a OS related issue.
Did you experience anything similar? Any suggestion?
I tried to install Scilab 2026.0.0 on the same win11 enterprise PC but it crashes randomly as the previous versions. The Windows “event monitor” always reports the same error, as shown in the picture below. The guilty seems to be the ucrtbase.dll library. Giving a look in the internet it comes out that a possible solution could be to update the Microsoft Visual C++ redistributable. I did this to the 14.44.35211 release but nothing change. I would say that the above mentioned library is not affected by this update.
Is there any other suggestion? Is there someone who is experiencing the same?
Reading your messages made me realize, I haven’t tested or run any Scilab code since I installed Windows 11 last month, so I did that. I ran a bunch of scripts and all of them works fine, no crash. I found an old script (2017) and with a few modifications was able to run that as well.
Since I cannot reproduce, I think you’ll have to provide more information for anybody to be able to provide you with any kind of help. The screenshot from the error itself doesn’t help in reproducing your problem.
thank you for your answer. It is difficult to give additional details because actually I have not yet clearly understood where the problem is. For example, if I run the script (with Scilab 2025.1.0) you can download at the following link, Scilab frequently crashes but never at the same “i”. Sometime it works.
The message I get in the “Microsoft event viewer” is always similar to the one in the picture above.
I would conclude that the problem is not in the script itself but rather in the Scilab installation or, most probably, in Win11. I am currently using a company PC where the Microsoft Visual C++ redistributable has been updated, but without any satisfaction.
I feel a bit lost, being unable to reproduce the error. I doubt that there could be a “bad interaction” between Scilab when running and some other software which causes the crash, but no idea how to identify it more clearly.
Your ucrtbase.dll seem more recent than mine (eg. loaded by Scilab). It may be due to a crash on Scilab C code ; it might be hard to debug without an input script. Could you try to downgrade the ucrtbase.dll ?
merci beaucoup pour vos responces!
Actually, I knew this thread and I already tried:
to set the compatibility of the Scilab executable files (both Deck and Console) to win8 as proposed, but the problem of unexpected crashes is not solved at all.
to update the “Microsoft Visual C++ redistributable” to the last version available, as suggested online to solve similar problems even for other software, but even in this case the problem persists.
I also tried to disinstall the redistributables and install older versions, but still nothing changed.
The “ucrtbase.dll” has never been affected in my PC. It always is the 10.0.26100.6899. I am not an expert but, maybe it comes with the OS installation?
Questions:
who is putting the ucrtbase library in the “.\Windows\System32” and how could I downgrade it to a desired version?
Is there any recommendation about the system requirements or packages that have to be present in win to properly run Scilab?