question

Pui Fong C avatar image
0 Likes"
Pui Fong C asked Pui Fong C commented

There is a lot of " FlexScript exception", cause TaskExecuter died on the road.

time: 45932.638496 exception: FlexScript exception: MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

time: 45935.396619 exception: FlexScript exception: MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

time: 45938.224027 exception: FlexScript exception: MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

time: 48618.820614 exception: FlexScript exception: Array index out of bounds at MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

time: 51672.858724 exception: FlexScript exception: Array index out of bounds at MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

time: 51714.044331 exception: FlexScript exception: Array index out of bounds at MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

time: 52061.727460 exception: FlexScript exception: Array index out of bounds at MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

time: 52330.575501 exception: FlexScript exception: Array index out of bounds at MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

time: 55834.825249 exception: FlexScript exception: Array index out of bounds at MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

time: 55876.010856 exception: FlexScript exception: Array index out of bounds at MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

time: 57701.526750 exception: FlexScript exception: Array index out of bounds at MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

time: 58780.285249 exception: FlexScript exception: Array index out of bounds at MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

time: 58821.470856 exception: FlexScript exception: Array index out of bounds at MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

time: 60121.142292 exception: FlexScript exception: MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

time: 60123.797846 exception: FlexScript exception: MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

time: 60127.453399 exception: FlexScript exception: MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

time: 60635.835379 exception: FlexScript exception: Array index out of bounds at MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

time: 26767.519596 exception: FlexScript exception: MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

time: 26838.585893 exception: FlexScript exception: MODEL:/AGVNetwork>variables/wayPoints/WayPoint_ToParking/wayPointTrigger

FlexSim 18.1.1
flexscript exception cause dead
· 7
5 |100000

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

tannerp avatar image tannerp commented ·
@Pui Fong C

For us to understand the errors, it would be helpful for you to upload your model if possible. This would allow us to see why this error is happening.

1 Like 1 ·
Pui Fong C avatar image Pui Fong C commented ·

I am sorry. Due to my company's policy. I cannot upload files. My model is using two taskexecuters to carry goods between source and sink in a "straight road". In order to prevent deadlock, I put many control points on the road and use some global variables to monitor the taskexecuters. Redirect them to parting zone once found deadlock. The phenomenon is: after running several simulation hours, there is "FlexScript exception" such as "Array index out of bounds at MODEL:/AGVNetwork>variables/" . It is found that one taskexecuter stop out of control point and become "no respond" anymore. Can you give me some hints to solve that?

1 Like 1 ·
David Chan avatar image David Chan commented ·

Pui Fong

We are unable to understand the detail of your error if there is no model here. Either you can make a simplified version of your model which it can duplicate your error, or you can submit as Private so that the support team can look into it.

Are you using Express version or full version?

David

0 Likes 0 ·
Pui Fong C avatar image Pui Fong C commented ·

@david.chan

My limitation is my company's network, which blocks all file upload. So sad..! I am using full version 2018.1.1 (1 month trial). I found the issue is due to I used the command "agv.redirect(CPX, REDIRECT_AND_CONTINUE_ON_ARRIVAL)" frequently. When it is applied on the taskexecuter being in the status "On Resource Available -> Travel to Home Location", sometime it will cause the te "dead", which without respond, cannot read "currentCP". And it will stop and block another te.

0 Likes 0 ·
Pui Fong C avatar image Pui Fong C commented ·

But I have to use the command to prevent deadlock. Any suggestion or sample in preventing deadlock using two taskexecuter in a straight road?

0 Likes 0 ·
Show more comments

1 Answer

David Chan avatar image
0 Likes"
David Chan answered Pui Fong C commented

@Pui Fong C

1. Did you use De-allocated Type as Deallocate when pass current for CP?

2. You can also set the maximum allocation to more than 1.

David

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

Pui Fong C avatar image Pui Fong C commented ·

@david.chan

1. Did you use De-allocated Type as Deallocate when pass current for CP?

Yes I did.

2. You can also set the maximum allocation to more than 1.

My model need to show two taskexecuters running without collision. So I cannot use this option.

0 Likes 0 ·
jing.c avatar image jing.c Pui Fong C commented ·

You can try to select accumulation type to "default accumulation" which can help you avoid collision with more than 1 maximum allocation.

0 Likes 0 ·