question

Young L avatar image
0 Likes"
Young L asked Ben Wilson answered

Flexsim Crash Dump

Hello,

Is it possible to collect information about why FlexSim was crashed using Windows WER user-mode dumps(https://learn.microsoft.com/en-us/windows/win32/wer/collecting-user-mode-dumps)? If possible, how do I enable it? I have enabled registry key, but I couldn't get any crash dumps.


Thank you.

FlexSim 23.1.4
crash
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jordan Johnson avatar image
2 Likes"
Jordan Johnson answered Ben Wilson converted comment to answer

I don't know of any code we've written for crash dumps, so I don't know if it's possible. You'd just have to try it and find out.

I did notice this on the page you linked:
"Applications that do their own custom crash reporting, including .NET applications, are not supported by this feature."

FlexSim loads the Bonsai dll, which is a .NET dll. So FlexSim might count as a .NET application.

You can create a shortcut to FlexSim that doesn't load the Bonsai dll. To do this, edit the properties of the shortcut:
1694097799142.png

The important part is the end of the target:

path\to\flexsim.exe /excludemodules Bonsai

Then using that shortcut will load FlexSim without the Bonsai module. So maybe that's what's keeping the dumps from being collected.

All that being said, I'm not sure that you'll be able to collect a dump even then, or that you'll find anything helpful in the dump.


1694097799142.png (27.7 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ben Wilson avatar image
3 Likes"
Ben Wilson answered

The cause of your crash could be a modeling error. If a particular model is always the one that crashes, and it crashes on any computer you run it on, this is probably the case. In that event follow the guide here:

https://answers.flexsim.com/answers/21145/view.html

If the issue is more a system level problem like a driver, you may find a clue to the problem by using Windows Event Viewer. In general you should make sure that you've applied all updates for your Windows OS and you've got a recent graphics driver installed. Check out HowToGeek.com's article for a primer on updating graphics drivers.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.