-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Debug adapter process has terminated not at all unexpectedly #53535
Comments
(Experimental duplicate detection) |
@oliversalzburg please provide reproducible steps. |
If you tell me how to get the information on what caused the crash, I'll tell you how to reproduce it. |
Without steps for how to reproduce it, we won't be able to help you. |
That's understandable. I was hoping for some guidance on how to possibly find the source of this seemingly random occurrence. Beyond the notification and the process silently exiting, I have nothing to go on. |
If the debug adapter has more details, it typically writes them to the debug console. If you set Also, we just released 1.25, please see if it's any better in the new release. |
Yeah, there is nothing in the debug console except the last lines of output from my own code, which gives no clues. I'll try running with trace enabled, but this issue usually only happens after longer periods of time (30m and longer). From what I remember, the amount of data produced from tracing is excessive and I anticipate problems with this approach, but we'll see. And, yes, I made sure this time it's a not a conditional breakpoint. In case anyone was wondering. |
So far, I can only say that it's not fixed with 1.25. I wasn't working in the project that routinely has this issue for a couple of days and now it started happening right away again. |
Are you able to get a trace? |
I'll look into that next week. I was briefly working in a different area and didn't get much input on this particular issue. |
Alright, I just had a run with
The process that hosts the debug adapter was using around 2.4 GB memory when it crashed. This was increasing steadily over the entire run. The log compresses nicely to just under 3 MB. Should I send it over? |
I wonder if it just ran out of memory. I would like to see the log, thanks. |
The behavior feels like it. Especially the aspect that this only happens after longer periods and I watched the memory usage climb steadily as I was collecting the log. Although I was not sure if that is linked to the collection of the log. The last time this happened (#49829) was with the conditional breakpoint. That should not be the case this time. |
From your log, there are just a ton of loaded scripts - for example, bluebird is doing a lot of evals. The debug adapter has to save some details of every loaded script even though most of them are not useful. I found a couple easy ways to reduce the amount of data we have to keep around. Please try it out in Insiders or 1.26 next week. |
@roblourens Cool. I'll check out 1.26 and report back. |
So far, no more crashes in 1.26. Will continue to observe. 👍 |
Great! 🎉 |
Issue Type: Bug
The Node debug adapter crashes at least a dozen times every single day for one of my projects.
In a previous ticket I was told that this is not supposed to happen, which is also the reason why no more information regarding the cause is made available to the user. I still think that's a mistake, but I would happily accept a solution where the adapter is simply not crashing anymore.
I'm currently using Node 8.11.1
VS Code version: Code 1.24.1 (24f6262, 2018-06-13T17:51:32.889Z)
OS version: Windows_NT x64 10.0.17134
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: enabled
video_encode: enabled
vpx_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (8)
(1 theme extensions excluded)
The text was updated successfully, but these errors were encountered: