I found out that removing logo placeholder and the companyinfo::logo container prevented filemaker from crashing. My next question is: What script code should I use to allow FileMaker to reference logo placeholder and logo container. Help appreciated.
Your file may be damaged. Not only can file corruption be the cause of a crash, but a crash can damage your file.
First thing you need to do is run a recover on your file. If it reports a problem, replace it, if possible with a copy that does not show a problem when you run a recover on it.
Even if recover does not show a problem, there may be issues with the two image files or the layout from which you are saving a PDF. You may want to create a brand new layout for your PDF and if that still results in crashes, try creating some new copies of your two image files and inserting them into your container fields.
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).