First up, great work with this! Just started with this last week.. and damn it makes it easy.
Anyway my process is something like this:
1. Login
2. Use ProcessQueuedEvents in Update()
3. Deregister event handlers and Logout
4. Close tab
5. No profit!!! Actually it crashes the browser after a few seconds.
[Edit]
Any chance this is related to the previous crashes reported here or more likely a new 2.5 bug?
Cheers,
A.
[FIXED] IE & Firefox crash with unity 2.5
[FIXED] IE & Firefox crash with unity 2.5
Last edited by alia on 26 Mar 2009, 19:24, edited 1 time in total.
-
ThomasLund
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
Hey
Does this happen with your game, or with one of the examples/tutorials? Windows or Mac?
In general - Firefox crashes in any Unity program where a null pointer exception is thrown. Its internal exception handling sucks
If you can, try to run the game in Safari and look in the player log. It should handle the exception nicely and even report where it came from!
/Thomas
Does this happen with your game, or with one of the examples/tutorials? Windows or Mac?
In general - Firefox crashes in any Unity program where a null pointer exception is thrown. Its internal exception handling sucks
If you can, try to run the game in Safari and look in the player log. It should handle the exception nicely and even report where it came from!
/Thomas
Windows onlyThomasLund wrote:Hey
Does this happen with your game, or with one of the examples/tutorials? Windows or Mac?
Yeah i thought as much - havent been able to get any logs though.ThomasLund wrote:In general - Firefox crashes in any Unity program where a null pointer exception is thrown. Its internal exception handling sucks![]()
Yeah safari is nice.. ... and yay it crashed.. not sure what GLib is in this case... Glib/GTK?ThomasLund wrote:If you can, try to run the game in Safari and look in the player log. It should handle the exception nicely and even report where it came from!
Code: Select all
090326 11:03:50 Closing plugin window
web: shutdown player
Cleanup player
GLib: Cannot convert message: Conversion from character set 'UTF-8' to 'CP1252' is not supported
** (Safari.exe:3852): WARNING **: Aborting of threads in domain UnityRuntimeDomain timed out.
Exception unloading domain
web: shutdown finished
090326 11:04:00 loader: final cleanup
090326 11:04:00 loader: unload unity dll
090326 11:04:00 Instance 9428f3a5ccc4654e876638ed5e4cee85 shutting down
I added a Disconnect() after the Logout() and its all good.
Cheers,
Alia

Code: Select all
void OnApplicationQuit()
{
smartFox.Logout();
smartFox.Disconnect();
}
Cheers,
Alia
Last edited by alia on 26 Mar 2009, 19:42, edited 1 time in total.
-
ThomasLund
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
Do you have an onApplicationQuit() - or what it exactly is called (from top of my head). You could also add a Disconnect there.
If the tutorials work on your machine, then try to look in them and mimic what they do.
I havent tested the tutorials on a Windows with 2.5 (API released before 2.5). So would be nice to know if there is an issue there
If the tutorials work on your machine, then try to look in them and mimic what they do.
I havent tested the tutorials on a Windows with 2.5 (API released before 2.5). So would be nice to know if there is an issue there
heh i just finished editing it into my reply!ThomasLund wrote:Do you have an onApplicationQuit() - or what it exactly is called (from top of my head). You could also add a Disconnect there.
If the tutorials work on your machine, then try to look in them and mimic what they do.
I havent tested the tutorials on a Windows with 2.5 (API released before 2.5). So would be nice to know if there is an issue there
Thanks!
A.
-
ThomasLund
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden