-
Notifications
You must be signed in to change notification settings - Fork 712
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
Internal error: illegal access (debugging ES6 proxy) #413
Comments
What is your node-inspector version? |
node-inspector -v |
Is "pause on uncaught errors" enabled? |
Not enabled. |
Ok, how I explain current situation: А вообще я бы предпочел разобраться с этим на русском языке через почту [email protected] |
The application does not terminate. And yes, there is no stack. P.S. Right now the code has changed quite a bit, when I see the problem the next time, I can try pause on uncaught errors or do something else if you recommend. |
@3y3 I made the commit for you: https://github.com/iliakan/javascript-nodejs/commit/d539f298644bfd0eaaa75e9cb8cd1d86843110c3 Probably, the project can be cleared off most stuff to demonstrate the error, but I believe you can easily run it as it is. To see the error:
You should see the error like this: http://ilyakantor.ru/screen/2014-08-05_2155.png |
I having the same issue. I already figured out that there is related to harmony proxies. If I place a breakpoint to a position where the current scope is behind a proxy call, in the call stack I can see many "Illegal access" lines. I think this issue is not related to node-inscpector, because I cannot debug my harmony Proxy based code in JetBrains Web Storm also, the above error happens, |
The |
@unbornchikken , can you post example of code? |
@iliakan , I forked you commit and try to find the problem. |
Hello, Of course, here it goes: http://1drv.ms/XSR4Qc I've created a simple mocha unit test to reproduce this issue. steps to reproduce: npm install -g mocha Cheers, |
Almost forgot: node version is 0.11.13 |
It seems it's a v8 issue. I've opened it there: |
The V8 team is not going to fix that any time soon (https://code.google.com/p/v8/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Priority%20Owner%20Summary%20HW%20OS%20Area%20Stars&groupby=&sort=&id=3510) Proxy breaks node-inspector, making things non-debuggable, so I'd suggest to evade Proxy in code now. That's mostly possible. And there's something node-inspector could do here, better than just diy with a strange error. I'd suggest that node-inspector should catch this kind of error (is it possible)? And console.log a descriptive message, something like 'ES6 Proxy are not debuggable in V8 yet', and, if possible saying where the offending Proxy is (to get rid of it). Doable? |
@iliakan , can you confirm, that your project also has problems by reason of About fixing: I have in plans switch to Blink object serialization algorithm, in other words - rewrite current place that emit this error. But it's not a small fix - is's a big job. |
I would guess so. The error message looks like Proxy error. |
Thanks, this issue shed some light on my mystery problem. Have subscribed. Fingers crossed for some future compatibility fixes. |
FWIW, the upcoming io.js 1.0.0 release should ship a much more recent version of V8, you should give it a try and see if the issue has been fixed. https://iojs.org/ |
This is a V8 problem (in its runtime debugger/reflection APIs), not a node-inspector problem per se. For a project I work on, we patched the following functions in V8: Those are the V8 3.14 (node 0.10.x) functions and they don't exist under those names in V8 3.28 (node 0.12.0), but I don't think the issue has actually been fixed as of V8 3.28. I haven't tried io.js. I did just try a quick test of node 0.12.0 with Proxy and node-inspector and still see |
I just ran into this problem... Is there any fix yet? |
Was also seeing this error, but based on this node-inspector issue thread, I upgraded to node 6.2.1 and the issue was resolved. If you have the ability to upgrade to 6.2.1, it might be worth a try. Not sure how related the 2 issues are. |
same problem. |
This happens on Chrome browser's debugger! with Proxy Object. |
Just verified that this is be resolved in node 7.7+ |
I'm using node-inspector for node 0.11.13
I start
node --debug-brk ...
, open node-inspector and enter the code in Chrome. Everything's fine.Then I press 'Continue' in Chrome and, after some time, in console:
There is no stack at all.
Is there a way to trace communication with v8 to see at which stage it happened? It looks like a node-inspector bug.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: