"An Unknown Error Has Occured" when opening Handbrake

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
katholika123
New User
Posts: 1
Joined: Mon Jun 17, 2019 6:48 am

"An Unknown Error Has Occured" when opening Handbrake

Post by katholika123 »

Description of problem or question:
pop up "An Unknown Error Has Occured" appears everytime I tried to open handbrake, and the appliaction wont open



Steps to reproduce the problem (If Applicable):
It happens everytime I tried to open handbrake, I ensure that graphics driver is the latest version from Nvidia



HandBrake version (e.g., 1.0.0):
1.2.2



Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows 10 Pro
Core i5 8300H
16GB RAM
GTX1050Ti 4GB
HP Pavilion Gaming 15


HandBrake Activity Log ***required*** (see How-to get an activity log)

This is not an activity log, as I couldn't find the log, but this is the error code that appears when I tried to open the app

Code: Select all

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)
I appreciate your help, as this problem had only occured when I open my laptop this morning. This problem has not appeared two days ago, when the last time I use this program to encode with no problems
Post Reply