Handbrake 'Can't use chapter because another app is using it"

Archive of historical bug reports.
Please use the GitHub link above to report issues.
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
Laurendahl
New User
Posts: 1
Joined: Tue Aug 23, 2016 4:14 pm

Handbrake 'Can't use chapter because another app is using it"

Post by Laurendahl »

Please describe the problem in as much detail as possible:
The title explains it pretty well.
What are the steps to reproduce this problem:
I try to start the conversion, and this message pops up. I usually have modified the file with MovAvi
What version of HandBrake you are running:
The current (1.10.5)
What operating system and version and you running (e.g. OSX 10.11, Windows 7, Ubuntu 14):
Windows 8.
If there was any exception or error displayed, please copy it and paste it here:
An Unknown Error has occured.
System.Reflection.TargetInvocationException: Kutsun kohde on aiheuttanut poikkeuksen. ---> System.IO.IOException: Prosessi ei voi käyttää tiedostoa C:\Users\Lauri\AppData\Local\Temp\Videos-1-chapters.csv, koska jokin toinen prosessi käyttää tiedostoa tällä hetkellä.
kohteessa System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
kohteessa System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
kohteessa System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
kohteessa System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
kohteessa System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
kohteessa System.IO.StreamWriter..ctor(String path)
kohteessa HandBrake.ApplicationServices.Utilities.QueryGeneratorUtility.ChapterCsvSave(IEnumerable`1 chapters, String filePathName) tiedostossa H:\Development\HandBrake\0.10.x\win\CS\HandBrake.ApplicationServices\Utilities\QueryGeneratorUtility.cs:rivillä 1126
kohteessa HandBrake.ApplicationServices.Utilities.QueryGeneratorUtility.ChapterMarkersQuery(EncodeTask task) tiedostossa H:\Development\HandBrake\0.10.x\win\CS\HandBrake.ApplicationServices\Utilities\QueryGeneratorUtility.cs:rivillä 927
kohteessa HandBrake.ApplicationServices.Utilities.QueryGeneratorUtility.GenerateTabbedComponentsQuery(EncodeTask task, Boolean enableFilters, Int32 verbosity, Boolean disableLibDvdNav, Boolean disableQsvDecode, Boolean enableHwd, Boolean enableOpenCL) tiedostossa H:\Development\HandBrake\0.10.x\win\CS\HandBrake.ApplicationServices\Utilities\QueryGeneratorUtility.cs:rivillä 137
kohteessa HandBrake.ApplicationServices.Utilities.QueryGeneratorUtility.GenerateQuery(EncodeTask task, HBConfiguration configuration) tiedostossa H:\Development\HandBrake\0.10.x\win\CS\HandBrake.ApplicationServices\Utilities\QueryGeneratorUtility.cs:rivillä 51
kohteessa HandBrake.ApplicationServices.Services.Encode.Start(QueueTask encodeQueueTask) tiedostossa H:\Development\HandBrake\0.10.x\win\CS\HandBrake.ApplicationServices\Services\Encode.cs:rivillä 191
kohteessa HandBrake.ApplicationServices.Services.QueueProcessor.Start(Boolean isClearCompleted) tiedostossa H:\Development\HandBrake\0.10.x\win\CS\HandBrake.ApplicationServices\Services\QueueProcessor.cs:rivillä 457
kohteessa HandBrakeWPF.ViewModels.MainViewModel.StartEncode() tiedostossa H:\Development\HandBrake\0.10.x\win\CS\HandBrakeWPF\ViewModels\MainViewModel.cs:rivillä 1447
--- Sisäisen poikkeuksen pinon jäljityksen loppu ---
kohteessa System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
kohteessa System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
kohteessa System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
kohteessa Caliburn.Micro.ActionMessage.<.cctor>b__d(ActionExecutionContext context) tiedostossa c:\Users\Rob\Documents\CodePlex\caliburnmicro\src\Caliburn.Micro.Silverlight\ActionMessage.cs:rivillä 293
kohteessa Caliburn.Micro.ActionMessage.Invoke(Object eventArgs) tiedostossa c:\Users\Rob\Documents\CodePlex\caliburnmicro\src\Caliburn.Micro.Silverlight\ActionMessage.cs:rivillä 254
kohteessa System.Windows.Interactivity.TriggerBase.InvokeActions(Object parameter)
kohteessa System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
kohteessa System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
kohteessa System.Windows.Controls.Button.OnClick()
kohteessa System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
kohteessa System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
kohteessa System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
kohteessa System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
kohteessa System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
kohteessa System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
kohteessa System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
kohteessa System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
kohteessa System.Windows.Input.InputManager.ProcessStagingArea()
kohteessa System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
kohteessa System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
kohteessa System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
kohteessa System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
kohteessa MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
kohteessa MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
kohteessa System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
kohteessa MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Please include the scan or encode log:
I do not know how to.

Code: Select all

 Paste your log here between the code brackets, or use a pastebin website. 
User avatar
s55
HandBrake Team
Posts: 10357
Joined: Sun Dec 24, 2006 1:05 pm

Re: Handbrake 'Can't use chapter because another app is using it"

Post by s55 »

It's not really a bug. HandBrake can't continue if another app is getting a file lock on the tempory files it needs to operate.

Could probably do with a better error message but it's a moot point now that the nightly builds use libhb.dll instead of HandBrakeCLI.exe
Post Reply