HB crashes on Program start

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
swisskiltbear
Posts: 1
Joined: Sat Nov 24, 2018 4:30 pm

HB crashes on Program start

Post by swisskiltbear »

Description of problem or question:
HB crashes on Program start

Code: Select all

An Unknown Error has occurred.
System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> System.TypeInitializationException: Der Typeninitialisierer für "HandBrake.ApplicationServices.Interop.HandBrakeInstanceManager" hat eine Ausnahme verursacht. ---> System.TypeInitializationException: Der Typeninitialisierer für "HandBrake.ApplicationServices.Interop.HandBrakeUtils" hat eine Ausnahme verursacht. ---> System.AccessViolationException: Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
   bei HandBrake.ApplicationServices.Interop.HbLib.HBFunctions.hb_global_init()
   bei HandBrake.ApplicationServices.Interop.HandBrakeUtils..cctor() in D:\HandBrake\win\CS\HandBrake.ApplicationServices\Interop\HandBrakeUtils.cs:Zeile 65.
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei HandBrake.ApplicationServices.Interop.HandBrakeUtils.EnsureGlobalInit()
   bei HandBrake.ApplicationServices.Interop.HandBrakeInstance.Initialize(Int32 verbosity) in D:\HandBrake\win\CS\HandBrake.ApplicationServices\Interop\HandBrakeInstance.cs:Zeile 216.
   bei HandBrake.ApplicationServices.Interop.HandBrakeInstanceManager..cctor() in D:\HandBrake\win\CS\HandBrake.ApplicationServices\Interop\HandBrakeInstanceManager.cs:Zeile 34.
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei HandBrake.ApplicationServices.Interop.HandBrakeInstanceManager.get_MasterInstance()
   bei HandBrake.ApplicationServices.Utilities.VersionHelper.IsNightly() in D:\HandBrake\win\CS\HandBrake.ApplicationServices\Utilities\VersionHelper.cs:Zeile 47.
   bei HandBrakeWPF.Services.UserSettingService..ctor() in D:\HandBrake\win\CS\HandBrakeWPF\Services\UserSettingService.cs:Zeile 35.
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   bei System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   bei System.Activator.CreateInstance(Type type, Boolean nonPublic)
   bei System.Activator.CreateInstance(Type type)
   bei Caliburn.Micro.SimpleContainer.ActivateInstance(Type type, Object[] args)
   bei Caliburn.Micro.SimpleContainer.<>c__DisplayClass7_0.<RegisterSingleton>b__0(SimpleContainer container)
   bei System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   bei System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
   bei Caliburn.Micro.SimpleContainer.DetermineConstructorArgs(Type implementation)
   bei Caliburn.Micro.SimpleContainer.<>c__DisplayClass7_0.<RegisterSingleton>b__0(SimpleContainer container)
   bei System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   bei System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
   bei Caliburn.Micro.SimpleContainer.DetermineConstructorArgs(Type implementation)
   bei Caliburn.Micro.SimpleContainer.<>c__DisplayClass7_0.<RegisterSingleton>b__0(SimpleContainer container)
   bei HandBrakeWPF.Startup.AppBootstrapper.GetInstance(Type service, String key) in D:\HandBrake\win\CS\HandBrakeWPF\Startup\AppBootstrapper.cs:Zeile 130.
   bei Caliburn.Micro.BootstrapperBase.DisplayRootViewFor(Type viewModelType, IDictionary`2 settings)
   bei HandBrakeWPF.Startup.AppBootstrapper.OnStartup(Object sender, StartupEventArgs e) in D:\HandBrake\win\CS\HandBrakeWPF\Startup\AppBootstrapper.cs:Zeile 113.
   bei System.Windows.Application.OnStartup(StartupEventArgs e)
   bei HandBrakeWPF.App.OnStartup(StartupEventArgs e) in D:\HandBrake\win\CS\HandBrakeWPF\App.xaml.cs:Zeile 82.
   bei System.Windows.Application.<.ctor>b__1_0(Object unused)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
I've already completely uninstalled Handbrake and removed the Handbrake Directory in Appdata/Roaming, them reinstalled after reboot

Steps to reproduce the problem (If Applicable):
Start Handbrake, crashes immediately with above error output



HandBrake version (e.g., 1.0.0):
1.1.2
nightly latest



Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Win 10 Pro Build 18282
HP EliteDesk 800 G3 Mini, Intel Core i7 6700, Intel HD Graphics 530 @ 2560 x 1440



HandBrake Activity Log ***required*** (see [url=https://handbrake.fr/docs/en/latest/hel ... y-log.html] How-to get an activity log
Unable to supply, Handbrake crashes before even creating the AppData/Roaming/Handbrake directory. No log is generated.

Code: Select all

no log generated
I'm aware that i'm using a Windows Insider Preview build. Since Handbrake is running fine on my HP Eliteboook 850 G3 Notebook (Core i5 6200, Intel HD Graphics 520 @ 1920 x 1080) with the identical Windows build I'm just hoping to get some pointers as to where to investigate further in search of the culprit for the crash. I'll happily provide any additional info.
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: HB crashes on Program start

Post by s55 »

Unfortunately it's a tricky one.

- It's not related to the version of Windows.
- The error doesn't provide any useful information. It's a low level system crash that's happening, not HandBrake. It just happens to take HB out with it :( The crash is typically logged under the windows event viewer, but more often than not it's some generic error.
- Make sure your not running any graphics / video related utilities. MSI Afterburner, screen capture etc.
- Run the latest .NET Framework installer
- Run the System File Checker.
- Make sure all drivers are up-to-date. OEM drivers are not ideal so if you can get direct from component manufacturers, it's best to do this.

Failing all that, users in the past have reported the only way to get it working is to re-install windows, which isn't a good solution.
Khurram
New User
Posts: 1
Joined: Tue Nov 27, 2018 9:03 am

Re: HB crashes on Program start

Post by Khurram »

Hi,

I have the same issue. How to fix it please?

I am using HB 1.1.2 on Win10 Pro
Intel (R) Xeon(R) CPU E5-2687W 0 @ 3.10GHz 3.10 Ghz (2 processors)
RAM 48 GB
64-bit OS, x64-based processor.

Here is the log:

Code: Select all

An Unknown Error has occurred.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: There was an error generating the XML document. ---> System.InvalidOperationException: Instance validation error: '1' is not a valid value for HandBrake.ApplicationServices.Model.VideoScaler.
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1.Write38_VideoScaler(VideoScaler v)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1.Write39_HBConfiguration(String n, String ns, HBConfiguration o, Boolean isNullable, Boolean needType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1.Write41_QueueTask(String n, String ns, QueueTask o, Boolean isNullable, Boolean needType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1.Write42_ArrayOfQueueTask(Object o)
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
   at System.Xml.Serialization.XmlSerializer.Serialize(Stream stream, Object o, XmlSerializerNamespaces namespaces)
   at HandBrakeWPF.Services.Queue.QueueProcessor.BackupQueue(String exportPath) in D:\HandBrake\win\CS\HandBrakeWPF\Services\Queue\QueueProcessor.cs:line 225
   at HandBrakeWPF.Services.Queue.QueueProcessor.Start(Boolean isClearCompleted) in D:\HandBrake\win\CS\HandBrakeWPF\Services\Queue\QueueProcessor.cs:line 510
   at HandBrakeWPF.ViewModels.MainViewModel.StartEncode() in D:\HandBrake\win\CS\HandBrakeWPF\ViewModels\MainViewModel.cs:line 1722
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Caliburn.Micro.ActionMessage.<>c.<.cctor>b__33_0(ActionExecutionContext context)
   at Caliburn.Micro.ActionMessage.Invoke(Object eventArgs)
   at System.Windows.Interactivity.TriggerBase.InvokeActions(Object parameter)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   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)
Last edited by Anonymous on Tue Nov 27, 2018 12:00 pm, edited 1 time in total.
Reason: Logs in [code][/code] blocks please
Post Reply