Skip to content

bug: Crash after trying to pull folder when folder with the same name was removed in target directory while using folder picker #285

@juliazero

Description

@juliazero

When trying to pull folder, I deleted folder with the same name in the destination directory using folder selector. The following error appeared:

Log
Application: ADB Explorer.exe
CoreCLR Version: 9.0.1125.51716
.NET Version: 9.0.11
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException: Nie można odnaleźć określonego pliku. (0x80070002)
   at Vanara.PInvoke.Shell32.ShellUtil.GetShellItemForPath(String path, Boolean forceIfNotExist)
   at Vanara.Windows.Shell.ShellItem.Open(String path)
   at ADB_Explorer.Services.AppInfra.FileActionLogic.PullFiles(String targetPath) in C:\Users\alexS\source\repos\ADB Explorer\ADB Explorer\Services\AppInfra\FileAction\FileActionLogic.cs:line 1097
   at ADB_Explorer.Services.AppActions.<>c.<.cctor>b__12_28() in C:\Users\alexS\source\repos\ADB Explorer\ADB Explorer\Services\AppInfra\FileAction\FileAction.cs:line 155
   at ADB_Explorer.Helpers.CommandHandler.Execute(Object parameter) in C:\Users\alexS\source\repos\ADB Explorer\ADB Explorer\Helpers\AppInfra\CommandHandler.cs:line 17
   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)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(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 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)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at ADB_Explorer.App.Main()

After restarting ADB Explorer, pull was successful without any problems.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions