CompactGUI icon indicating copy to clipboard operation
CompactGUI copied to clipboard

Compact gui Crashes when Accessing network drive and clicking " Choose folder"

Open Evonos opened this issue 4 months ago • 2 comments

Soo Compact gui crashes when i choose a Network folder Example : "\WDMYCLOUDMIRROR\WD MY cloud\Game Backups"

Event Viewer gave me these Errors ( none from Compact gui it just crashes )

Machine is a fully updated Windows 11 24 2h.

Compact gui Version is 4.0.0 Beta 6

Application: CompactGUI.exe
CoreCLR Version: 9.0.825.36511
.NET Version: 9.0.8
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.ThrowHelper.ThrowNoMatchException()
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   at CompactGUI.Core.SharedMethods.VerifyFolder(String folder)
   at CompactGUI.Helper.GetInvalidFolders(String[] folderPaths)
   at CompactGUI.HomeViewModel.AddFoldersAsync(IEnumerable`1 folderPaths)
   at CompactGUI.HomePage.AddFolderButton_Click(Object sender, RoutedEventArgs e)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   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 CompactGUI.Application.Main()

Category: CompactGUI.Application
EventId: 0

Unhandled domain exception: Sequence contains no matching element

Exception: 
System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.ThrowHelper.ThrowNoMatchException()
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   at CompactGUI.Core.SharedMethods.VerifyFolder(String folder)
   at CompactGUI.Helper.GetInvalidFolders(String[] folderPaths)
   at CompactGUI.HomeViewModel.AddFoldersAsync(IEnumerable`1 folderPaths)
   at CompactGUI.HomePage.AddFolderButton_Click(Object sender, RoutedEventArgs e)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   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 CompactGUI.Application.Main()
Category: CompactGUI.Application
EventId: 0

Unhandled exception in application: Sequence contains no matching element

Exception: 
System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.ThrowHelper.ThrowNoMatchException()
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   at CompactGUI.Core.SharedMethods.VerifyFolder(String folder)
   at CompactGUI.Helper.GetInvalidFolders(String[] folderPaths)
   at CompactGUI.HomeViewModel.AddFoldersAsync(IEnumerable`1 folderPaths)
   at CompactGUI.HomePage.AddFolderButton_Click(Object sender, RoutedEventArgs e)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   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)

Btw thanks for developing this tool and making the Xpress mode so much easier to use !

Evonos avatar Aug 22 '25 12:08 Evonos

Hmmm, CompactGUI doesn't technically support network drives (since you'd run into notorious issues when trying to access compressed data on other machines) but it still shouldn't be crashing. The crash is because the folder validation doesn't know how to handle network drives but I'll fix that :)

Iridium-IO avatar Aug 23 '25 07:08 Iridium-IO

Hmmm, CompactGUI doesn't technically support network drives (since you'd run into notorious issues when trying to access compressed data on other machines) but it still shouldn't be crashing. The crash is because the folder validation doesn't know how to handle network drives but I'll fix that :)

hey thanks ! , ye as i use only windows machines for my network / for this folder it would be a helpfull feature ( maybe add a small note in the app that this folder is then only working for windows machines maybe or something ) thanks again for maintaining this tool and all the people helping with this , its insane that Microsoft didnt add a easier way for this awesome compression yet.

Evonos avatar Aug 23 '25 10:08 Evonos