TexTools / FFXIV_TexTools_UI

GNU General Public License v3.0
377 stars 64 forks source link

[Bug]: Crash when game directory search dialog should open [linux, Wine] #288

Closed PatrickDahlin closed 4 months ago

PatrickDahlin commented 4 months ago

Expected behavior?

I expected a file-dialog to open

Actual behavior?

Crash

Steps to reproduce the problem

  1. This is the first launch of the application on linux, running under Wine

Error messages?

======================================================
System.NullReferenceException: Object reference not set to an instance of an object
  at FolderSelect.Reflector.CallAs2 (System.Type type, System.Object obj, System.String func, System.Object[] parameters) [0x00009] in <114aebcf563442d6ad851974052685b2>:0 
  at FolderSelect.Reflector.Call2 (System.Object obj, System.String func, System.Object[] parameters) [0x00007] in <114aebcf563442d6ad851974052685b2>:0 
  at FolderSelect.Reflector.Call (System.Object obj, System.String func, System.Object[] parameters) [0x00000] in <114aebcf563442d6ad851974052685b2>:0 
  at FolderSelect.FolderSelectDialog.ShowDialog (System.IntPtr hWndOwner) [0x00048] in <114aebcf563442d6ad851974052685b2>:0 
  at FolderSelect.FolderSelectDialog.ShowDialog () [0x00000] in <114aebcf563442d6ad851974052685b2>:0 
  at FFXIV_TexTools.ViewModels.MainViewModel.SetDirectories (System.Boolean valid) [0x00125] in <114aebcf563442d6ad851974052685b2>:0 
  at FFXIV_TexTools.ViewModels.MainViewModel..ctor (FFXIV_TexTools.MainWindow mainWindow) [0x00046] in <114aebcf563442d6ad851974052685b2>:0 
  at FFXIV_TexTools.MainWindow..ctor (System.String[] args) [0x000bf] in <114aebcf563442d6ad851974052685b2>:0 
  at FFXIV_TexTools.App.OnStartup (System.Windows.StartupEventArgs e) [0x00095] in <114aebcf563442d6ad851974052685b2>:0 
  at System.Windows.Application.<.ctor>b__1_0 (System.Object unused) [0x00014] in <054643fc37624f36bba954de580e7f5d>:0 
  at System.Windows.Threading.ExceptionWrapper.InternalRealCall (System.Delegate callback, System.Object args, System.Int32 numArgs) [0x000c6] in <e2ce87da8f3c4e8aba22e2866374e36c>:0 
  at System.Windows.Threading.ExceptionWrapper.TryCatchWhen (System.Object source, System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00004] in <e2ce87da8f3c4e8aba22e2866374e36c>:0 
======================================================

What aspect of FFXIV TexTools were you using, and what Item were you interacting with?

Component: Main application

Has this has been confirmed as an actual bug?

PatrickDahlin commented 4 months ago

Sidenote, pressing "Yes" on the error-dialog to copy to clipboard also throws an error:

