Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 5.2.1: Crash on opening a solution within an SVN repository #76

Open
klylesatepic opened this issue Oct 13, 2021 · 5 comments
Open
Assignees
Labels

Comments

@klylesatepic
Copy link

I get a crash when opening a solution that's within an SVN repository. Specifically, I get this error message when the TSVN extension loads, and then again when I try to use any of the TSVN functionality:
image

This seems to be new as of version 5.2.1.

Here is the relevant portion of the log file mentioned:

  <entry>
    <record>2712</record>
    <time>2021/10/13 16:04:35.948</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [TsvnPackage]</description>
    <guid>{F2E68D5A-C95E-4D53-BBC6-072FF3ED9C53}</guid>
  </entry>
  <entry>
    <record>2713</record>
    <time>2021/10/13 16:04:36.118</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [TsvnPackage]Source: &apos;Microsoft.VisualStudio.Shell.Framework&apos; Description: .ctor must be called on the UI thread.&#x000D;&#x000A;System.Runtime.InteropServices.COMException (0x8001010E): .ctor must be called on the UI thread.&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread(String callerMemberName)&#x000D;&#x000A;   at Community.VisualStudio.Toolkit.ProjectItemsEvents..ctor()&#x000D;&#x000A;   at Community.VisualStudio.Toolkit.Events.get_ProjectItemsEvents()&#x000D;&#x000A;   at SamirBoulema.TSVN.TsvnPackage.&lt;InitializeAsync&gt;d__0.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.AsyncPackage.&lt;&gt;c__DisplayClass20_0.&lt;&lt;Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize&gt;b__1&gt;d.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTask.&lt;JoinAsync&gt;d__76.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.GetResult()</description>
    <guid>{F2E68D5A-C95E-4D53-BBC6-072FF3ED9C53}</guid>
    <hr>8001010e</hr>
    <errorinfo></errorinfo>
  </entry>
  <entry>
    <record>2714</record>
    <time>2021/10/13 16:04:36.118</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [TsvnPackage]</description>
    <guid>{F2E68D5A-C95E-4D53-BBC6-072FF3ED9C53}</guid>
    <hr>8001010e</hr>
    <errorinfo></errorinfo>
  </entry>

And a cleaned-up version of the error message/stack trace:
SetSite failed for package [TsvnPackage]Source: 'Microsoft.VisualStudio.Shell.Framework' Description: .ctor must be called on the UI thread.
System.Runtime.InteropServices.COMException (0x8001010E): .ctor must be called on the UI thread.
at Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread(String callerMemberName)
at Community.VisualStudio.Toolkit.ProjectItemsEvents..ctor()
at Community.VisualStudio.Toolkit.Events.get_ProjectItemsEvents()
at SamirBoulema.TSVN.TsvnPackage.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass20_0.<b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Threading.JoinableTask.d__76.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)
at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)
at Microsoft.VisualStudio.Services.VsTask.GetResult()

I'm happy to help dig in further if you're unable to reproduce this -- TSVN saves me a lot of time!

@iprak
Copy link

iprak commented Oct 13, 2021

I am also seeing the same.

@sboulema
Copy link
Owner

Oops sorry! Please try the new release! 🚀

Really great to hear TSVN is such a time-saver for you 😄

@klylesatepic
Copy link
Author

That works for me. Thanks for the quick turnaround!

@iprak
Copy link

iprak commented Oct 13, 2021

Actually .. I am getting a different error now on 5.2.3. I am using VS 16.11.5

 CreateInstance failed for package [TsvnPackage]Source: 'mscorlib' Description: Could not load file or assembly 'Community.VisualStudio.Toolkit, Version=15.0.76.299, Culture=neutral, PublicKeyToken=79441d341a79572c' or one of its dependencies. The system cannot find the file specified. System.IO.FileNotFoundException: Could not load file or assembly 'Community.VisualStudio.Toolkit, Version=15.0.76.299, Culture=neutral, PublicKeyToken=79441d341a79572c' or one of its dependencies. The system cannot find the file specified. File name: 'Community.VisualStudio.Toolkit, Version=15.0.76.299, Culture=neutral, PublicKeyToken=79441d341a79572c'at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].  

@sboulema
Copy link
Owner

Grab the new release! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants