System.IO.FileLoadException on Windows 10.0.22631.2
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 24.7k
- Forks
- 1.3k
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 1
Description
Hi everyone, since the last windows update Quicklook stopped working and I keep getting the attached msg every time I launch it:
03/06/2025 12:16:06 Windows 10.0.22631.2
System.IO.FileLoadException: Could not load file or assembly '0Harmony, Version=2.3.6.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Invalid pointer. (Exception from HRESULT: 0x80004003 (E_POINTER))
Filename: '0Harmony, Version=2.3.6.0, Culture=neutral, PublicKeyToken=null' ---> System.ArgumentNullException: Array cannot be null.
in System.Reflection.RuntimeAssembly.nLoadImage(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence evidence, StackCrawlMark& stackMark, Boolean fIntrospection, Boolean fSkipIntegrityCheck, SecurityContextSource securityContextSource)
at System.Reflection.Assembly.Load(Byte[] rawAssembly, Byte[] rawSymbolStore)
in Costura.AssemblyLoader.ReadFromEmbeddedResources(Dictionary`2 assemblyNames, Dictionary`2 symbolNames, AssemblyName requestedAssemblyName)
in Costura.AssemblyLoader.ResolveAssembly(Object sender, ResolveEventArgs e)
at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
in QuickLook.Helpers.MessageBoxPatcher.Initialize()
in QuickLook.App.OnStartup(StartupEventArgs e)
at System.Windows.Application.<.ctor>b__1_0(Object unused)
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)
Is this error related to the app itself or is it something on my side? I hope this helps either way.
cheers
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with QuickLook.Helpers.MessageBoxPatcher.Initialize and the Costura.AssemblyLoader.ResolveAssembly path shown in the stack trace. Reproduce startup on Windows 10.0.22631.2 and determine whether the embedded 0Harmony assembly can be loaded; done means QuickLook launches without this FileLoadException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100