======================================================
System.Runtime.InteropServices.COMException (0x800401D0)
  at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR (System.Int32 errorCode, System.IntPtr errorInfo) [0x0000b] in <f1249a148cfb4110b9a02139e12e4308>:0 
  at MS.Internal.SecurityHelper.ThrowExceptionForHR (System.Int32 hr) [0x00008] in <7c23f26fa11f49a0b34bd9e24de366da>:0 
  at System.Windows.Clipboard.Flush () [0x0002c] in <7c23f26fa11f49a0b34bd9e24de366da>:0 
  at System.Windows.Clipboard.CriticalSetDataObject (System.Object data, System.Boolean copy) [0x000a9] in <7c23f26fa11f49a0b34bd9e24de366da>:0 
  at System.Windows.Clipboard.SetDataObject (System.Object data, System.Boolean copy) [0x00001] in <7c23f26fa11f49a0b34bd9e24de366da>:0 
  at System.Windows.Clipboard.SetDataInternal (System.String format, System.Object data) [0x00025] in <7c23f26fa11f49a0b34bd9e24de366da>:0 
  at System.Windows.Clipboard.SetText (System.String text, System.Windows.TextDataFormat format) [0x0003f] in <7c23f26fa11f49a0b34bd9e24de366da>:0 
  at System.Windows.Clipboard.SetText (System.String text) [0x00015] in <7c23f26fa11f49a0b34bd9e24de366da>:0 
  at FFXIV_TexTools.App.DispatcherOnUnhandledException (System.Object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e) [0x00057] in <114aebcf563442d6ad851974052685b2>:0 
  at (wrapper delegate-invoke) <Module>.invoke_void_object_DispatcherUnhandledExceptionEventArgs(object,System.Windows.Threading.DispatcherUnhandledExceptionEventArgs)
  at System.Windows.Threading.Dispatcher.CatchException (System.Exception e) [0x00022] in <e2ce87da8f3c4e8aba22e2866374e36c>:0 
  at System.Windows.Threading.Dispatcher.CatchExceptionStatic (System.Object source, System.Exception e) [0x00008] in <e2ce87da8f3c4e8aba22e2866374e36c>:0 
  at System.Windows.Threading.ExceptionWrapper.CatchException (System.Object source, System.Exception e, System.Delegate catchHandler) [0x00040] in <e2ce87da8f3c4e8aba22e2866374e36c>:0 
  at System.Windows.Threading.ExceptionWrapper.TryCatchWhen (System.Object source, System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00030] in <e2ce87da8f3c4e8aba22e2866374e36c>:0 
  at System.Windows.Threading.Dispatcher.WrappedInvoke (System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00001] in <e2ce87da8f3c4e8aba22e2866374e36c>:0 
  at System.Windows.Threading.DispatcherOperation.InvokeImpl () [0x00099] in <e2ce87da8f3c4e8aba22e2866374e36c>:0 
  at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext (System.Object state) [0x00008] in <e2ce87da8f3c4e8aba22e2866374e36c>:0 
  at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper (System.Object obj) [0x0001d] in <e2ce87da8f3c4e8aba22e2866374e36c>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <f1249a148cfb4110b9a02139e12e4308>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <f1249a148cfb4110b9a02139e12e4308>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <f1249a148cfb4110b9a02139e12e4308>:0 
  at MS.Internal.CulturePreservingExecutionContext.Run (MS.Internal.CulturePreservingExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00047] in <e2ce87da8f3c4e8aba22e2866374e36c>:0 
  at System.Windows.Threading.DispatcherOperation.Invoke () [0x00016] in <e2ce87da8f3c4e8aba22e2866374e36c>:0 
  at System.Windows.Threading.Dispatcher.ProcessQueue () [0x00114] in <e2ce87da8f3c4e8aba22e2866374e36c>:0 
  at System.Windows.Threading.Dispatcher.WndProcHook (System.IntPtr hwnd, System.Int32 msg, System.IntPtr wParam, System.IntPtr lParam, System.Boolean& handled) [0x00061] in <e2ce87da8f3c4e8aba22e2866374e36c>:0 
  at MS.Win32.HwndWrapper.WndProc (System.IntPtr hwnd, System.Int32 msg, System.IntPtr wParam, System.IntPtr lParam, System.Boolean& handled) [0x0003a] in <e2ce87da8f3c4e8aba22e2866374e36c>:0 
  at MS.Win32.HwndSubclass.DispatcherCallbackOperation (System.Object o) [0x00042] in <e2ce87da8f3c4e8aba22e2866374e36c>:0 
  at System.Windows.Threading.ExceptionWrapper.InternalRealCall (System.Delegate callback, System.Object args, System.Int32 numArgs) [0x000c6] in <e2ce87da8f3c4e8aba22e2866374e36c>:0 
  at System.Windows.Threading.ExceptionWrapper.TryCatchWhen (System.Object source, System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) [0x00004] in <e2ce87da8f3c4e8aba22e2866374e36c>:0 
======================================================
Squall-Leonhart commented 4 months ago

Linux is not within our immediate support scope, and this appears to be a winetricks problem.