question

Sebastian Hemmann avatar image
3 Likes"
Sebastian Hemmann asked Javier O answered

exception with messages

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.

FlexSim 16.1.0
conveyordecision pointsexceptionmessages
· 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.

Adrian Haws avatar image Adrian Haws commented ·

@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 0 ·
Sebastian Hemmann avatar image Sebastian Hemmann Adrian Haws commented ·

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 0 ·
Brandon Peterson avatar image Brandon Peterson ♦ Sebastian Hemmann commented ·

Sebastian,

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

2 Likes 2 ·
Brandon Peterson avatar image
4 Likes"
Brandon Peterson answered Brandon Peterson commented

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

· 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.

Sebastian Hemmann avatar image Sebastian Hemmann commented ·

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.

1 Like 1 ·
Brandon Peterson avatar image Brandon Peterson ♦ Sebastian Hemmann commented ·

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.

4 Likes 4 ·
Javier O avatar image
0 Likes"
Javier O answered

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

5 |100000

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