microsoft / vscode

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

Launching in powershell creates crash report #6426

Closed AlexChesser closed 8 years ago

AlexChesser commented 8 years ago

Steps to Reproduce:

  1. set environment variable for VSCODE bin folder
  2. open powershell
  3. type "code ." in your favourite working folder
PS C:\www\the-best-code-ever> code .
PS C:\www\the-best-code-ever>
[5592:10764:0517/093227:VERBOSE1:crash_service_main.cc(68)] Session start. cmdline is [--reporter-url=https://ticinocras
hreporter.azurewebsites.net/crash --application-name=VSCode --v=1]
[5592:10764:0517/093227:VERBOSE1:crash_service.cc(142)] window handle is 00510590
[5592:10764:0517/093227:VERBOSE1:crash_service.cc(290)] pipe name is \\.\pipe\VSCode Crash Service
dumps at C:\Users\achesser\AppData\Local\Temp\VSCode Crashes
[5592:10764:0517/093227:VERBOSE1:crash_service.cc(294)] checkpoint is C:\Users\achesser\AppData\Local\Temp\VSCode Crashe
s\crash_checkpoint.txt
server is https://ticinocrashreporter.azurewebsites.net/crash
maximum 128 reports/day
reporter is electron-crash-service
[5592:10764:0517/093227:VERBOSE1:crash_service_main.cc(84)] Ready to process crash requests
[5592:8200:0517/093227:VERBOSE1:crash_service.cc(323)] client start. pid = 6536
[5592:8200:0517/093227:VERBOSE1:crash_service.cc(323)] client start. pid = 9736
[372:6992:0517/093227:VERBOSE1:crash_service_main.cc(68)] Session start. cmdline is [--reporter-url=https://ticinocrashr
eporter.azurewebsites.net/crash --application-name=VSCode --v=1]
[372:6992:0517/093227:VERBOSE1:crash_service.cc(142)] window handle is 003906BA
[372:6992:0517/093227:VERBOSE1:crash_service.cc(290)] pipe name is \\.\pipe\VSCode Crash Service
dumps at C:\Users\achesser\AppData\Local\Temp\VSCode Crashes
[372:6992:0517/093227:VERBOSE1:crash_service.cc(294)] checkpoint is C:\Users\achesser\AppData\Local\Temp\VSCode Crashes\
crash_checkpoint.txt
server is https://ticinocrashreporter.azurewebsites.net/crash
maximum 128 reports/day
reporter is electron-crash-service
[372:6992:0517/093227:ERROR:crash_service.cc(301)] could not start dumper

VSCode itself does launch.

joaomoreno commented 8 years ago

What path did you exactly add to your PATH variable?

AlexChesser commented 8 years ago

Hey @joaomoreno

User PATH

C:\Python35\Scripts\;C:\Python35\;c:\windows\system32;C:\Ruby200-x64\bin;%PROGRAMFILES(x86)%\Microsoft Visual Studio 10.0\Common7\IDE;C:\bin\PsTools;%PROGRAMFILES(x86)%\Java\jre1.8.0_31\bin;C:\Program Files\nodejs;%PROGRAMFILES(x86)%\Git\bin;C:\python276\;C:\depot_tools;%PROGRAMFILES(x86)%\Microsoft VS Code\;C:\Users\achesser\AppData\Roaming\npm;%PROGRAMFILES(x86)%\Android\android-sdk\tools;C:\gradle-2.10\bin;C:\Program Files\Java\jdk1.8.0_66\bin;C:\Program Files\Docker Toolbox;

System PATH

%PROGRAMFILES(x86)%\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Windows Azure Tools\Docker\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;%PROGRAMFILES(x86)%\Common Files\Microsoft Shared\Windows Live;%PROGRAMFILES(x86)%\Windows Resource Kits\Tools\;%PROGRAMFILES(x86)%\PHP\v5.6;C:\ProgramData\Oracle\Java\javapath;%PROGRAMFILES(x86)%\Intel\iCLS Client\;%PROGRAMFILES(x86)%\Skype\Phone\;%PROGRAMFILES(x86)%\Git\cmd;%PROGRAMFILES(x86)%\Git\bin;%PROGRAMFILES(x86)%\Windows Live\Shared;%PROGRAMFILES(x86)%\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%systemroot%\System32\WindowsPowerShell\v1.0\;%PROGRAMFILES(x86)%\Microsoft Visual Studio 10.0\VC\bin;%PROGRAMFILES(x86)%\Microsoft Visual Studio 14.0\Common7\IDE;%PROGRAMFILES(x86)%\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;%PROGRAMFILES(x86)%\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\;%PROGRAMFILES(x86)%\Microsoft SQL Server\130\Tools\Binn\;%PROGRAMFILES(x86)%\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files\nodejs\;C:\Program Files\Docker Toolbox;C:\HashiCorp\Vagrant\bin;C:\cygwin64\bin;%PROGRAMFILES(x86)%\Android\android-sdk\platform-tools;C:\watchman;%PROGRAMFILES(x86)%\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Microsoft DNX\Dnvm\;%PROGRAMFILES(x86)%\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\

