admin管理员组

文章数量:1431426

My VSCode keeps closing immediately when opened, I can't define the exact cause but this started to e around after I made some changes in my registry to fix my memory usage issues. The following keys are the keys that I modified when I was fixing my memory issue, I don't know if any of these caused the problem.

Modified Registry Keys: Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management -> ClearPageFileAtShutdown Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management -> DisablePagingExecutive Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management -> LargeSystemCache Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management -> NonPagedPoolSize Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management -> PagedPoolSize Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management -> PhysicalAddressExtension Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management -> SessionPoolSize Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management -> SessionViewSize

How my VSC problem looks like: vsc problem preview

I reinstalled the app several twice and searched for solutions but no luck.

----- Edit 1 -----

After executing code in the mand prompt, it logged the following:

 1: 00007FF6E3472EE6 node::Buffer::New+50054
 2: 00007FF6E3462D33 node::InitializeNodeWithArgs+2371
 3: 00007FF6E1BB77E9 std::__1::__vector_base<v8::CpuProfileDeoptFrame,std::__1::allocator<v8::CpuProfileDeoptFrame> >::__end_cap+22297
 4: 00007FF6E19EECCE std::__1::vector<v8::CpuProfileDeoptInfo,std::__1::allocator<v8::CpuProfileDeoptInfo> >::vector<v8::CpuProfileDeoptInfo,std::__1::allocator<v8::CpuProfileDeoptInfo> >+49406
 5: 00007FF6E54869A2 Cr_z_crc32+4171922
 6: 00007FFFCA8826BD BaseThreadInitThunk+29
 7: 00007FFFCBDCDFB8 RtlUserThreadStart+40 

----- Edit 2 -----

Somehow, I got it back working. All I did was delete the folder C:\Users\Me\.vscode, what is the reason that this fixed it?

My VSCode keeps closing immediately when opened, I can't define the exact cause but this started to e around after I made some changes in my registry to fix my memory usage issues. The following keys are the keys that I modified when I was fixing my memory issue, I don't know if any of these caused the problem.

Modified Registry Keys: Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management -> ClearPageFileAtShutdown Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management -> DisablePagingExecutive Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management -> LargeSystemCache Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management -> NonPagedPoolSize Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management -> PagedPoolSize Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management -> PhysicalAddressExtension Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management -> SessionPoolSize Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management -> SessionViewSize

How my VSC problem looks like: vsc problem preview

I reinstalled the app several twice and searched for solutions but no luck.

----- Edit 1 -----

After executing code in the mand prompt, it logged the following:

 1: 00007FF6E3472EE6 node::Buffer::New+50054
 2: 00007FF6E3462D33 node::InitializeNodeWithArgs+2371
 3: 00007FF6E1BB77E9 std::__1::__vector_base<v8::CpuProfileDeoptFrame,std::__1::allocator<v8::CpuProfileDeoptFrame> >::__end_cap+22297
 4: 00007FF6E19EECCE std::__1::vector<v8::CpuProfileDeoptInfo,std::__1::allocator<v8::CpuProfileDeoptInfo> >::vector<v8::CpuProfileDeoptInfo,std::__1::allocator<v8::CpuProfileDeoptInfo> >+49406
 5: 00007FF6E54869A2 Cr_z_crc32+4171922
 6: 00007FFFCA8826BD BaseThreadInitThunk+29
 7: 00007FFFCBDCDFB8 RtlUserThreadStart+40 

----- Edit 2 -----

Somehow, I got it back working. All I did was delete the folder C:\Users\Me\.vscode, what is the reason that this fixed it?

Share Improve this question edited Jun 13, 2024 at 18:05 Mina 17.7k3 gold badges22 silver badges37 bronze badges asked Jan 11, 2023 at 15:05 AstrooKai.AstrooKai. 3411 gold badge4 silver badges8 bronze badges 3
  • 1 Open Powershell/Command Prompt/Terminal, type code to start VS Code and see if you get an error message there. Then edit your question and add those message. – Ocaso Protal Commented Jan 11, 2023 at 15:11
  • 1 I would guess there was something in the .vscode folder that was causing problems. It's tough to say, without seeing what was previously in it. However, that folder contains all of your personalized settings (for the user, project settings are in the .vscode folder in the project instead of your home. – Mike Williamson Commented Jun 7, 2024 at 8:59
  • You can find the answer here. stackoverflow./a/78613911/11887902 – Mina Commented Jun 18, 2024 at 22:35
Add a ment  | 

1 Answer 1

Reset to default 2

For Ubuntu I downloaded the deb package and installed from there and the issue was resolved. I do not how. If anyone got the same result do let me know. Thanks!

本文标签: javascriptVSCode closes immediately after openingStack Overflow