Visual Studio 2017/ VS Installer fail to launch due to "Unknown Hard Error"

  • Thread starter Thread starter Yanislav Vasilev
  • Start date Start date
Y

Yanislav Vasilev

Guest
Hi, since two or three weeks I am unable to start some of my programs on my private laptop. I am using Windows 10.

tl;dr; I've managed to answer my question but I still decided to leave this open for future reference or troubleshooting tips.

I've tried to launch Visual Studio 2017 15.7 (but to be honest I am almost certain that it is not a version issue) while in safe mode(safe boot) and I saw critical pop-up saying "Unknown Hard Error".
I've tried to launch Visual Studio installer in order to repair the installation, but it was very much the same. (same error occurred).
Lastly, I've tried to launch Event Viewer in order to see any application errors only to realize that same error.

I read around internet and found where the log files of Visual Studio reside and managed to read them:

08/18/2018 12:22:36 : Information : Log configuration: $SERVICEHUBTRACELEVEL=""
08/18/2018 12:22:36 : Error : Error starting service 'RemoteSettingsProviderService' requested by RemoteSettingsClient (pid: 9388): Hub host 'desktopClr', PID: 8036 exited. code: '2148734214'.
08/18/2018 12:22:36 : Error : Error starting service 'SetupEngine.ProductsProvider' requested by ProductsProvider (pid: 9388): Hub host 'desktopClr', PID: 8036 exited. code: '2148734214'.
08/18/2018 12:22:36 : Error : Error starting service 'SetupEngine.Installer' requested by Installer (pid: 9388): Hub host 'desktopClr', PID: 8036 exited. code: '2148734214'.

Searched this error a bit in internet but, there was nothing related to this specific exit code so I am at dead end I am afraid.

After reading a bit about the "Unknown Hard Error" most of the places mention that this might be caused due to corruption of Windows registries which I think I can relate, since I was playing around with some of them while doing one of my school projects.

I had to do some drawing so I've decided to use SIMD instructions and I found these two scripts in one of the dotnet-examples repositories of github.

@echo off
setlocal

:: This will remove the markers that enabled RyuJIT & SIMD
reg delete HKCU\SOFTWARE\Microsoft\.NETFramework /v AltJit /f /reg:64 > NUL
reg delete HKCU\SOFTWARE\Microsoft\.NETFramework /v FeatureSIMD /f /reg:64 > NUL

and


@echo off
setlocal

:: This will enable RyuJIT

reg add HKCU\SOFTWARE\Microsoft\.NETFramework /v AltJit /t REG_SZ /d "*" /f /reg:64 > NUL

:: This will enable SIMD

reg add HKCU\SOFTWARE\Microsoft\.NETFramework /v FeatureSIMD /t REG_DWORD /d 1 /f /reg:64 > NUL

While writing this question I again I used script for "disabling" which turns out it fixed the problem, however I think I will leave the question open(if you decide close it) for future reference of the exit code. (might be helpful for the next guy that tries to track it) also I am still not sure if this script is broken or there is a bug into desktopCLR, maybe you can tell me?

Continue reading...
 
Back
Top