Async socket in web player crashing browser on close?

Has anyone else experienced the browser crashing on close of the web player while using Async sockets? (any browser)

I seem to have seen forum posts floating around on this but before I try to create a repro scenario I was just wondering if this was a known issue?

BTW - I’ve tried shutting down my socket gracefully in OnApplicationQuit and wrapping the async callback with try/catch etc.

Thanks. I’ll file a bug once I have a decent reproducible scenario.

I’ve found that it is only crashing regularly on computers where I have the Unity editor installed (trial).

On other computers, no crash (or at least its more rare).

Try it and see if you get a crash. After you go to the URL, wait a few seconds (like when the Unity logo slides out) before closing the browser or navigating away:

http://chriscowherd.com/misc/unity-crash/async-test.html

Hi TrickyFishy,

I’ve experienced exactly the same behavior recently and I was wondering if you had succeeded to overcome it.
Have you filed a bug report about it?

Thanks a lot in advance,
Mat

Oh man I can’t remember! I know I’m not having any trouble with it anymore. Perhaps it has been fixed since 2.6 came out?

I notice that the example link above does not crash either so I’m thinking it has been fixed.

I created a sample project for async sockets:

http://www.bakedon.com/2010/03/untiy3d-asynchronous-sockets/

Thank you TrickyFishy for your comment, I’ll download your project and will get inspiration from it. :slight_smile:

I just found this topic because I am using async sockets and the web player crashes for me too. I just opened the example link in Firefox and it crashed when I navigated away.
In my project I added a button to explicitly shut down the socket before I leave the page and it still crashes consistently.