ATTENTIONThis 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 |
#1
|
|||
|
|||
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! |
#3
|
|||
|
|||
Shaders
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
|
||||
|
||||
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
|
|||
|
|||
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
|
|||
|
|||
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 |