ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 08-21-2013
mearjun mearjun is offline
Flexsim User
 
Join Date: Feb 2012
Posts: 123
Downloads: 5
Uploads: 0
Thanks: 27
Thanked 19 Times in 11 Posts
Rep Power: 119
mearjun will become famous soon enough
Default Incomprehensible exception

Hello everyone. I am getting a strange exception in my model which otherwise works fine. But I cannot have this pop-up in a presentation. Kindly help me understand it:

time: 1433.640145 exception: Exception Caught in dispatchtasksequence(fsnode* tasksequence, fsnode* dispatcher DEFAULTNULL)
time: 1433.640145 exception: Exception Caught in ObjectFunction080__project_exec_commandlist_dispat chtasksequence_node object: MAIN:/project/exec/commandlist/dispatchtasksequence/node class: MAIN:/project/exec/commandlist/dispatchtasksequence/node
  #2  
Old 08-21-2013
Hao Zhou's Avatar
Hao Zhou Hao Zhou is offline
Flexsim User
 
Join Date: Sep 2010
Location: Long Beach
Posts: 66
Downloads: 56
Uploads: 0
Thanks: 78
Thanked 43 Times in 25 Posts
Rep Power: 146
Hao Zhou will become famous soon enoughHao Zhou will become famous soon enough
Default

You may pass in a invalid ts, dispatcher or te. You can search where you call this function. Put a debug point there, run the model and see what happens for this function.
The Following User Says Thank You to Hao Zhou For This Useful Post:
Jörg Vogel (08-22-2013)
  #3  
Old 09-08-2013
mearjun mearjun is offline
Flexsim User
 
Join Date: Feb 2012
Posts: 123
Downloads: 5
Uploads: 0
Thanks: 27
Thanked 19 Times in 11 Posts
Rep Power: 119
mearjun will become famous soon enough
Default

Thats the whole problem. Where is the invalid TS being passed ?
  #4  
Old 09-09-2013
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 642
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

Hello Arjun,

I think, I have read the following advices before, but I can't find them anymore.
Make your model repeatable. The thread of Cliff King will help you.
Run the simulation to get the exception.
Set a stop time previous to the exception time.
Run the simulation again.
Analyze your model.
Look in the events in the main tree.
Step to the next event in the model run dashboard.

If you use customized tasksequences, insert a tag task with an information of the object dispatching the tasksequence and creationtime. But beware of dependencies to tasksequences which use the number of tasks or a special order.
Edit:
If you know the taskexecuter throwing the exception, you can insert a tag task to every received tasksequence with the information of the receiving time in that taskexecuter. Look for the object at the next run which holds that tasksequence previous to the taskexecuter. If it isn't the dispatcher of the tasksequence, use the previous method again and insert a tag task to identify the receiving time. A place to insert a task is the Place To function of taskexecuters or dispatchers.


Jörg
  #5  
Old 09-09-2013
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

You can find exceptions easier using the Event Log (Debug > Event Log). It logs exceptions as an entry in the table. The entry immediately above the exception entry is the code where the exception happened.
The Following 2 Users Say Thank You to Phil BoBo For This Useful Post:
Steven Hamoen (09-10-2013)


Thread Thread Starter Forum Replies Last Post
Exception caught in globalcommand_savebyname mutyisi Q&A 2 12-15-2014 05:55 AM
Exception Caught Sung Kim Q&A 1 05-14-2013 11:39 AM
Strange exception Shahin Gelareh Q&A 1 04-04-2012 11:57 PM
Strange exception Shahin Gelareh Container Terminal (CT) Library 1 12-15-2011 12:48 PM
ObjectFunction Exception David Chan Q&A 5 07-17-2009 09:08 AM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.