Crash when closing our game in WebPlayer builds

Hi,

We have a bug where unity crashes Firefox when one closes the tab that it's running in. It seems to be a null reference error, but I can't seem to find more specific information about it in the logs. Any ideas on how to track this down? Or is this a known issue that may be addressed in future versions?

Thanks, Adam

With 2.6, crashing on exit was generally a sign that you were messing up something thread based (usually not cleaning them up properly), whether it be through asynchronous sockets or your own threads

I'm guessing that it most likely won't have changed, that kind of thing should be an error regardless of the unity api used

Either way - check for any use of threads in your code, e.g. System.Timers.Timer, System.Threading, or anything with async callbacks

Thanks for the input, Mike, it pointed me to the cause: not calling MasterServer.UnregisterHost() in OnApplicationQuit(). We were mistakenly calling MasterServer.UnregisterHost() in a destructor.