microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.18k stars 28.84k forks source link

VSC keeps crashing #217220

Closed webcrawlersites closed 1 month ago

webcrawlersites commented 3 months ago

Type: Bug

The IDE keeps closing randomly in the middle of development.

VS Code version: Code 1.90.2 (5437499feb04f7a586f677b155b039bc2b3669eb, 2024-06-18T22:34:26.404Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|13th Gen Intel(R) Core(TM) i7-13700KF (24 x 3418)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.84GB (7.58GB free)| |Process Argv|--crash-reporter-id 99103022-9a73-45f3-a52b-f0726de9b663| |Screen Reader|no| |VM|0%|
Extensions (10) Extension|Author (truncated)|Version ---|---|--- bracket-pair-color-dlw|Bra|0.0.6 composer-php-vscode|DEV|1.48.15635 phptools-vscode|DEV|1.48.15635 profiler-php-vscode|DEV|1.48.15635 es7-react-js-snippets|dsz|4.4.3 gitlens|eam|15.1.0 prettier-vscode|esb|10.4.0 php-namespace-resolver|Meh|1.1.9 laravel-blade|one|1.36.1 vscode-thunder-client|ran|2.24.11
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 vscaac:30438847 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 jchc7451:31067544 chatpanelc:31048052 dsvsc021:30996838 724cj586:31013169 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 legacy_priority:31077528 ```
gjsjohnmurray commented 3 months ago

Please use https://github.com/microsoft/vscode/wiki/Native-Crash-Issues to provide more information.

webcrawlersites commented 3 months ago

I followed the steps, however, I don't have the file in the folder directory. I get this error message that pops up and then the program just closes itself.

[image: VSC Error.png]

Warm Regards,

Jason

On Mon, Jun 24, 2024 at 11:45 AM John Murray @.***> wrote:

Please use https://github.com/microsoft/vscode/wiki/Native-Crash-Issues to provide more information.

— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode/issues/217220#issuecomment-2186880823, or unsubscribe https://github.com/notifications/unsubscribe-auth/APXLVAM7P4IJTK3WIZTYTDTZJA5KLAVCNFSM6AAAAABJ2BNPZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBWHA4DAOBSGM . You are receiving this because you authored the thread.Message ID: @.***>

deepak1556 commented 3 months ago

Can you reattach the screenshot, your last comment failed to upload the screenshot.

Additionally can you provide the output of code --verbose

gjsjohnmurray commented 3 months ago

@webcrawlersites emailed screenshots don't get through. Please go to the issue on the GH website and drag-drop the file into the Comment field.

webcrawlersites commented 3 months ago

Output for command code --verbose:

[main 2024-07-05T20:19:24.601Z] PolicyConfiguration#initialize
[main 2024-07-05T20:19:24.602Z] PolicyConfiguration#updatePolicyDefinitions [
  'http.proxy',
  'http.proxyStrictSSL',
  'http.proxyKerberosServicePrincipal',
  'http.noProxy',
  'http.proxyAuthorization',
  'http.proxySupport',
  'http.systemCertificates',
  'http.experimental.systemCertificatesV2',
  'telemetry.telemetryLevel',
  'telemetry.enableTelemetry',
  'update.mode',
  'update.channel',
  'update.enableWindowsBackgroundUpdates',
  'update.showReleaseNotes'
]
[main 2024-07-05T20:19:24.603Z] NativePolicyService#_updatePolicyDefinitions - Found 1 policy definitions
[main 2024-07-05T20:19:24.608Z] NativePolicyService#_onDidPolicyChange - Updated policy values: {}
[main 2024-07-05T20:19:24.609Z] PolicyConfiguration#update [ 'update.mode' ]
[main 2024-07-05T20:19:24.613Z] [File Watcher (node.js)] Request to start watching: c:\Users\jason\AppData\Roaming\Code\User (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>),c:\Users\jason\AppData\Roaming\Code\User\settings.json (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>)
[main 2024-07-05T20:19:24.615Z] [File Watcher (node.js)] Started watching: 'c:\Users\jason\AppData\Roaming\Code\User'
[main 2024-07-05T20:19:24.615Z] [File Watcher (node.js)] Started watching: 'c:\Users\jason\AppData\Roaming\Code\User\settings.json'
[main 2024-07-05T20:19:24.648Z] Sending some foreground love to the running instance: 24072
[main 2024-07-05T20:19:24.651Z] Sending env to running instance...
[main 2024-07-05T20:19:24.695Z] Sent env to running instance. Terminating...
[main 2024-07-05T20:19:24.695Z] Lifecycle#kill()
[main 2024-07-05T20:19:24.695Z] Lifecycle#onWillShutdown.fire()

Here is the image of the error message that pops up and then VSC closes:

VSC Error

deepak1556 commented 3 months ago

Thanks for the logs, seems like you have an instance of the application already running when starting from the command line this might also be the reason why you couldn't collect crash dumps from before. Please try the following,

1) Quit all open instances of VSCode application 2) Start the application from command line with code --verbose and attach the output

Additionally, run the command Developer: Open User Data Folder and attach the folder Crashpad to this issue or you can send it by mail to Deepak.Mohan@microsoft.com

webcrawlersites commented 2 months ago

Output- code --verbose.txt

I attached the output for code --verbose but I am getting a "The term 'Developer:' is not recognized" error for the additional step.

webcrawlersites commented 2 months ago

@deepak1556 I just manually found it the Crashpad folder. See attached. Crashpad.zip

deepak1556 commented 2 months ago

Thanks for the crash dumps, do you have http proxy setting configured ? Can you confirm if the crash is resolved if you disable them ?

Symbolicated trace

Operating system: Windows NT
                  10.0.22631 3737
CPU: amd64
     family 6 model 183 stepping 1
     24 CPUs

GPU: UNKNOWN

Crash reason:  EXCEPTION_ACCESS_VIOLATION_READ
Crash address: 0xffffffffffffffff
Process uptime: 53 seconds

Thread 0 (crashed)
 0  Code.exe!static void electron::ResolveProxyHelper::StartPendingRequest() [resolve_proxy_helper.cc : 55 + 0x3]
    rax = 0xefefefefefefefef   rdx = 0x00003ae000e89c80
    rcx = 0x0000000000000000   rbx = 0x00003ae000a70be0
    rsi = 0x00003ae000749870   rdi = 0x000000e84b3fc620
    rbp = 0x000000e84b3fc9b0   rsp = 0x000000e84b3fc5e0
     r8 = 0x00003ae000c00000    r9 = 0x00003ae000f70000
    r10 = 0x000000000000fffe   r11 = 0x0000000000000001
    r12 = 0x00003ae0002500b8   r13 = 0x00003ae000138080
    r14 = 0x000000e84b3fc608   r15 = 0x000000e84b3fc640
    rip = 0x00007ff6e06d4385
    Found by: given as instruction pointer in context
 1  Code.exe!electron::ResolveProxyHelper::ResolveProxy(GURL const &,base::OnceCallback<void >) [resolve_proxy_helper.cc : 40 + 0x8]
    rbx = 0x00003ae000a70be0   rbp = 0x000000e84b3fc9b0
    rsp = 0x000000e84b3fc6f0   r12 = 0x00003ae0002500b8
    r13 = 0x00003ae000138080   r14 = 0x000000e84b3fc608
    r15 = 0x000000e84b3fc640   rip = 0x00007ff6e06d40f4
    Found by: call frame info
 2  Code.exe!static class v8::Local<v8::Promise> electron::api::Session::ResolveProxy(class gin::Arguments *) [electron_api_session.cc : 425 + 0xb]
    rbx = 0x00003ae000a70be0   rbp = 0x000000e84b3fc9b0
    rsp = 0x000000e84b3fc730   r12 = 0x00003ae0002500b8
    r13 = 0x00003ae000138080   r14 = 0x000000e84b3fc608
    r15 = 0x000000e84b3fc640   rip = 0x00007ff6e061d4fb
    Found by: call frame info
 3  Code.exe!static struct blink::WebCacheResourceTypeStats base::internal::Invoker<base::internal::BindState<blink::WebCacheResourceTypeStats (electron::api::WebFrameRenderer::*)(v8::Isolate *)>,blink::WebCacheResourceTypeStats (electron::api::WebFrameRenderer *, v8::Isolate *)>::Run(class base::internal::BindStateBase *, class electron::api::WebFrameRenderer *, class v8::Isolate *) [bind_internal.h : 911 + 0x17]
    rbx = 0x00003ae000a70be0   rbp = 0x000000e84b3fc9b0
    rsp = 0x000000e84b3fc840   r12 = 0x00003ae0002500b8
    r13 = 0x00003ae000138080   r14 = 0x000000e84b3fc608
    r15 = 0x000000e84b3fc640   rip = 0x00007ff6e05bdcdf
    Found by: call frame info
 4  Code.exe!static void gin::internal::Dispatcher<v8::Local<v8::Promise> (electron::api::Session *, gin::Arguments *)>::DispatchToCallbackImpl(class gin::Arguments *) [function_template.h : 264 + 0x42]
    rbx = 0x00003ae000a70be0   rbp = 0x000000e84b3fc9b0
    rsp = 0x000000e84b3fc870   r12 = 0x00003ae0002500b8
    r13 = 0x00003ae000138080   r14 = 0x000000e84b3fc608
    r15 = 0x000000e84b3fc640   rip = 0x00007ff6e062c387
    Found by: call frame info
 5  Code.exe!static void gin::internal::Dispatcher<v8::Local<v8::Promise> (electron::api::Session *, gin::Arguments *)>::DispatchToCallback(const class v8::FunctionCallbackInfo<v8::Value> & const) [function_template.h : 270 + 0x8]
    rbx = 0x00003ae000a70be0   rbp = 0x000000e84b3fc9b0
    rsp = 0x000000e84b3fc910   r12 = 0x00003ae0002500b8
    r13 = 0x00003ae000138080   r14 = 0x000000e84b3fc608
    r15 = 0x000000e84b3fc640   rip = 0x00007ff6e062c244
    Found by: call frame info
 6  Code.exe!Builtins_CallApiCallbackGeneric + 0xc9
    rbx = 0x00003ae000a70be0   rbp = 0x000000e84b3fc9b0
    rsp = 0x000000e84b3fc960   r12 = 0x00003ae0002500b8
    r13 = 0x00003ae000138080   r14 = 0x000000e84b3fc608
    r15 = 0x000000e84b3fc640   rip = 0x00007ff6e462c149
    Found by: call frame info
 7  0x3cc007443e9
    rbx = 0x00003ae000a70be0   rbp = 0x000000e84b3fc9b0
    rsp = 0x000000e84b3fc970   r12 = 0x00003ae0002500b8
    r13 = 0x00003ae000138080   r14 = 0x000000e84b3fc608
    r15 = 0x000000e84b3fc640   rip = 0x000003cc007443e9
    Found by: call frame info
 8  Code.exe!Builtins_InterpreterEntryTrampoline + 0x12a
    rbp = 0x000000e84b3fca70   rsp = 0x000000e84b3fc9c0
    rip = 0x00007ff6e4629daa
    Found by: stack scanning
webcrawlersites commented 2 months ago

How do I turn http proxy off?

vs-code-engineering[bot] commented 1 month ago

This bug has been fixed in the latest release of VS Code Insiders!

@webcrawlersites, you can help us out by commenting /verified if things are now working as expected.

If things still don't seem right, please ensure you're on version d1388fd24fc0acf17ae1f759e85c1acf559ed759 of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.

Happy Coding!