question

Sam avatar image
0 Likes"
Sam asked Phil BoBo edited

Flexsim Crashes when used on a second monitor

Hi Everyone.

I am running flexsim 22 and 23 on MSI GS66 Stealth laptop with an NVIDIA RTX 2080 Super with MAX Q and Intel UHD Graphics. I am running windows 11 22H2.


When I run flexsim on the primary monitor everything works well. When I open the model on the secondary display or open the 3d view on a secondary monitor, flexsim will crash.

Here is the info from event viewer.

1698197936553.png



Has anyone encountered this issue? is there anything else i can try to resolve the issue?

FlexSim 23.0.11
displaymonitorexternal
1698197936553.png (24.5 KiB)
· 2
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 Jordan Johnson ♦♦ commented ·
This sounds troubling. I haven't heard of it before. Can you describe your steps in more detail? I'm not sure what you mean by "open the model on the secondary display". Do you mean that you open a model, which opens the FlexSim application window, and then you move the application window to the second monitor, and then you get a crash? Or is it something else.

Also, can you provide the resolution settings of your two monitors? And can you provide a screenshot of the Start Page when you open FlexSim?

0 Likes 0 ·
Sam avatar image Sam Jordan Johnson ♦♦ commented ·

Hi Jordan.

I have a few updates and answers to your questions.

My second display is a 1920 X 1080 display that is connected via USB C and a dock. This issue has occurred with monitors that are connected via HDMI as well.

Scenario 1

  1. I open the flexsim application on the main monitor.
  2. I create a new model on my main monitor with flexsim 2023.
  3. I open the 3d view in flexsim application.
  4. I drag the flexsim application over to the secondary monitor.
  5. I can interact with the 3d view on the secondary monitor.
  6. I toggle to the tree view folder on the secondary monitor.
  7. I toggle back to the 3d view on the secondary display.
  8. model crashes.


Scenario 2

  1. Open Flexsim on the primary monitor.
  2. Splash screen loads.
  3. Move the application to the secondary monitor
  4. Open an new model on my secondary monitor
  5. 3d view tab cant load
  6. Model crashes.


Since this is a work PC, I have some windows rights disabled. IT Technician logged on the PC with an administrator account. He launched flex sim with admin privileges. In both scenarios the model loaded with out any issues. I think the issue is caused by the lack of privileges with my windows user account. Is there any additional tests you would like me to complete?

0 Likes 0 ·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Phil BoBo edited
Try renaming your prefs.t file for it to regenerate - the Administrator account would probably have it's own prefs.t file. Do this with FlexSim closed since FlexSim stores it again when closing. The file location is:


%APPDATA%/FlexSim/FlexSim23.0/prefs.t
· 2
5 |100000

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

Sam avatar image Sam commented ·

renaming the prefs.t file resolved the issue. Thank you.

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ commented ·

The issue is caused by the usb dock that you are using to connect your extra monitors.

If it appears in the Display adapters section of the Windows Device Manager, then Windows thinks it can provide an OpenGL graphics context. A configuration similar to this:

1698329683904.png

If the FlexSim main window opens on that monitor, then it will ask Windows for an OpenGL context from that adapter, and Windows will ask that adapter for a graphics driver as if it were an external graphics card. Because the dock isn't a graphics card, it leads to a crash in the requesting application.

I've seen this happen on one other user's system. We purchased an identical laptop and usb dock as the user, but we were unable to replicate the issue. Something in the user's system's driver software was causing Windows to think that usb dock was an external graphics card instead of a pass-through hdmi dock.

The solution is to not put the FlexSim main window on a monitor driven by the dock, or otherwise sort out the dock's drivers in Windows so that it isn't pretending to be an external graphics card.

Deleting your prefs.t file will cause FlexSim to open on your main monitor again, but if you close FlexSim while its main window is on your dock's monitor, it will save that position in your prefs.t file, causing the issue again the next time you try to open FlexSim. So you should avoid putting the FlexSim main window on a monitor driven by your external dock unless you can resolve its driver issue.

You can also uncheck "Remember FlexSim application window placement" on the Environment tab of FlexSim's Global Preferences in order to make FlexSim always open on your primary monitor.

0 Likes 0 ·
1698329683904.png (10.0 KiB)
Jeanette F avatar image
0 Likes"
Jeanette F answered Sam commented

Hello @Sam,

Please check that your Nvidia graphics card is up to date. You can see more information in the following article.

If you are still having issues please respond back with your current driver for your graphics card.

· 1
5 |100000

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

Sam avatar image Sam commented ·

Hi Jeanette,


my drivers are up to date.


1698243556261.png1698243572391.png

0 Likes 0 ·
1698243556261.png (21.5 KiB)
1698243572391.png (24.9 KiB)