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

Loading special library lead to empty tree for this assembly #3372

Closed
trivalik opened this issue Jan 16, 2025 · 1 comment
Closed

Loading special library lead to empty tree for this assembly #3372

trivalik opened this issue Jan 16, 2025 · 1 comment
Labels

Comments

@trivalik
Copy link

trivalik commented Jan 16, 2025

Steps to reproduce

  1. load Telerik.Windows.Controls.dll of current years (I tested from 2023)
  2. try to expand in Assemblies view
  3. nothing expands

Error message shown

none

but with attached Debugger shows:

System.BadImageFormatException: "Invalid COR20 header signature." with Stacktrace:

 	System.Reflection.Metadata.dll!System.Reflection.Metadata.MetadataReader.ReadMetadataHeader(ref System.Reflection.Metadata.BlobReader memReader, out string versionString)	Unknown
 	System.Reflection.Metadata.dll!System.Reflection.Metadata.MetadataReader.MetadataReader(byte* metadata, int length, System.Reflection.Metadata.MetadataReaderOptions options, System.Reflection.Metadata.MetadataStringDecoder utf8Decoder, object memoryOwner)	Unknown
 	System.Reflection.Metadata.dll!System.Reflection.Metadata.MetadataReaderProvider.GetMetadataReader(System.Reflection.Metadata.MetadataReaderOptions options, System.Reflection.Metadata.MetadataStringDecoder utf8Decoder)	Unknown
	ICSharpCode.Decompiler.dll!ICSharpCode.Decompiler.Metadata.MetadataFile.MetadataFile(ICSharpCode.Decompiler.Metadata.MetadataFile.MetadataFileKind kind, string fileName, System.Reflection.Metadata.MetadataReaderProvider metadata, System.Reflection.Metadata.MetadataReaderOptions metadataOptions, int metadataOffset, bool isEmbedded) Line 234	C#
 	ICSharpCode.ILSpyX.dll!ICSharpCode.ILSpyX.FileLoaders.MetadataFileLoader.Load(string fileName, System.IO.Stream stream, ICSharpCode.ILSpyX.FileLoaders.FileLoadContext settings) Line 39	C#
 	ICSharpCode.ILSpyX.dll!ICSharpCode.ILSpyX.LoadedAssembly.LoadAsync(System.Threading.Tasks.Task<System.IO.Stream> streamTask) Line 339	C#
 	ICSharpCode.ILSpyX.dll!ICSharpCode.ILSpyX.LoadedAssembly..ctor.AnonymousMethod__0() Line 90	C#

Details

@trivalik trivalik added the Bug label Jan 16, 2025
@trivalik trivalik changed the title Loading libraries lead to empty tree Loading special library lead to empty tree for this assembly Jan 16, 2025
@trivalik
Copy link
Author

Bisect showed that issue starts with commit 65e30c0 Add IFileLoader API.

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

Successfully merging a pull request may close this issue.

1 participant