IridiumIO / CompactGUI

Transparently compress active games and programs using Windows 10/11 APIs
GNU General Public License v3.0
4.71k stars 223 forks source link

The program crashes when trying to compress a folder on the HDD #430

Closed Artzorro closed 1 week ago

Artzorro commented 3 weeks ago

Hello, I have a problem with version 3 of the program. I have SSD (C, E) and HDD (F), when I try to select a folder in “F://artzo/” the program crashes, but on C and E it works fine. The program crashes with most folders, but some do not crash. Program version 2.6.2 works normally. I'm using Windows 10. The file system of both drives is NTFS.

https://github.com/IridiumIO/CompactGUI/assets/108322922/7734c209-9664-48d3-b1e2-c855bf7697f5

Iridium-IO commented 3 weeks ago

Can you open the Event Viewer on your computer and find the crash log in there? I'm not at my computer and can't remember exactly what subsection it would be under but if you google "find application crash log in event viewer" it should guide you

Artzorro commented 3 weeks ago

Can you open the Event Viewer on your computer and find the crash log in there? I'm not at my computer and can't remember exactly what subsection it would be under but if you google "find application crash log in event viewer" it should guide you

When the application crashes, 2 errors appear:

Application: CompactGUI (1).exe CoreCLR Version: 6.0.1322.58009 .NET Version: 6.0.13 Description: The process was terminated due to an unhandled exception. Exception Info: System.InvalidCastException: Unable to cast object of type 'System.Security.Principal.SecurityIdentifier' to type 'System.Security.Principal.NTAccount'. at CompactGUI.Core.Analyser.HasDirectoryWritePermission() at CompactGUI.MainViewModel.AnalyseBegin() at System.Threading.Tasks.Task.<>c.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 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 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) 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.Threading.Dispatcher.PushFrame(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.Run() at System.Windows.Application.RunDispatcher(Object ignore) at System.Windows.Application.RunInternal(Window window) at System.Windows.Application.Run() at CompactGUI.Application.Main()

and

Имя сбойного приложения: CompactGUI (1).exe, версия: 3.0.0.0, метка времени: 0x65ab0000 Имя сбойного модуля: KERNELBASE.dll, версия: 10.0.19041.4355, метка времени: 0xd7762934 Код исключения: 0xe0434352 Смещение ошибки: 0x000000000002ba99 Идентификатор сбойного процесса: 0x3064 Время запуска сбойного приложения: 0x01dabbf07c12f055 Путь сбойного приложения: C:\Users\artzo\Desktop\CompactGUI (1).exe Путь сбойного модуля: C:\Windows\System32\KERNELBASE.dll Идентификатор отчета: 3163fafd-d920-4924-8ed1-0282af83128b Полное имя сбойного пакета: Код приложения, связанного со сбойным пакетом:

mmc_iVbE3UR1Bp mmc_zPmMjFVWbl

Iridium-IO commented 3 weeks ago

Looks like this issue #356