-
Notifications
You must be signed in to change notification settings - Fork 30k
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
assertion when attaching the Chrome dev tools #8155
Comments
probably unrelated to the original issue: when I build/run debug version of node from master on Windows with the same repro - it always hits the assertion in element access |
https://gyazo.com/c3c20ffb78d985a7d07f2321154ba993 I'm running into the same issue. |
Not sure how to assign this to myself - I am planning to look into it tomorrow, once I get to the Windows PC. |
I was unable to reproduce this. This is what I did:
My system is Windows 10. I build a release Node.js build (vcbuild nosign). I tested both master and v6.x branches. Please provide detailed instruction if you still see this issue. |
I have been using https://nodejs.org/dist/v6.4.0/node-v6.4.0-x64.msi off of the nodejs front page. The node process crashes as soon as you try to load the page. |
I can repro (100%) in Windows 10, both with v6.4.0 and the latest nightly. On Windows 2012 with a recent master build the debugger does not attach, nothing happens. |
I'm running 6.4.0 and I too can repo 100% with the steps listed by @eugeneo and discovered this as I tried to use Node V8 Inspector It doesn't matter what I'm running or if I use the URL provided in the console or the Chrome Extension, I get UPDATE: I just upgraded to Node 6.5.0 and npm 3.10.7 and see the same behavior |
The next release of v6.x should include this fix. |
Is this supposed to be already available in nightly builds? I tried with
PS: I can see it has been committed in master but I don't see any 6.6 available version, only a 6.5.1 and 7.0.0 in https://nodejs.org/download/nightly/ |
@uggedal |
@jbe456, @wzup: Node 6.5.0 doesn't have this fix yet and neither do the 6.x nightlies. I expect next release of v6.x (probably 6.6.0, which isn't out yet) will pick up this fix. /cc @Fishrock123. |
This change simplifies buffer management to address a number of issues that original implementation had. Original implementation was trying to reduce the number of allocations by providing regions of the internal buffer to libuv IO code. This introduced some potential use after free issues if the buffer grows (or shrinks) while there's a pending read. It also had some confusing math that resulted in issues on Windows version of the libuv. PR-URL: nodejs#8257 Fixes: nodejs#8155 Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
This change simplifies buffer management to address a number of issues that original implementation had. Original implementation was trying to reduce the number of allocations by providing regions of the internal buffer to libuv IO code. This introduced some potential use after free issues if the buffer grows (or shrinks) while there's a pending read. It also had some confusing math that resulted in issues on Windows version of the libuv. PR-URL: #8257 Fixes: #8155 Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
@jbe456, @wzup Could you try with the latest 7.0 nightlies to see if the problem still exists? |
I know you asked for them but I gave it a go anyways. I used this install: |
@ofrobots It still crashes here on
Let me know if you need further testing, |
If you're able to build node.js from source, could you try with the fix here: #8536. @eugeneo is unable to reproduce the failure and the previous excepted fix doesn't seem to fix the problem. |
I can reproduce the crash as well. |
@nodejs/release let me know if I should add any additional tags to make sure the fix gets released on the next |
I'm going to go ahead and get all the backlog of inspector commits onto v6.x-staging edit: #8832 |
Ctor has to be added as memset to 0 is no longer an option, since the structure now has std::vector member. Attempt at fixing nodejs#8155 (so far I was not able to repro it) PR-URL: nodejs#8536 Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
Anyone have a binary for Windows that is working which they could direct me to? I'm dying without debugging and in case it's been forgotten, node-inspector is broken too; I think because of the same issue. I built 7.x the other day and it was exhibiting the same issues, though that may have been the x86 and perhaps x64 is good? |
Got --inspect and devtools working overall, but I don't get halts on breakpoints added in devtools. If I insert a Also, what is the best/least-ambiguous way to refer to this new --inspect/dev-tools debugger approach so it's not confused with node-inspector or devtool/Electron? UPDATE: Was bit by a Chrome extension ( https://chrome.google.com/webstore/detail/nodejs-v8-inspector/lfnddfpljnhbneopljflpombpnkfhggl ). Instead of using the URL directly, I used this tool and the window I got didn't have the same behavior as one brought up manually. |
I had the same error in my windows env (win7 x64). @rainabba using breakpoints working aswell for me. started debugging with |
@thealphanerd how can we make sure we do not break the debugger anymore in a release? It's highly important for some people. |
The inspector is listed as expiremental, if functionality changes here and there, that's kinda what you signed up for. |
@Fishrock123 so, with node-inspector broken on v6.7.0, and the new "experimental" thing not working either, what should everyone be using? |
Isn't this issue only about the V8 inspector? Is node-inspector broken too? |
Node-inspector appears to be broken on Windows as well at the moment. |
If it's a bug, we'll try to fix it as normal? If it's a bug in a specific release the choices are roll back a bit or build your own copy with patches... 😐 (like any other software...) sounds like @thealphanerd and I will get |
(Also like, if you don't think releases are frequent enough and would like to dedicated some time to help make releases, we'd be glad to have more people. Let me or any other CTC member know.) |
@cjihrig node-debugger was broken last I checked around 6.4.x, but then again; it seems to be more often than not as long as I've been using it (since ~0.6.x I think and since 0.12.x for sure) which is why I was excited about a more official/integrated solution with the new approach. I've not had to work so much without a debugger since gwbasic on DOS 3.0. I love node.js, but if I have a single complaint; it's the constant lack of debugging support and with --inspect in place, that should be resolved so I'm very much looking forward to it. |
Just to clarify, there are three debuggers that can be easily confused:
Of course there are other debuggers like vscode, but those are the three that are most easily confused. |
@cjihrig Thanks for the clarification. That does bring up a related issue to me; the lack of clarity on "how to debug in node". Because there are multiple approaches AND they seem to change regularly (due to constant advancement and I'm not complaining there), I feel like it's not clear to someone new, how to get the best debugging experience. Of course, that's just part of the game on a platform that's evolving so quickly, but once v8-inspector is stable, I'd love to see highly visible and clear documentation. That's something I might be willing and able to tackle even though I'm not sure I'm the most qualified (see my attempt at #8704). Even if v8-inspector was stable and great documentation written, a real push would be needed to ensure it's discoverable to someone looking for it. That said, anyone here have an article they'd recommend on the legacy debugger? For all the time I've spent looking for debugging tools, I'm not even sure I've run across the legacy one in a usable fashion. My understanding is that it was the power behind node-inspector, but it wasn't really usable by itself and if that's not true, I'd love to know. |
Can someone confirm if this works on |
Just tested very briefly on Windows 10 and appears to be working. ❤️ |
Just tried on Microsoft Windows [Version 10.0.10586]
|
This PR - #8832 - should backport the fix. I believe this fix will be in v6.8. |
I confirm it works with v6.8.0! |
Version: v.6.4.0
Platform: Windows10 64 bit
Repro:
Expected:
Actual:
node process shuts down the message:
The text was updated successfully, but these errors were encountered: