Windows GUI error

Archive of historical development discussions
Discussions / Development has moved to GitHub
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
Ares1110
Posts: 8
Joined: Wed Oct 16, 2013 7:18 am

Windows GUI error

Post by Ares1110 »

I downloaded the latest handbrake from svn://svn.handbrake.fr/HandBrake/trunk. When I run the Windows GUI, it reports error.

error log:
An Unknown Error has occured.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Unable to load DLL 'hb.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at HandBrake.Interop.HbLib.HBFunctions.hb_set_anamorphic_size(hb_job_s& job, Int32& output_width, Int32& output_height, Int32& output_par_width, Int32& output_par_height)
at HandBrakeWPF.Helpers.PictureSize.hb_set_anamorphic_size(PictureSettingsJob job, PictureSettingsTitle title) in d:\Handbrake-community\win\CS\HandBrakeWPF\Helpers\PictureSize.cs:line 207
at HandBrakeWPF.ViewModels.PictureSettingsViewModel.SetDisplaySize() in d:\Handbrake-community\win\CS\HandBrakeWPF\ViewModels\PictureSettingsViewModel.cs:line 1034
at HandBrakeWPF.ViewModels.PictureSettingsViewModel.WidthAdjust() in d:\Handbrake-community\win\CS\HandBrakeWPF\ViewModels\PictureSettingsViewModel.cs:line 1094
at HandBrakeWPF.ViewModels.PictureSettingsViewModel.set_Width(Int32 value) in d:\Handbrake-community\win\CS\HandBrakeWPF\ViewModels\PictureSettingsViewModel.cs:line 511
at HandBrakeWPF.ViewModels.PictureSettingsViewModel.AnamorphicAdjust() in d:\Handbrake-community\win\CS\HandBrakeWPF\ViewModels\PictureSettingsViewModel.cs:line 897
at HandBrakeWPF.ViewModels.PictureSettingsViewModel.set_SelectedAnamorphicMode(Anamorphic value) in d:\Handbrake-community\win\CS\HandBrakeWPF\ViewModels\PictureSettingsViewModel.cs:line 401
at HandBrakeWPF.ViewModels.PictureSettingsViewModel.SetPreset(Preset preset, EncodeTask task) in d:\Handbrake-community\win\CS\HandBrakeWPF\ViewModels\PictureSettingsViewModel.cs:line 620
at HandBrakeWPF.ViewModels.MainViewModel.set_SelectedPreset(Preset value) in d:\Handbrake-community\win\CS\HandBrakeWPF\ViewModels\MainViewModel.cs:line 387
at HandBrakeWPF.ViewModels.MainViewModel.OnLoad() in d:\Handbrake-community\win\CS\HandBrakeWPF\ViewModels\MainViewModel.cs:line 948
at HandBrakeWPF.ViewModels.ViewModelBase.Load() in d:\Handbrake-community\win\CS\HandBrakeWPF\ViewModels\ViewModelBase.cs:line 104
--- 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.<.cctor>b__d(ActionExecutionContext context) in c:\Users\Rob\Documents\CodePlex\caliburnmicro\src\Caliburn.Micro.Silverlight\ActionMessage.cs:line 289
at Caliburn.Micro.ActionMessage.Invoke(Object eventArgs) in c:\Users\Rob\Documents\CodePlex\caliburnmicro\src\Caliburn.Micro.Silverlight\ActionMessage.cs:line 253
at System.Windows.Interactivity.TriggerBase.InvokeActions(Object parameter)
at System.Windows.Interactivity.EventTriggerBase.OnEvent(EventArgs eventArgs)
at System.Windows.Interactivity.EventTriggerBase.OnEventImpl(Object sender, EventArgs eventArgs)
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.RaiseEvent(RoutedEventArgs e)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Any hint?

Thank you!
User avatar
s55
HandBrake Team
Posts: 10357
Joined: Sun Dec 24, 2006 1:05 pm

Re: Windows GUI error

Post by s55 »

Hb.dll is missing. You need to build this along with handbrakecli.exe under mingw-w64
Ares1110
Posts: 8
Joined: Wed Oct 16, 2013 7:18 am

Re: Windows GUI error

Post by Ares1110 »

I compiled a handbrakecli.exe under mingw-w64. It also reported this error.
Deleted User 11865

Re: Windows GUI error

Post by Deleted User 11865 »

s55 wrote:Hb.dll is missing.
We'd get through this much quicker if you were around on IRC. If you don't want to join #handbrake, then at least stick around #x265 ;-) :P
Ares1110
Posts: 8
Joined: Wed Oct 16, 2013 7:18 am

Re: Windows GUI error

Post by Ares1110 »

fixed.
justincase
Bright Spark User
Posts: 153
Joined: Sun Nov 22, 2009 1:09 am

Re: Windows GUI error

Post by justincase »

Ran into the same. IMHO there's good reasons to allow interested parties to successfully build/debug the windows GUI only. hb.dll seems the only hitch - the cli needs to fit the build, but that's no problem, since nightly build downloads offer the cli separately. With hb.dll, that's not so easy - extracting from the nightly installer using 7-zip alpha maybe. Or install the nightly, possibly ruining presets and existing queue. Yes it does (the queue it kills due to faac, the user_presets I've no idea why, and the built-in presets it's my own fault wanting to remove useless clutter), though probably not the installer but the actual launch which I could have avoided.

In short: Expand the nightly archives with one for the current x86 hb.dll only? Then I'd lose settings only if I stepped into the code too far...
User avatar
s55
HandBrake Team
Posts: 10357
Joined: Sun Dec 24, 2006 1:05 pm

Re: Windows GUI error

Post by s55 »

Done. libhb downloads are now on the nightly page.
Post Reply