Will not handle folders.

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
Buddyboy
Posts: 3
Joined: Tue May 26, 2020 1:32 pm

Will not handle folders.

Post by Buddyboy »

Description of problem or question:
While I can routinely do single files, Handbrake will not accept folders. When I click to add a folder to the queue I get an error message:

An Unknown Error has occurred.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.DriveNotFoundException: Could not find the drive 'D:\'. The drive might not be ready or might not be mapped.
at System.IO.__Error.WinIODriveError(String driveName, Int32 errorCode)
at System.IO.DriveInfo.get_AvailableFreeSpace()
at HandBrakeWPF.Utilities.DriveUtilities.HasMinimumDiskSpace(String destination, Int64 minimumInBytes) in C:\Build\win\CS\HandBrakeWPF\Utilities\DriveUtilities.cs:line 59
at HandBrakeWPF.ViewModels.MainViewModel.AddAllToQueue() in C:\Build\win\CS\HandBrakeWPF\ViewModels\MainViewModel.cs:line 1448
--- 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)




Steps to reproduce the problem (If Applicable):

I reinstalled Handbrake and it worked perfectly, once. After that it reverted to not accepting folders. I click to add an individual file to the queue but get an error message:

"The output directory you have chosen either does not exist or you do not have permission to write files to it."

I click to change the output directory, clcik Save to the same directory (unchanged) and it adds the file to the queue. Adding the next individual file to the queue requires exactly the same steps.


HandBrake version (e.g., 1.0.0):

HandBrake 1.3.2 (2020050300)
OS: Microsoft Windows NT 10.0.18363.0
CPU: Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz
Ram: 16274 MB,
GPU Information:
Intel(R) HD Graphics 4600 - 20.19.15.5126
Screen: 1920x1080
Temp Dir: C:\Users\Owner\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Owner\AppData\Roaming\HandBrake

-------------------------------------------

[10:34:49] Compile-time hardening features are enabled
Cannot load nvEncodeAPI64.dll



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




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

Code: Select all

[i]System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.DriveNotFoundException: Could not find the drive 'D:\'. The drive might not be ready or might not be mapped.
   at System.IO.__Error.WinIODriveError(String driveName, Int32 errorCode)
   at System.IO.DriveInfo.get_AvailableFreeSpace()
   at HandBrakeWPF.Utilities.DriveUtilities.HasMinimumDiskSpace(String destination, Int64 minimumInBytes) in C:\Build\win\CS\HandBrakeWPF\Utilities\DriveUtilities.cs:line 59
   at HandBrakeWPF.ViewModels.MainViewModel.AddAllToQueue() in C:\Build\win\CS\HandBrakeWPF\ViewModels\MainViewModel.cs:line 1448
   --- 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)

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.DriveNotFoundException: Could not find the drive 'D:\'. The drive might not be ready or might not be mapped.
   at System.IO.__Error.WinIODriveError(String driveName, Int32 errorCode)
   at System.IO.DriveInfo.get_AvailableFreeSpace()
   at HandBrakeWPF.Utilities.DriveUtilities.HasMinimumDiskSpace(String destination, Int64 minimumInBytes) in C:\Build\win\CS\HandBrakeWPF\Utilities\DriveUtilities.cs:line 59
   at HandBrakeWPF.ViewModels.MainViewModel.AddAllToQueue() in C:\Build\win\CS\HandBrakeWPF\ViewModels\MainViewModel.cs:line 1448
   --- 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.MenuItem.InvokeClickAfterRender(Object arg)
   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]



Woodstock
Veteran User
Posts: 3613
Joined: Tue Aug 27, 2013 6:39 am

Re: Will not handle folders.

Post by Woodstock »

In Preferences->Output files, what do you have in the various fields? These are important when doing "batch add", because the file names and paths are generated by the rules on that tab.

Buddyboy
Posts: 3
Joined: Tue May 26, 2020 1:32 pm

Re: Will not handle folders.

Post by Buddyboy »

https://www.flickr.com/photos/29415042@ ... ed-public/

Here is the page you mentioned. Any issues? Your help is appreciated.

User avatar
s55
HandBrake Team
Posts: 9773
Joined: Sun Dec 24, 2006 1:05 pm

Re: Will not handle folders.

Post by s55 »

When you added all to the queue, it tried to do a drive space check on your D:\ drive
That drive was reported as being unavailable which caused a failure.

Do you have a d drive? Is a HDD or network drive?

Buddyboy
Posts: 3
Joined: Tue May 26, 2020 1:32 pm

Re: Will not handle folders.

Post by Buddyboy »

s55: Thanks for your help. You sure know what to look for. That D drive should have been my G drive, another internal regular HDD. I changed the setting to the correct one and it now works flawlessly. I have my amazing Handbrake back again. Thank you. Thank you.

Post Reply