I have a relatively large script in GreaseMonkey and it seems to be crashing the browser after some time. It looks like it does its thing and then after a while Firefox just dies. Seems to me that this has to be connected with to my script. The page I'm modifying is google.com and I'm developing the script on Mac. What are the common causes for GM scripts crashing Firefox?
I think this is correct in so much as FF shouldn't allow GreaseMonkey to execute anything that would cause it crash, but unfortunatley that doesn't mean it won't.
Andy
2009-12-07 13:37:50
+1
A:
Look for
- memory leaks (do you add some information to an array which you keep around? Make sure you don't use global variables.)
- Endless loops (won't crash FF, though)
- There might be an interaction between your script and the one from Google. For example, Google Mail will send an AXAJ request every few seconds to look for new mail. If your script is triggered by that, that could cause problems.
Aaron Digulla
2009-12-07 13:21:52