Can you post the script?
When you say the script 'crashes', what do you mean? It hangs, goes into a ,n infinite loop, crashes Filemaker, doesn't give you the result you expect...?
I have started ripping out script steps. It seems that the 'restore page setup' script step causes the crash.
However, a second try still crashes FM.
the script :
go to layout
go to original layout
Not really complex i'd say.
Run a recover on the file and see if a recovered copy has the same issue. Not only could damage to your file cause the crash, but the crashes you have could damage your file.
Things to keep in mind about Recover:
While Recover almost always detects and fully corrects any problems with your file...
- The recovered copy may behave differently even if recover reports "no problems found".
- Recover does not detect all problems
- Recover doesn't always fix all problems correctly
- Best Practice is to never put a recovered copy back into regular use or development. Instead, replace the damaged file with an undamaged back up copy if this is at all possible. You may have to save a clone of the back up copy and import all data from your recovered copy to get a working copy with the most up to date information possible.
And here's a knowledgebase article that you may find useful: What to do when your file is corrupt (KB5421).