Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-13952

Sourcetree installer Failed to start System.Management.ManagementException: Invalid class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • None
    • 3.4.9, 3.4.10
    • Bitbucket
    • None
    • Severity 2 - Major

    Description

      Issue Summary

      This is reproducible on Data Center: (yes) / (no)

      Steps to Reproduce

      1. Sourcetree does not launch.
      2. Community ticket for this issue https://community.atlassian.com/t5/Sourcetree-questions/Can-not-launch-Sourcetree/qaq-p/2191396?utm_source=atlcomm&utm_medium=email&utm_campaign=immediate_general_question&utm_content=topic#U2195163
      3. https://community.atlassian.com/t5/Sourcetree-questions/Sourcetree-installer-Failed-to-start-System-Management/qaq-p/2196885?utm_source=atlcomm&utm_medium=email&utm_campaign=immediate_general_question&utm_content=topic#U2197513
      4. https://community.atlassian.com/t5/Sourcetree-questions/Sourcetree-won-t-install/qaq-p/2234999?utm_source=atlcomm&utm_medium=email&utm_campaign=immediate_general_question&utm_content=topic#U2235889

      Expected Results

      Sourcetree should launch without any error.

      Actual Results

      The below exception is thrown in the xxxxxxx.log file:

      ERROR [2022-11-15 17:44:14,345] [1] [SourceTree.Model.Repository] [Log] - Repository: [] does not exist
      ERROR [2022-11-15 17:44:16,250] [1] [SourceTree.App] [Log] - Failed to start
      System.Management.ManagementException: Invalid class
      at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
      at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()
      at SourceTree.UI.Theme.Wpf.Utilities.NativeHelper.GetWindowsVersion()
      at SourceTree.UI.Theme.Wpf.Controls.PerMonitorDpiWindow.OnSourceInitialized(EventArgs e)
      at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
      at System.Windows.Window.ShowHelper(Object booleanBox)
      at SourceTree.AppRoot.<OnStartup>d__24.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
      at SourceTree.App.<OnStartup>d__9.MoveNext() 

      Workaround

      WMI service need to be configured properly.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              698877135425 Mukesh Kumar
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: