question

Chandler avatar image
0 Likes"
Chandler asked Jeanette F commented

Display & View Errors/Bugs

I am seeing some strange things happening here, and want to know if there are documented causes for any of the following:

  1. 1. There are names of process flow objects appearing in my model window. This is persistent through restarting and resetting to the default workspace.
  2. 2. I am getting the following error repeatedly in the system console:
    1. exception: FlexScript exception: Array index out of bounds at VIEW:/active/MainPanel/BackPanel/SplitterXPane/ToolTabPane/TabControl/Toolbox/ToolsTree>eventfunctions/drawToolDelegate c: VIEW:/active/MainPanel/BackPanel/SplitterXPane/ToolTabPane/TabControl/Toolbox/ToolsTree
  3. 3. The display of the toolbox is not working correctly. (I think this may be related to the System console error)

1682954839967.png

---

I have been in and out of the model tree and creating sub-flows recently, but otherwise not doing anything that I would expect to create these errors. If sharing the model is required then I will need to create an alternate version without any of our client data and confirm that the errors are still happening. Any pointers in the right direction in the meantime would be appreciated.

FlexSim 23.1.0
system consoleerrorsdisplaybugs
1682954839967.png (775.2 KiB)
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Chandler, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

It certainly looks like the view's focus is the process flow. Reopen the default workspace. If it's the same then it looks like the model node may have been overwritten.

What things are you doing in the tree?

· 3
5 |100000

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

Chandler avatar image Chandler commented ·

Mostly browsing and looking for variables or labels that I can't see elsewhere.


Occasionally I will need to delete something from the model tree, but I don't know how these things get there. I made progress (or what I think is progress) on this issue, for example

1682968584084.png

...

(Image paste not working...)

I found in my model tree an instance of a Sub-Flow which was no longer listed in the Process Flow dropdown. That alone accounted for most of the display of these objects names in the model view.

The remaining objects that I don't expect to see are two decide objects and two source objects which also should not be in the top level of the tree. Deleting those seems to have fixed all of these issues.


0 Likes 0 ·
1682968584084.png (72.0 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Chandler commented ·

Where possible use the properties to configure standard objects and labels to customize them. Of course sometimes the relevant property does not exist - in which case variables might need to be accessed.


I'm not sure how your subflow got relocated. It's worth pointing out the danger in testing an object's location using the property 'up', where if you use = instead of == you will inadvertently change the location to the place you were trying to test for.

So

current.up==model()

can become

current.up=model()

and if current was a pointer to your subflow then it would end up in the model.

1 Like 1 ·
Chandler avatar image Chandler Jason Lightfoot ♦♦ commented ·
That could very well have happened.
0 Likes 0 ·