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

ILSpy crash #3263

Closed
greenozon opened this issue Aug 17, 2024 · 0 comments · Fixed by #3280
Closed

ILSpy crash #3263

greenozon opened this issue Aug 17, 2024 · 0 comments · Fixed by #3280
Labels

Comments

@greenozon
Copy link

greenozon commented Aug 17, 2024

Steps to reproduce

  1. browse assemblies
  2. goto - Derived Types

Error message shown

image

image

---------------------------
Sorry, we crashed
---------------------------
System.AggregateException: One or more errors occurred. (ValueFactory returned null.)

 ---> System.InvalidOperationException: ValueFactory returned null.

   at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Func`1 valueFactory)

   at ICSharpCode.ILSpyX.LoadedAssembly.GetTypeSystemOrNull() in /_/ICSharpCode.ILSpyX/LoadedAssembly.cs:line 212

   at ICSharpCode.ILSpyX.LoadedAssemblyExtensions.GetTypeSystemOrNull(MetadataFile file) in /_/ICSharpCode.ILSpyX/LoadedAssemblyExtensions.cs:line 47

   at ICSharpCode.ILSpy.TreeNodes.DerivedTypesTreeNode.FindDerivedTypes(AssemblyList list, ITypeDefinition type, CancellationToken cancellationToken)+MoveNext()

   at ICSharpCode.ILSpy.TreeNodes.ThreadingSupport.<>c__DisplayClass8_0.<LoadChildren>b__0()

   at System.Threading.Tasks.Task`1.InnerInvoke()

   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)

--- End of stack trace from previous location ---

   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)

   --- End of inner exception stack trace ---

   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)

   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)

   at System.Threading.Tasks.Task.Wait(TimeSpan timeout, CancellationToken cancellationToken)

   at System.Threading.Tasks.Task.Wait(TimeSpan timeout)

   at ICSharpCode.ILSpy.TreeNodes.ThreadingSupport.LoadChildren(SharpTreeNode node, Func`2 fetchChildren)

   at ICSharpCode.ILSpy.TreeNodes.DerivedTypesTreeNode.LoadChildren()

   at ICSharpCode.ILSpyX.TreeView.SharpTreeNode.EnsureLazyChildren() in /_/ICSharpCode.ILSpyX/TreeView/SharpTreeNode.cs:line 339

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
---------------------------
OK   
---------------------------

Details

  • ILSpy version 9.0.0.7722-preview2
    .NET version 8.0.8+08338fcaa5c9b9a8190abb99222fed12aaba956c
@greenozon greenozon added the Bug label Aug 17, 2024
Applesauce314 added a commit to Applesauce314/ILSpy that referenced this issue Sep 20, 2024
it appears Fix icsharpcode#3263 added an accidental `!=` instead of `==` and broke the derived types node.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant