-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
VS Code renderer crashes when setting certain breakpoints #122225
Comments
Added paper cut label as it's kind of frustrating to debug unit test in our repo as it fails more than 90% of the time sometimes. |
Sometimes the breakpoint just doesn't hit even if the debugger is attached.
|
#122225 (comment) will be fixed #121751. Currently the debugger attaching is entirely asynchronous to tests running, so this can happen. Might be fixed today if I get through my other misc remaining milestone work. |
@rebornix can you provide the crash dump following these steps https://github.com/microsoft/vscode/wiki/Native-Crash-Issues#creating-and-symbolicating-local-crash-reports |
I hit this on Windows just now,
Report: https://memes.peet.io/img/c3fce1de-6761-4bd9-a58c-12d3b59ac47e.dmp It isn't the 100% repro that Peng has, so it may be different |
The above is a crash due to this check https://source.chromium.org/chromium/chromium/src/+/master:v8/src/regexp/regexp-stack.cc;l=19. V8 recently added that check to prevent reentrant irregexp, not sure what triggered it in your case. Given the Regexp stack in Peng's post, very likely he is also hitting the same. Would be good to confirm with his crash report when available. |
@rebornix I'd like to reproduce this. Could you please provide detailed steps for
|
@weinand I wish I could provide stable reproduce steps. What happens right now on macOS when clicking on the run or debug action for a test
this.skip )
|
That error looks like it's in some other misbehaving extension.
It sounds like the test just isn't getting run in that case, which may be unrelated to the crash issue. What's the output in "Show Test Output"? You can always check that if you suspect something is amiss. |
@hediet @rebornix can you see if the crash happens with latest insiders that has updated chromium runtime, https://chromium-review.googlesource.com/c/v8/v8/+/2681950 very likely fixed the issue. Do run with https://github.com/microsoft/vscode/wiki/Native-Crash-Issues#creating-and-symbolicating-local-crash-reports so that we collect crash dumps when possible. |
Got a new trace from @connor4312 that demonstrated the same crash, I will continue to add some logs in the runtime as originally planned. |
This does seem to be much rarer now, however (from my subjective experience) |
@hediet you've seen Connors' request? It would be great if you could help him with crash dumps. |
Wouldn't it make sense to have crash reports enabled all the time when debugging Code OSS? It is a little bit inconvenient that I have to touch launch.json to enable it - I always have to stash/unstash it when resolving merge conflicts etc. |
Yeah it sounds good to have crash reporter enabled on OSS by default. I will have it log to As for the issue, I am still trying to get a reliable repro. But for now there is a workaround for the crash, you can add |
Priority on this should be bumped since it also affects extension authors building web extensions -- working in the webworker extension host. |
I've now included |
@connor4312 indeed, with that flag I'm no longer seeing the crashes! |
Update on what is known so far:
With trace_regexp_bytecode v8 flag, I was able to track the regexp calls before the crash. Currently working on creating a minimal repro with the above CDP call. |
@deepak1556 Is there a way to verify this? I've seen this crash a lot less frequently so I think it's been resolved but it seems from the issue there is no clear repro |
I'm not able to see the crash anymore, though I'm currently seeing
|
Marking as verified based on how I'm unable to repro #127861 (comment). @connor4312 is the ECONNREFUSED issue above a separate issue? |
no 100% reproduce but very often that when I debug a unit test in vscode repo through the self host test extension, the process crashes.
The text was updated successfully, but these errors were encountered: