exception with messages

sebastian_hemmannE3JAU
Collaborator Collaborator
0 Views
7 Replies
Message 1 of 8

exception with messages

sebastian_hemmannE3JAU
Collaborator
Collaborator

[ FlexSim 16.1.0 ]

Does anybody know what I´m doing wrong to get this exception:

time: 7293.078000 exception: Exception Caught in ObjectFunction238__project_library_FlexSimEventHandler_behaviour_eventfunctions_OnPreDraw object: /ConveyorSystem class: /ConveyorSystem time: 7293.078000 exception: Exception caught in TreeNode::receivemessage()time: 7293.078000 exception: EditorSpatial::prepareDraw()

The model is a bigger one and I don´t have a clue where to search.

Accepted solutions (1)
1 View
7 Replies
Replies (7)
Message 2 of 8

adrian_haws
Not applicable

@sebastian.hemmann We really can't tell either, without looking at the model. You can post your model on this question, or you can do so in a private question.

0 Likes
Message 3 of 8

sebastian_hemmannE3JAU
Collaborator
Collaborator

Hi Adrian, thanks for your fast reply. Where can I make this Question private, if I don´t want to create a new one?

0 Likes
Message 4 of 8

Sebastian,

You will need to start a new question to make it private.

img src="https://damassets.autodesk.net/content/dam/autodesk/logos/autodesk-logo-primary-rgbblack-small_forum.png" >

Brandon Peterson
Principal Technology Consultant
>
Message 5 of 8

brandon_peterson6BCRW
Autodesk
Autodesk
Accepted solution

Sebastian,

I'm 100% sure if I had the same problem or not but your message does seem similar to one that I was receiving in a previous model. It was being caused by some process model logic that was destroying the object while it was still on the conveyor. The same result would have happened if I had used code instead of the process model or if I had moved the object instead of destroying it. Basically the prepareDraw() function on the conveyor was throwing the exception when it could no longer find a flowitem that was supposed to still be on the conveyor. My fix for the problem was to simply allow the conveyor to move the object out of itself and into a queue before I destroyed it.

This maybe something that you can check for before you have to send us your model.

Good Luck,

Brandon

img src="https://damassets.autodesk.net/content/dam/autodesk/logos/autodesk-logo-primary-rgbblack-small_forum.png" >

Brandon Peterson
Principal Technology Consultant
>
Message 6 of 8

sebastian_hemmannE3JAU
Collaborator
Collaborator

Thanks for the hint. I will give it a try before I attache the model in a private post. But this will take some time because there is a lot more to check.

As far as I found out until now it seems to be not reproduceable (even not with turned on "Repeat random streams"). It also only happens if 3D view is active and it seems to depend on the Simulation runspeed.

Message 7 of 8

With the error occurring in the predraw event it is more than likely due to a missing pointer or bad math result (value == -# or 0). This could be from a bug or something that you are doing. As the predraw function is generally only called when the screen is refreshed it makes sense that it does not occur when you close the 3D view and that it is somewhat sporadic (screen refresh is somewhat random).

I would try leaving the 3D view open and running the model slow enough to ensure that the error occurs around the time in your error message. Another method that may help to reproduce the event would be to set the run speed as low as possible (maybe even zero) and then use the step button. This should get the offending event to fire and allow the screen to refresh and throw the error before the situation can be resolved.

img src="https://damassets.autodesk.net/content/dam/autodesk/logos/autodesk-logo-primary-rgbblack-small_forum.png" >

Brandon Peterson
Principal Technology Consultant
>
Message 8 of 8

javier_o
Not applicable

hola buenos dias le hablo por la siguiente razon. instale el programa flexim 7.7.4 ahora no puedo trabajar porq me aparece exception que no me aparece en pantalla los porcesos que introdusco .. por favor si me podria ayudar se lo agradesco.... gracias

0 Likes