crash running as normal or Admin user user:

[10972:13796:0524/093824:VERBOSE1:crash_service_main.cc(68)] Session start. cmdline is [--reporter-url=https://ticinocr
shreporter.azurewebsites.net/crash --application-name=VSCode --v=1]
[10972:13796:0524/093824:VERBOSE1:crash_service.cc(142)] window handle is 00090A76
[10972:13796:0524/093824:VERBOSE1:crash_service.cc(290)] pipe name is \\.\pipe\VSCode Crash Service
dumps at C:\Users\achesser\AppData\Local\Temp\VSCode Crashes
[10972:13796:0524/093824:VERBOSE1:crash_service.cc(294)] checkpoint is C:\Users\achesser\AppData\Local\Temp\VSCode Cras
es\crash_checkpoint.txt
server is https://ticinocrashreporter.azurewebsites.net/crash
maximum 128 reports/day
reporter is electron-crash-service
[10972:13796:0524/093824:VERBOSE1:crash_service_main.cc(84)] Ready to process crash requests
[10972:3364:0524/093824:VERBOSE1:crash_service.cc(323)] client start. pid = 4644
[10972:3364:0524/093824:VERBOSE1:crash_service.cc(323)] client start. pid = 3312
[8360:2312:0524/093824:VERBOSE1:crash_service_main.cc(68)] Session start. cmdline is [--reporter-url=https://ticinocras
reporter.azurewebsites.net/crash --application-name=VSCode --v=1]
[8360:2312:0524/093824:VERBOSE1:crash_service.cc(142)] window handle is 000A0AB2
[8360:2312:0524/093824:VERBOSE1:crash_service.cc(290)] pipe name is \\.\pipe\VSCode Crash Service
dumps at C:\Users\achesser\AppData\Local\Temp\VSCode Crashes
[8360:2312:0524/093824:VERBOSE1:crash_service.cc(294)] checkpoint is C:\Users\achesser\AppData\Local\Temp\VSCode Crashe
\crash_checkpoint.txt
server is https://ticinocrashreporter.azurewebsites.net/crash
maximum 128 reports/day
reporter is electron-crash-service
[8360:2312:0524/093824:ERROR:crash_service.cc(301)] could not start dumper
[10972:8060:0524/093831:VERBOSE1:crash_service.cc(331)] client end. pid = 4644
[10972:10256:0524/093831:VERBOSE1:crash_service.cc(331)] client end. pid = 3312
[10972:10256:0524/093832:VERBOSE1:crash_service.cc(352)] zero clients. exiting
[10972:13796:0524/093832:VERBOSE1:crash_service.cc(490)] session ending..
[10972:13796:0524/093832:VERBOSE1:crash_service.cc(495)] clients connected :2
clients terminated :2
dumps serviced :0
dumps reported :0
[10972:13796:0524/093832:VERBOSE1:crash_service_main.cc(89)] Session end. return code is 0

I should also note that VSCODE does actually finish launching and appears to be usable so I'm not entirely sure what is crashing.

capture

Another "lead" might be the fact that I installed the SALSA engine when the typescript server was bleeding edge. Could it be the case that a "legacy setting" from a couple weeks ago was at fault and uninstalling VSCODE and reinstalling is a better choice than trying to find the setting that is "stuck"?

(...or is there a "restore factory defaults" option in VSCODE?)

joaomoreno commented 8 years ago

Nothing is crashing. You're just getting log output from the crash service, which is a service that logs crashes. 👍

The problem here is that you are getting that output, when you shouldn't.

Can you change your user PATH and replace %PROGRAMFILES(x86)%\Microsoft VS Code\ with %PROGRAMFILES(x86)%\Microsoft VS Code\bin, restart and try again?

AlexChesser commented 8 years ago

Are you a wizard?! (aka: yes, that worked ... thanks)