[SOLVED]: Handbrake won't 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
help_please
Posts: 5
Joined: Sun Nov 19, 2017 3:54 pm

[SOLVED]: Handbrake won't start

Post by help_please »

Description of problem or question:
Handbrake won't start. It shows an empty white window which offers me "Copy to clipboard" and close. Out of curiosity I chose "Copy..." and received the text you can find below.
This is strange: there is no D:\HandBrake\win\CS\HandBrakeWPF\Utilities\. D:\Handbrake exists, it is the destination directory for files that Handbrake creates. The installation directory is C:\Program Files\Handbrake. It contains 17 files and one subdirectory called doc.

I hope you can help me...


Steps to reproduce the problem (If Applicable):
Start Handbrake :)



HandBrake version (e.g., 1.0.0):
1.1.1 x64



Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows 10 Home Version 1803 (Build 17134.228)



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

Code: Select all

An Unknown Error has occurred.
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
   bei HandBrakeWPF.Utilities.EnumHelper`1.GetDisplay(T value) in D:\HandBrake\win\CS\HandBrakeWPF\Utilities\EnumHelper.cs:Zeile 65.
   bei System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
   bei System.Windows.Data.BindingExpression.Activate(Object item)
   bei System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
   bei System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
   bei MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
   bei MS.Internal.Data.DataBindEngine.Run(Object arg)
   bei System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   bei System.Windows.ContextLayoutManager.UpdateLayout()
   bei System.Windows.Interop.HwndSource.SetLayoutSize()
   bei System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
   bei System.Windows.Window.SetRootVisual()
   bei System.Windows.Window.SetRootVisualAndUpdateSTC()
   bei System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
   bei System.Windows.Window.CreateSourceWindow(Boolean duringShow)
   bei System.Windows.Window.ShowHelper(Object booleanBox)
   bei HandBrakeWPF.Startup.AppBootstrapper.OnStartup(Object sender, StartupEventArgs e) in D:\HandBrake\win\CS\HandBrakeWPF\Startup\AppBootstrapper.cs:Zeile 112.
   bei System.Windows.Application.OnStartup(StartupEventArgs e)
   bei HandBrakeWPF.App.OnStartup(StartupEventArgs e) in D:\HandBrake\win\CS\HandBrakeWPF\App.xaml.cs:Zeile 79.
   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)
Last edited by help_please on Wed Sep 12, 2018 8:32 pm, edited 2 times in total.
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: Handbrake won't start

Post by s55 »

Can you update to 1.1.2, it should correct this particular error, or at least give a better error that points to the real issue.
help_please
Posts: 5
Joined: Sun Nov 19, 2017 3:54 pm

Re: Handbrake won't start

Post by help_please »

Thanks for the quick response.

Great. It starts, I can load a file and start the encoding. I get this error:

An Unknown Error has occurred.
System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> System.InvalidOperationException: Beim Generieren des XML-Dokuments ist ein Fehler aufgetreten. ---> System.InvalidOperationException: Instanzvalidierungsfehler: '1' ist kein gültiger Wert für HandBrake.ApplicationServices.Model.VideoScaler.
bei Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1.Write38_VideoScaler(VideoScaler v)
bei Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1.Write39_HBConfiguration(String n, String ns, HBConfiguration o, Boolean isNullable, Boolean needType)
bei Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1.Write41_QueueTask(String n, String ns, QueueTask o, Boolean isNullable, Boolean needType)
bei Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1.Write42_ArrayOfQueueTask(Object o)
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
bei System.Xml.Serialization.XmlSerializer.Serialize(Stream stream, Object o, XmlSerializerNamespaces namespaces)
bei HandBrakeWPF.Services.Queue.QueueProcessor.BackupQueue(String exportPath) in D:\HandBrake\win\CS\HandBrakeWPF\Services\Queue\QueueProcessor.cs:Zeile 225.
bei HandBrakeWPF.Services.Queue.QueueProcessor.Start(Boolean isClearCompleted) in D:\HandBrake\win\CS\HandBrakeWPF\Services\Queue\QueueProcessor.cs:Zeile 510.
bei HandBrakeWPF.ViewModels.MainViewModel.StartEncode() in D:\HandBrake\win\CS\HandBrakeWPF\ViewModels\MainViewModel.cs:Zeile 1722.
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
bei System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
bei Caliburn.Micro.ActionMessage.<>c.<.cctor>b__33_0(ActionExecutionContext context)
bei Caliburn.Micro.ActionMessage.Invoke(Object eventArgs)
bei System.Windows.Interactivity.TriggerBase.InvokeActions(Object parameter)
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
bei System.Windows.Controls.Primitives.ButtonBase.OnClick()
bei System.Windows.Controls.Button.OnClick()
bei System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bei System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
bei System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
bei System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
bei System.Windows.Input.InputManager.ProcessStagingArea()
bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
bei System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
bei System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
bei System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
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)

but the encoding seems to continue. I will report back later, if the encoding was successful.
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: Handbrake won't start

Post by s55 »

Might want to delete: C:\Users\%username%\AppData\Roaming\HandBrake to reset everything. It's likely stale data from a previous version caused the issue
help_please
Posts: 5
Joined: Sun Nov 19, 2017 3:54 pm

[SOLVED]: Handbrake won't start

Post by help_please »

Hooray, it works perfectly.

Thanks for the help. This thread can be closed.
Post Reply