Get an error message when I try to start up HandBrake. This only started today/end of yesterday and did not change my version of HandBrake or Windows. I tried restarting my PC and reinstalling HandBrake and these did not make the problem go away. HandBrake crashes before it starts creating the Activity Log in AppData, so I don't have one here.
HandBrake version:
1.2.2
Operating system and version
Windows 10 Home v1809
HandBrake Error Message
An Unknown Error has occurred.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'HandBrake.Interop.Interop.HandBrakeUtils' threw an exception. ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at HandBrake.Interop.Interop.HbLib.HBFunctions.hb_global_init()
at HandBrake.Interop.Interop.HandBrakeUtils.TryInit() in D:\Development\HandBrake\handbrake-release\win\CS\HandBrake.Interop\Interop\HandBrakeUtils.cs:line 97
at HandBrake.Interop.Interop.HandBrakeUtils..cctor() in D:\Development\HandBrake\handbrake-release\win\CS\HandBrake.Interop\Interop\HandBrakeUtils.cs:line 68
--- End of inner exception stack trace ---
at HandBrake.Interop.Interop.HandBrakeUtils.add_MessageLogged(EventHandler`1 value)
at HandBrakeWPF.Services.Logging.LogService..ctor() in D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\Services\Logging\LogService.cs:line 57
at HandBrakeWPF.Services.Logging.LogService.GetLogger() in D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\Services\Logging\LogService.cs:line 158
at HandBrakeWPF.Services.Scan.LibScan..ctor() in D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\Services\Scan\LibScan.cs:line 47
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at Caliburn.Micro.SimpleContainer.ActivateInstance(Type type, Object[] args)
at Caliburn.Micro.SimpleContainer.<>c__DisplayClass7_0.<RegisterSingleton>b__0(SimpleContainer container)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at Caliburn.Micro.SimpleContainer.DetermineConstructorArgs(Type implementation)
at Caliburn.Micro.SimpleContainer.<>c__DisplayClass7_0.<RegisterSingleton>b__0(SimpleContainer container)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at Caliburn.Micro.SimpleContainer.DetermineConstructorArgs(Type implementation)
at Caliburn.Micro.SimpleContainer.<>c__DisplayClass7_0.<RegisterSingleton>b__0(SimpleContainer container)
at HandBrakeWPF.Startup.AppBootstrapper.GetInstance(Type service, String key) in D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\Startup\AppBootstrapper.cs:line 130
at Caliburn.Micro.BootstrapperBase.DisplayRootViewFor(Type viewModelType, IDictionary`2 settings)
at HandBrakeWPF.Startup.AppBootstrapper.OnStartup(Object sender, StartupEventArgs e) in D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\Startup\AppBootstrapper.cs:line 113
at System.Windows.Application.OnStartup(StartupEventArgs e)
at HandBrakeWPF.App.OnStartup(StartupEventArgs e) in D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\App.xaml.cs:line 121
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)