-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on node.js 4.0 / socket.io 1.3.6 (unexpected disconnect?) #2236
Comments
Update: doesn't seem to break on 0.12.7 so I guess I'll revert. It's a shame because I wrote a good bit of code with arrow functions. |
socket.io, please don't pin your dependencies. Use |
I deleted node_modules and did |
Same for me. 0.12 was fine, just after upgrade to node 4 I started to see these errors. AssertionError: false == true |
I can confirm this with node 4.0 and socket.io 1.3.6 on Linux. I also did a clean install of the node modules (deleted node_modules and did a I also got the same stacktrace:
|
@chisleu why dont you use the --harmony flag in node 0.12 to use your arrow functions? I've got the same error on node 4.1, after removing and reinstalling with npm install the issue still exists but happens later. At first I only needed 2 refreshes of the page, now it takes me about 20 refreshes. |
@vandernorth The scope in 0.12's arrow functions isn't lexical. That is the only reason I'm using them. They can keep my prototype function code more simple, if I don't have to set the class' this to something else. |
Segmentation fault (core dumped), |
1.3.7 is out. I think it solves this? |
same to me , but it happen more frequently while the client is IOS. it rarely happen on Android |
I upgraded to socket.io 1.3.7 and node 4.1. It now builds without errors and doesn't seem to crash like it did before!! 👍 |
Yep, 1.3.7 is okay |
I've upgraded to 1.3.7 with node 4.1 but after refreshing 4 pages at the same time I still seem to get this error. I'm testing on windows this time, not sure if that makes any difference. I did not see any error in the build/install process. assert.js:89 |
Have you tried deleting all node_modules and doing a fresh install? |
@laggingreflex Yes I did, but I can no longer trace my current issue back to socket.io. |
Closing as it no longer appears linked to just socket.io
|
it happens to me, But I only use express...
assert.js:89 |
Today I got socket.io going great for a simple chat setup. However, if I refresh the screen rapidly, it crashes my node instance. Here is the error:
Google has been unhelpful. I'm hoping someone else solved this.
Unfortunately, I also upgraded to node 4.0 today because I am a huge fan of => functions.
It could be related to that, although it only happens when I have the socket.io code loaded. The code I'm using is very simple:
I'm using express.js 4.13 and followed the information from the website.
I want to stress that it works fine unless I force disconnects by refreshing the client page (causing the JS to disconnect abruptly, I'm guessing.)
I found several comments about similar issues in earlier versions of node. It seems there was a bug fix that kept disconnects from throwing an error, but maybe there was reversion? Or maybe it is just similar?
The text was updated successfully, but these errors were encountered: