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 01-02-2014
Katharina Muller Katharina Muller is offline
Flexsim User
 
Join Date: Nov 2012
Posts: 31
Downloads: 16
Uploads: 0
Thanks: 11
Thanked 6 Times in 4 Posts
Rep Power: 96
Katharina Muller is on a distinguished road
Unhappy Problem "OnPreDraw" 7.0.4

Hello everyone, happy new year!

My model was working fine and now suddenly when I run it suddenly it stops the animation and gives only error messages in the System Output. "exception: Exception caught in flexscript execution of VIEW:/active/MainPanel/BackPanel/SplitterXPane/SplitterYPane/TabPane/TabControl/Perspective>eventfunctions/OnPreDraw line 18 instruction 54. Discontinuing execution."
Then doesn't matter what I try to click or to close it, I see
"exception: size_t treewin__OnMouseMoveXX(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, TreeWin * t, int mx, int my)
ex: t->mousemove(hWnd,mx,my);exception: treewin__OnMouseMove"

I have to force FlexSim to close through TaskManager. After restarting sometimes it works for a while and then suddenly it comes again, impossible to run for longer to gather statistics. Even saving as new model or copying tree into new model did not help to resolve the issue. I have Windows 7 professional and NVidia Quadro K2000M with FlexSim 7.0.4 64bit.

Any idea what is causing these errors and something I could do to fix it? Anyone had something similar? Thank you!
Attached Images
File Type: jpg error1.jpg (635.3 KB, 74 views)
File Type: jpg error.jpg (865.1 KB, 61 views)
  #2  
Old 01-02-2014
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

Do you have shaders turned on?
  #3  
Old 01-02-2014
Katharina Muller Katharina Muller is offline
Flexsim User
 
Join Date: Nov 2012
Posts: 31
Downloads: 16
Uploads: 0
Thanks: 11
Thanked 6 Times in 4 Posts
Rep Power: 96
Katharina Muller is on a distinguished road
Default Shaders

Quote:
Originally Posted by Phil BoBo View Post
Do you have shaders turned on?
No. And I tested now, if I let the simulation run without displaying the 3D model it runs for weeks. Only when displaying the 3D animation it is messed-up suddenly. I haven't done any changes (importing shapes etc.), just adjusting some task sequences and expanding the network (some new network nodes inside a container, could that cause trouble perhaps?). It was running smoothly in 7.0.4 before.
  #4  
Old 01-02-2014
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

Something that might be model-specific would be exceptions in an object's draw code. That could be causing this type of error message and might happen at a certain point during the model run if the draw code logic is controlled by variables in the simulation.

You could send your model to Support to try to replicate the issue to determine whether it is model-specific or hardware/driver related.

If the model's draw code is fine, it might be related to the graphics driver for your graphics card. Line 18 of the Perspective's OnPreDraw is setting the shader program. If shaders are turned off, it is setting it to 0, which tells the card to not use shaders. I've seen some strange behavior with shaders on Quadros so this might be related.
  #5  
Old 01-02-2014
Katharina Muller Katharina Muller is offline
Flexsim User
 
Join Date: Nov 2012
Posts: 31
Downloads: 16
Uploads: 0
Thanks: 11
Thanked 6 Times in 4 Posts
Rep Power: 96
Katharina Muller is on a distinguished road
Default Thank you!

okay, now when I activate shaders it works. As soon as I switch off it happens again. But its okay, model/project is almost finished, so I at least I got a quick fix I was hoping for
  #6  
Old 01-04-2014
Katharina Muller Katharina Muller is offline
Flexsim User
 
Join Date: Nov 2012
Posts: 31
Downloads: 16
Uploads: 0
Thanks: 11
Thanked 6 Times in 4 Posts
Rep Power: 96
Katharina Muller is on a distinguished road
Default Re-installed

I started having same issues in other models as well while on other laptops my model ran without problems. So I decided to re-install FlexSim and now it works stable again :-)
The Following 3 Users Say Thank You to Katharina Muller For This Useful Post:
Tom David (01-07-2014)


Thread Thread Starter Forum Replies Last Post
How can you have a visual tool that has a mixture of "protected" and "no select"? thill Q&A 1 03-13-2012 12:44 AM
problem about "send to port " Vic Li Q&A 2 10-04-2008 12:42 AM
Is it possible one object comprised of the function of "combiner" and "separetor"? Vic Li Q&A 1 08-19-2008 04:41 AM
about "no select" and "show parameter window from side bar" qin tian Gripes and Goodies 3 03-21-2008 08:10 AM
"Getting Started" and "Tutorial" models for v4.01 Cliff King Product Announcements 0 12-10-2007 07:34 PM


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.