Skip to content
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

error on nodejs 0.6.0 "FATAL ERROR: v8::HandleScope::Close() Local scope has already been closed" #150

Closed
komnet opened this issue Nov 12, 2011 · 13 comments
Labels

Comments

@komnet
Copy link

komnet commented Nov 12, 2011

var redis = require('redis');
var client = redis.createClient();/error this line/

after declared client variable, it's error "FATAL ERROR: v8::HandleScope::Close() Local scope has already been closed"

thank you.

@mranney
Copy link
Contributor

mranney commented Nov 14, 2011

This sounds like an issue with the hiredis module after a node upgrade. Can you try uninstalling and reinstalling hiredis to see if that fixes the issue?

@diversario
Copy link

Same exact issue here. Uninstalling hiredis fixes the issue. Reinstalling hiredis doesn't help.

@pietern
Copy link
Contributor

pietern commented Nov 14, 2011

I saw this error only when trying to do hiredis.Reader() instead of new hiredis.Reader(). I see node_redis uses the latter form, so it should be OK. Could it be related anyway?

@mranney
Copy link
Contributor

mranney commented Nov 15, 2011

On what OS and node version is this failing?

@diversario
Copy link

For me - Ubuntun 11.10 x64, node 0.6.1.

@pietern
Copy link
Contributor

pietern commented Nov 15, 2011

Which version of hiredis are you using? I did a test with hiredis-node (both from npm and git) on 11.10 with node 0.6.1 and it compiles and runs just fine. The latest version of hiredis-node is0.1.13. Another possibility is that node-waf is falling back on an older version of node. Do you have multiple node versions installed on this system?

@diversario
Copy link

hiredis 0.1.13.
I had node 0.4.12 installed into ~/local/node, then installed node 0.6.1 into ~/local/node061 (installed separately because I thought that new node screwed my app). node-waf on the path says waf 1.5.16 (7610:7647M). Node 0.6.1 binary is linked to /usr/local/bin/node and is the default node (which node points to it).

@pietern
Copy link
Contributor

pietern commented Nov 15, 2011

Are both node and node-waf in your PATH pointing to the same version of node?

@diversario
Copy link

I relinked node-waf from 0.6.1 to /usr/local/bin, installed hiredis and didn't get the error. I assume node-waf was from the old node, but it still reports version 1.5.16. Weird.

Anyway, thanks for pointing that out, looks like hiredis works now with my 0.6.1 installation.

@pietern
Copy link
Contributor

pietern commented Nov 15, 2011

The version of node-waf may remain unchanged between node versions. It is a separate tool that is configured to set up the environment when building extensions. The old version likely points to old node headers.

@komnet
Copy link
Author

komnet commented Nov 17, 2011

when i am reinstall hiredis and that fixes, thank you very much.

@mranney
Copy link
Contributor

mranney commented Nov 17, 2011

I hope node gets better about detecting this multiple version thing in the future.

@mranney mranney closed this as completed Nov 17, 2011
@boopathi
Copy link

boopathi commented Jan 2, 2012

I get the same error. But I don't have hiredis installed.

I have the following modules. "connect", "db-mysql", "express", "now", "request" ..... installed through npm..

Reinstalled node .=> from v0.4.x to 0.6.6

It worked properly once, and after a system reboot, I get this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants