Blocking functions cause client's browser to crash

47 views
Skip to first unread message

Jeff

unread,
Sep 19, 2011, 1:57:29 PM9/19/11
to Socket.IO
Hi All,
I'm wondering if anyone else has run into this issue, or if it's just
me (and it very well may be).

I'm using Socket.IO for a realtime web app. It works great, except if
a blocking function is called (something like alert(), prompt() or
confirm()), and the user doesn't immediately respond to them,
sometimes the browser crashes. I haven't been able to pinpoint
exactly how long you need to wait to respond to get the browser to
crash, but it's roughly between 10-60 seconds.

I'm using Chrome. I've experienced this issue on both Mac OS X, and a
Chromebook. The error message I get when this happens is "Aw,
Snap!" / "Something went wrong while displaying this webpage. To
continue, reload or go to another page".

Anyone else running into this? Any ideas?

Tomas Huang (冠)

unread,
Sep 19, 2011, 2:45:57 PM9/19/11
to sock...@googlegroups.com

me2:S

Jeff

unread,
Sep 20, 2011, 8:10:46 PM9/20/11
to Socket.IO
FWIW, I've posted a bug report here: https://github.com/LearnBoost/socket.io-client/issues/301

On Sep 19, 2:45 pm, Tomas Huang (冠) <huangguan3112...@gmail.com>
wrote:
> me2:S

NoPyGod

unread,
Sep 28, 2011, 4:33:00 AM9/28/11
to Socket.IO
Did you find a solution? I'm experiencing this problem also.

On Sep 21, 1:10 pm, Jeff <jeffzimmer...@gmail.com> wrote:
> FWIW, I've posted a bug report here:https://github.com/LearnBoost/socket.io-client/issues/301
>
> On Sep 19, 2:45 pm, Tomas Huang (冠) <huangguan3112...@gmail.com>
> wrote:
>
>
>
>
>
>
>
> > me2:S
> > 在 2011-9-20 上午1:57,"Jeff" <jeffzimmer...@gmail.com>写道:
>
> > > Hi All,
> > > I'm wondering if anyone else has run into this issue, or if it's just
> > > me (and it very well may be).
>
> > > I'm using Socket.IO for a realtime web app. It works great, except if
> > > a blocking function is called (something likealert(), prompt() or
> > > confirm()), and the user doesn't immediately respond to them,
> > > sometimes the browser crashes. I haven't been able to pinpoint
> > > exactly how long you need to wait to respond to get the browser to
> > >crash, but it's roughly between 10-60 seconds.
>
> > > I'm usingChrome. I've experienced this issue on both Mac OS X, and a

NoPyGod

unread,
Sep 28, 2011, 6:50:54 AM9/28/11
to Socket.IO

NoPyGod

unread,
Sep 28, 2011, 4:11:47 PM9/28/11
to Socket.IO
My apologies, I had left out a crucial detail. The server is actually
immediately disconnecting the client after sending the 'na' message -

fn({ok: 'na', msg: e});
socket.disconnect();

So the crash only occurs if the server disconnects the client right
after it sends the message

On Sep 28, 11:50 pm, NoPyGod <nopy...@gmail.com> wrote:
> Reported it on the Chromium discussion group
>
> http://groups.google.com/a/chromium.org/group/chromium-discuss/browse...

NoPyGod

unread,
Sep 28, 2011, 4:18:27 PM9/28/11
to Socket.IO
Reported here

https://github.com/LearnBoost/socket.io-client/issues/312

On Sep 28, 11:50 pm, NoPyGod <nopy...@gmail.com> wrote:
> Reported it on the Chromium discussion group
>
> http://groups.google.com/a/chromium.org/group/chromium-discuss/browse...

Jeff

unread,
Sep 29, 2011, 11:42:01 AM9/29/11
to Socket.IO
@NoPyGod: sorry, I just saw your question. I did not find a solution
yet. One more data point... when I experienced this issue, there was
no Socket.disconnect() call. Is it possible that the alert/prompt/
confirm held up the browser, and the browser disconnected, causing the
crash?

Jeff

unread,
Oct 21, 2011, 3:04:09 PM10/21/11
to Socket.IO
Just an update...
I've filed a bug report with the Chromium team. You can find it here:
http://code.google.com/p/chromium/issues/detail?id=101187&thanks=101187&ts=1319223714
Reply all
Reply to author
Forward
0 new messages