question

LuigiCaradonna-6789 avatar image
1 Vote"
LuigiCaradonna-6789 asked ·

Visual Studio Community 2019 keeps crashing upon installation

I've downloaded the installer today, then I executed it, it downloads some data, installs something, and then crashes on the window "Almost done... Getting everything ready". After that the installer results to be installed on my machine, but If I try to run it, it opens the windows, I can see some "loading" animations and after 1 second it freezes and then closes. I've tried several times to start it with the same result. I've already tried to update the system (restarted), disable the antivirus, and run as administrator, nothing did help. Going to the event viewer I find this error:

 Error Information
 AppInsightsEvent Name = vs/setupengine/fault
           Description = Application failed with an uncaught exception: Stringa non riconosciuta come valore DateTime valido.
      TelemetrySession = '6a8ec3cb-fd5e-45a3-8df2-a2025bfff9d2' Started = True OptIn=True IsInitialized = True Cloned = True
       WatsonEventType = VisualStudioNonFatalErrors2
              UTC time = 2021-03-03T18:15:22
    
  Exception:
  System.FormatException
  Stringa non riconosciuta come valore DateTime valido.
  System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles, TimeSpan& offset)
  System.DateTimeOffset.Parse(String input)
  Microsoft.VisualStudio.Setup.Installer.DeveloperNews.ViewModels.NewsFeedItemViewModel..ctor(NewsFeedItem item)
  Microsoft.VisualStudio.Setup.Installer.DeveloperNews.ViewModels.DeveloperNewsViewModel.<>c__DisplayClass6_1.<LoadNewsFeed>b__1()
  System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
  System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
  System.Windows.Threading.DispatcherOperation.InvokeImpl()
  System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
  System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
  System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
  MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
  System.Windows.Threading.DispatcherOperation.Invoke()
  System.Windows.Threading.Dispatcher.ProcessQueue()
  System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
  MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
  MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
  System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
  System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
  System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
  MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
  MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
  System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
  System.Windows.Application.RunDispatcher(Object ignore)
  System.Windows.Application.RunInternal(Window window)
  Microsoft.VisualStudio.Setup.Installer.Application.MainApplication.Microsoft.VisualStudio.Setup.Installer.IApplication.Run()
  Microsoft.VisualStudio.Setup.Installer.Program.ExecuteInternal(IServiceContainer services, ICommandLineParserResult`1 parserResult, ITelemetry telemetry, ILogger logger)
 WerReportAddDump PID=3292 setup WerDumpTypeMiniDump

In the past I had VS community installed on this machine, it shouldn't be related to a hardware issue.

Is there anything I can try to solve this problem?

vs-setup
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LuigiCaradonna-6789 avatar image
2 Votes"
LuigiCaradonna-6789 answered ·

I've managed to have the installer working. I've noticed that as the installer starts it looks for updates and there is where it freezes and crashed. I've disconnected my laptop from the internet and then started VS installer, it didn't crash. Once moved to the "Available" tab, I've reconnected my laptop and now I'm installing Visual Studio.

· 2 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I've tried this solution but when i start the visual studio installation, the installer tries to update itself first and gets stuck at 90%. Does anyone know how to solve this problem?

0 Votes 0 ·

nevermind i just needed to connect to the internet after the installer's update

0 Votes 0 ·
MZa-8612 avatar image
0 Votes"
MZa-8612 answered ·

Same error and same "solution"

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Same error and same workaround, thanks a lot.

0 Votes 0 ·
AlessandroRossi-9083 avatar image
0 Votes"
AlessandroRossi-9083 answered ·

Hello

Looking at your names. it seems you're all Italians, like me.

   Exception:
   System.FormatException
   Stringa non riconosciuta come valore DateTime valido.
   System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles, TimeSpan& offset)
   System.DateTimeOffset.Parse(String input)
   Microsoft.VisualStudio.Setup.Installer.DeveloperNews.ViewModels.NewsFeedItemViewModel..ctor(NewsFeedItem item)

There should be a nationalization related bug causing these crashes, on a date conversion occurring while updating the news feed, do you know how to notify Microsoft about it? So we can get a working installer with the next releases.

Thanks


· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.