Socket.io crashes Google Chrome

446 views
Skip to first unread message

NoPyGod

unread,
Sep 28, 2011, 6:48:53 AM9/28/11
to Chromium-discuss
Using the latest Google Chrome [as available by the update system] and
the latest version of Socket.io [client and server]

Client code -

function Game() {

var socket = io.connect('http://devserver:8081');

socket.emit('join', {id: 'hello'}, function (data) {

if (data['ok'] == 'na') {
alert(data['msg']);
}

});

}

All the server does is send back a response with a parameter of 'ok'
equal to 'na'

This causes the tab in Chrome to crash, bringing up that lovely blue
screen saying something went wrong.

Changing the alert to something else, or removing it, stops the
crashing.

Other people have experienced the problem also -
http://groups.google.com/group/socket_io/browse_thread/thread/489c9395c56542b8
http://www.google.com/url?sa=D&q=https://github.com/LearnBoost/socket.io-client/issues/301&usg=AFQjCNHPHC8D3D74QxqFtf4Ifh12FWQxBA

NoPyGod

unread,
Sep 28, 2011, 4:11:14 PM9/28/11
to Chromium-discuss
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:48 pm, NoPyGod <nopy...@gmail.com> wrote:
> Using the latest Google Chrome [as available by the update system] and
> the latest version of Socket.io [client and server]
>
> Client code -
>
> function Game() {
>
>         var socket = io.connect('http://devserver:8081');
>
>         socket.emit('join', {id: 'hello'}, function (data) {
>
>                 if (data['ok'] == 'na') {
>                         alert(data['msg']);
>                 }
>
>         });
>
> }
>
> All the server does is send back a response with a parameter of 'ok'
> equal to 'na'
>
> This causes the tab in Chrome to crash, bringing up that lovely blue
> screen saying something went wrong.
>
> Changing the alert to something else, or removing it, stops the
> crashing.
>
> Other people have experienced the problem also -http://groups.google.com/group/socket_io/browse_thread/thread/489c939...http://www.google.com/url?sa=D&q=https://github.com/LearnBoost/socket...

NoPyGod

unread,
Sep 28, 2011, 4:18:42 PM9/28/11
to Chromium-discuss

Nico Weber

unread,
Oct 5, 2011, 1:36:36 PM10/5/11
to nop...@gmail.com, Chromium-discuss
Please check if this still happens with the canary, and if so open a bug at http://new.crbug.com and send the bug number on this thread.

Thanksm
Nico


--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
   http://groups.google.com/a/chromium.org/group/chromium-discuss

Reply all
Reply to author
Forward
0 new messages