Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced Combat Tracker can't load any plugins #133

Open
marzent opened this issue Jan 16, 2022 · 14 comments
Open

Advanced Combat Tracker can't load any plugins #133

marzent opened this issue Jan 16, 2022 · 14 comments

Comments

@marzent
Copy link

marzent commented Jan 16, 2022

https://advancedcombattracker.com/ works just fine itself on wine-mono, however it is nearly useless without enabling add-ons inside it which is correctly broken since wine-mono does not load any plug-in dlls it seems...

Works just fine with a Microsoft .net install inside a fresh wine prefix.

2 examples of it not loading:

System.TypeLoadException - Could not load type of field 'FFXIV_ACT_Plugin.FFXIV_ACT_Plugin:<DataSubscription>k__BackingField' (0) due to: Could not load file or assembly 'FFXIV_ACT_Plugin.Common, Version=2.6.2.0, Culture=neutral, PublicKeyToken=9f740ac505d6bc50' or one of its dependencies.
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00029] in <fc7a268f31bd4edfa85ef2c6be032bd5>:0 
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00095] in <fc7a268f31bd4edfa85ef2c6be032bd5>:0 
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0x00009] in <fc7a268f31bd4edfa85ef2c6be032bd5>:0 
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in <fc7a268f31bd4edfa85ef2c6be032bd5>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in <fc7a268f31bd4edfa85ef2c6be032bd5>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <fc7a268f31bd4edfa85ef2c6be032bd5>:0 
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <fc7a268f31bd4edfa85ef2c6be032bd5>:0 
  at System.Reflection.Assembly.CreateInstance (System.String typeName, System.Boolean ignoreCase) [0x00016] in <fc7a268f31bd4edfa85ef2c6be032bd5>:0 
  at System.Reflection.Assembly.CreateInstance (System.String typeName) [0x00000] in <fc7a268f31bd4edfa85ef2c6be032bd5>:0 
  at Advanced_Combat_Tracker.FormActMain.pluginPanelEnabledChecked (System.Object sender, System.EventArgs e) [0x00551] in <7f12e2a7fdc5472fb18ddef6d7780232>:0 
  at System.Windows.Forms.CheckBox.OnCheckedChanged (System.EventArgs e) [0x0006a] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0 
  at System.Windows.Forms.CheckBox.set_CheckState (System.Windows.Forms.CheckState value) [0x0007e] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0 
  at System.Windows.Forms.CheckBox.OnClick (System.EventArgs e) [0x00020] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0 
  at System.Windows.Forms.CheckBox.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00089] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0 
  at System.Windows.Forms.Control.WmMouseUp (System.Windows.Forms.Message& m, System.Windows.Forms.MouseButtons button, System.Int32 clicks) [0x001c3] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x005a0] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0 
  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x0011f] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.OnMessage (System.Windows.Forms.Message& m) [0x00001] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x000b3] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0 
  at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x00025] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0 

System.Reflection.RuntimeConstructorInfo, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

and

*****
***** 2022-01-16T19:00:01 - Enabling plugin: C:\users\crossover\Application Data\Advanced Combat Tracker\Plugins\OverlayPlugin\OverlayPlugin.dll
***** 2022-01-16T19:00:01 -
System.TypeLoadException: Could not load type of field 'RainbowMage.OverlayPlugin.PluginLoader:pluginMain' (0) due to: Could not load file or assembly 'OverlayP
lugin.Core, Version=0.18.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00029] in <fc7a26
8f31bd4edfa85ef2c6be032bd5>:0
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00095] in <fc7a268f31bd4edfa85ef2c6be032bd5>:0
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0
x00009] in <fc7a268f31bd4edfa85ef2c6be032bd5>:0
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExcepti
ons, System.Threading.StackCrawlMark& stackMark) [0x00027] in <fc7a268f31bd4edfa85ef2c6be032bd5>:0
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in <fc7a268f31bd4edfa85ef2c6be032bd5>
:0
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <fc7a268f31bd4edfa85ef2c6be032bd5>:0
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <fc7a268f31bd4edfa85ef2c6be032bd5>:0
  at System.Reflection.Assembly.CreateInstance (System.String typeName, System.Boolean ignoreCase) [0x00016] in <fc7a268f31bd4edfa85ef2c6be032bd5>:0
  at System.Reflection.Assembly.CreateInstance (System.String typeName) [0x00000] in <fc7a268f31bd4edfa85ef2c6be032bd5>:0
  at Advanced_Combat_Tracker.FormActMain.pluginPanelEnabledChecked (System.Object sender, System.EventArgs e) [0x00551] in <dd6a4022920b4680967f304bbfe630f0>:0 
  at System.Windows.Forms.CheckBox.OnCheckedChanged (System.EventArgs e) [0x0006a] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.CheckBox.set_CheckState (System.Windows.Forms.CheckState value) [0x0007e] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.CheckBox.set_Checked (System.Boolean value) [0x00012] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.CheckBox.set_Checked(bool)
  at Advanced_Combat_Tracker.FormGetPlugins.btnUsePlugin_Click (System.Object sender, System.EventArgs e) [0x001b3] in <dd6a4022920b4680967f304bbfe630f0>:0
cker.FormActMain.WriteExceptionLog (System.Exception ex, System.String MoreInfo) [0x00000] in <dd6a4022920b4680967f304bbfe630f0>:0
  at Advanced_Combat_Tracker.FormGetPlugins.btnUsePlugin_Click (System.Object sender, System.EventArgs e) [0x00000] in <dd6a4022920b4680967f304bbfe630f0>:0
  at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control.WmMouseUp (System.Windows.Forms.Message& m, System.Windows.Forms.MouseButtons button, System.Int32 clicks) [0x00000] in <cee7b
b8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control+ControlNativeWindow.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindowProc.Callback (System.IntPtr hWnd, System.Int32 msg, System.IntPtr wparam, System.IntPtr lparam) [0x00000] in <cee7bb8e868
44b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW (System.Windows.Forms.NativeMethods+MSG& ) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop (System.IntPtr dwComponent
ID, System.Int32 reason, System.Int32 pvLoopData) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x00000] in <cee
7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Application+ThreadContext.RunMessageLoop (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x00000] in <cee7bb8e
86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Application.DoEvents () [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at Advanced_Combat_Tracker.FormGetPlugins.lbPluginTitles_SelectedIndexChanged (System.Object sender, System.EventArgs e) [0x00000] in <dd6a4022920b4680967f304
bbfe630f0>:0
  at System.Windows.Forms.ListBox.OnSelectedIndexChanged (System.EventArgs e) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.ListBox.WmReflectCommand (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.ListBox.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control+ControlNativeWindow.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindowProc.Callback (System.IntPtr hWnd, System.Int32 msg, System.IntPtr wparam, System.IntPtr lparam) [0x00000] in <cee7bb8e868
44b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.UnsafeNativeMethods.SendMessage (System.Runtime.InteropServices.HandleRef , System.Int32 , System.IntPtr , System.IntPtr ) [0x00000] i
n <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control.SendMessage (System.Int32 msg, System.IntPtr wparam, System.IntPtr lparam) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0 
  at System.Windows.Forms.Control.ReflectMessage (System.IntPtr hWnd, System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control.WmCommand (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.GroupBox.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control+ControlNativeWindow.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindowProc.Callback (System.IntPtr hWnd, System.Int32 msg, System.IntPtr wparam, System.IntPtr lparam) [0x00000] in <cee7bb8e868
44b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc (System.IntPtr , System.IntPtr , System.Int32 , System.IntPtr , System.IntPtr ) [0x00000] in <cee7b
b8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindowProc.DefWndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindow.DefWndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control.DefWndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control.WmMouseUp (System.Windows.Forms.Message& m, System.Windows.Forms.MouseButtons button, System.Int32 clicks) [0x00000] in <cee7b
b8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.ListBox.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control+ControlNativeWindow.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindowProc.Callback (System.IntPtr hWnd, System.Int32 msg, System.IntPtr wparam, System.IntPtr lparam) [0x00000] in <cee7bb8e868
44b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW (System.Windows.Forms.NativeMethods+MSG& ) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop (System.IntPtr dwComponent
ID, System.Int32 reason, System.Int32 pvLoopData) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x00000] in <cee
7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Application+ThreadContext.RunMessageLoop (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x00000] in <cee7bb8e
86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Application.DoEvents () [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at Advanced_Combat_Tracker.FormGetPlugins.lbPluginTitles_SelectedIndexChanged (System.Object sender, System.EventArgs e) [0x00000] in <dd6a4022920b4680967f304
bbfe630f0>:0
  at System.Windows.Forms.ListBox.OnSelectedIndexChanged (System.EventArgs e) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.ListBox.WmReflectCommand (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.ListBox.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control+ControlNativeWindow.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindowProc.Callback (System.IntPtr hWnd, System.Int32 msg, System.IntPtr wparam, System.IntPtr lparam) [0x00000] in <cee7bb8e868
44b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.UnsafeNativeMethods.SendMessage (System.Runtime.InteropServices.HandleRef , System.Int32 , System.IntPtr , System.IntPtr ) [0x00000] i
n <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control.SendMessage (System.Int32 msg, System.IntPtr wparam, System.IntPtr lparam) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0 
  at System.Windows.Forms.Control.ReflectMessage (System.IntPtr hWnd, System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control.WmCommand (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.GroupBox.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control+ControlNativeWindow.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindowProc.Callback (System.IntPtr hWnd, System.Int32 msg, System.IntPtr wparam, System.IntPtr lparam) [0x00000] in <cee7bb8e868
44b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc (System.IntPtr , System.IntPtr , System.Int32 , System.IntPtr , System.IntPtr ) [0x00000] in <cee7b
b8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindowProc.DefWndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindow.DefWndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control.DefWndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control.WmMouseUp (System.Windows.Forms.Message& m, System.Windows.Forms.MouseButtons button, System.Int32 clicks) [0x00000] in <cee7b
b8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.ListBox.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control+ControlNativeWindow.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindowProc.Callback (System.IntPtr hWnd, System.Int32 msg, System.IntPtr wparam, System.IntPtr lparam) [0x00000] in <cee7bb8e868
44b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW (System.Windows.Forms.NativeMethods+MSG& ) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop (System.IntPtr dwComponent
ID, System.Int32 reason, System.Int32 pvLoopData) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x00000] in <cee
7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Application+ThreadContext.RunMessageLoop (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x00000] in <cee7bb8e
86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at Advanced_Combat_Tracker.ActLoader.Main (System.String[] args) [0x00000] in <dd6a4022920b4680967f304bbfe630f0>:0
*****

@marzent
Copy link
Author

marzent commented Jan 16, 2022

Some of these plugins are also open-source so they could be modified in order to facilitate loading with mono

@marzent
Copy link
Author

marzent commented Jan 16, 2022

It also has the ability to load .cs files however these also fail

System.IO.FileNotFoundException: Could not find file 'C:\var\folders\1s\4xth3c194s97yc47376b73_h0000gn\T\AdvancedCombatTracker\ACT_English_Parser.cs'.
File name: 'C:\var\folders\1s\4xth3c194s97yc47376b73_h0000gn\T\AdvancedCombatTracker\ACT_English_Parser.cs'
  at System.IO.FileInfo.MoveTo (System.String destFileName) [0x00078] in <fc7a268f31bd4edfa85ef2c6be032bd5>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileInfo.MoveTo(string)
  at Advanced_Combat_Tracker.FormStartupWizard.btnUsePlugin_Click (System.Object sender, System.EventArgs e) [0x004e3] in <dd6a4022920b4680967f304bbfe630f0>:0 
cker.FormActMain.WriteExceptionLog (System.Exception ex, System.String MoreInfo) [0x00000] in <dd6a4022920b4680967f304bbfe630f0>:0
  at Advanced_Combat_Tracker.FormStartupWizard.btnUsePlugin_Click (System.Object sender, System.EventArgs e) [0x00000] in <dd6a4022920b4680967f304bbfe630f0>:0 
  at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control.WmMouseUp (System.Windows.Forms.Message& m, System.Windows.Forms.MouseButtons button, System.Int32 clicks) [0x00000] in <cee7b
b8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control+ControlNativeWindow.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.NativeWindowProc.Callback (System.IntPtr hWnd, System.Int32 msg, System.IntPtr wparam, System.IntPtr lparam) [0x00000] in <cee7bb8e868
44b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW (System.Windows.Forms.NativeMethods+MSG& ) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop (System.IntPtr dwComponent
ID, System.Int32 reason, System.Int32 pvLoopData) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x00000] in <cee
7bb8e86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Application+ThreadContext.RunMessageLoop (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x00000] in <cee7bb8e
86844b3fa4cff51ffb89ccdc>:0
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000] in <cee7bb8e86844b3fa4cff51ffb89ccdc>:0
  at Advanced_Combat_Tracker.ActLoader.Main (System.String[] args) [0x00000] in <dd6a4022920b4680967f304bbfe630f0>:0

Interestingly that file at that exact location inside the prefix exists

@madewokherd
Copy link
Owner

There's a good chance the TypeLoadException's are caused by reflection methods failing to call module constructors, which I noticed working on something else but never committed a proper fix for. I'll get back to you when I have a fix for that.

A WINEDEBUG=+file log might give some indication of what's happening with that Move operation. Looking at the code, I think this means GetFileAttributesEx is failing for some reason.

@marzent
Copy link
Author

marzent commented Jan 19, 2022

There's a good chance the TypeLoadException's are caused by reflection methods failing to call module constructors, which I noticed working on something else but never committed a proper fix for. I'll get back to you when I have a fix for that.

Thanks for looking into it and good to know that it is (maybe) fixable.

A WINEDEBUG=+file log might give some indication of what's happening with that Move operation. Looking at the code, I think this means GetFileAttributesEx is failing for some reason.

The log excerpts below are created with cx-wine, however stock wine shows the same behaviour, so I think it shouldn't be too much of an issue...

Since the whole log is like over 30 thousand lines just quickly going in and reproducing the issue I just copied the (hopefully) relevant sections here

00ec:trace:file:NtQueryDirectoryFile (0x424 0x0 0x0 0x0 0x21e408 0x8cb40a0 0x00001000 0x00000002 0x00000000 <null> 0x00000000
00ec:trace:file:append_entry long L"." short L"" mask <null>
00ec:trace:file:append_entry long L".." short L"" mask <null>
00ec:trace:file:append_entry long L"ACT_English_Parser.cs" short L"ACT_~1CD.CS" mask <null>
00ec:trace:file:init_cached_dir_data mask <null> found 3 files
00ec:trace:file:init_cached_dir_data L"." L""
00ec:trace:file:init_cached_dir_data L".." L""
00ec:trace:file:init_cached_dir_data L"ACT_English_Parser.cs" L"ACT_~1CD.CS"
00ec:trace:file:NtQueryDirectoryFile => 0 (254)
00ec:trace:file:NtQueryDirectoryFile (0x424 0x0 0x0 0x0 0x21e408 0x8cb40a0 0x00001000 0x00000002 0x00000000 <null> 0x00000000
00ec:trace:file:NtQueryDirectoryFile => 80000006 (0)
00ec:trace:file:DeleteFileW L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\ACT_English_Parser.cs"
00ec:trace:file:RtlDosPathNameToNtPathName_U_WithStatus (L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\ACT_English_Parser.cs",000000000021E6B0,0000000000000000,0000000000000000)
00ec:trace:file:RtlGetFullPathName_U (L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\ACT_English_Parser.cs" 520 000000000021E3C0 0000000000000000)
00ec:trace:file:NtCreateFile handle=0x21e6a8 access=00110000 name=L"\\??\\C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\ACT_English_Parser.cs" objattr=00000040 root=0x0 sec=0x0 io=0x21e6c0 alloc_size=0x0 attr=00000000 sharing=00000007 disp=1 options=00001040 ea=0x0.0x00000000
00ec:trace:file:nt_to_unix_file_name L"\\??\\C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\ACT_English_Parser.cs" -> "/Users/marc_aurel/Library/Application Support/CrossOver/Bottles/mono7/dosdevices/c:/var/folders/1s/4xth3c194s97yc47376b73_h0000gn/T/AdvancedCombatTracker/ACT_English_Parser.cs"

~ 2000 lines later

00ec:trace:file:GetFileAttributesExW L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\ACT_English_Parser.cs" 0 000000000103C4B0
00ec:trace:file:RtlDosPathNameToNtPathName_U_WithStatus (L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\ACT_English_Parser.cs",000000000021D3C0,0000000000000000,0000000000000000)
00ec:trace:file:RtlGetFullPathName_U (L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\ACT_English_Parser.cs" 520 000000000021D100 0000000000000000)
00ec:trace:file:nt_to_unix_file_name L"\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\ACT_English_Parser.cs" not found in /Users/marc_aurel/Library/Application Support/CrossOver/Bottles/mono7/dosdevices/c:/var/folders/1s/4xth3c194s97yc47376b73_h0000gn/T/AdvancedCombatTracker
00ec:warn:file:NtQueryFullAttributesFile L"\\??\\C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\ACT_English_Parser.cs" not found (c0000034)
00ec:trace:file:FindFirstFileExW L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\ACT_English_Parser.cs" 1 000000000021D150 0 0000000000000000 0
00ec:trace:file:RtlDosPathNameToNtPathName_U_WithStatus (L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\ACT_English_Parser.cs",000000000021CF40,000000000021CF38,0000000000000000)
00ec:trace:file:RtlGetFullPathName_U (L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\ACT_English_Parser.cs" 520 000000000021CC20 000000000021CF38)
00ec:trace:file:NtCreateFile handle=0x8e2c988 access=80100000 name=L"\\??\\C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\" objattr=00000040 root=0x0 sec=0x0 io=0x21cf50 alloc_size=0x0 attr=00000000 sharing=00000003 disp=1 options=00004021 ea=0x0.0x00000000
00ec:trace:file:nt_to_unix_file_name L"\\??\\C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\" -> "/Users/marc_aurel/Library/Application Support/CrossOver/Bottles/mono7/dosdevices/c:/var/folders/1s/4xth3c194s97yc47376b73_h0000gn/T/AdvancedCombatTracker/"
00ec:trace:file:NtQueryDirectoryFile (0x2c0 0x0 0x0 0x0 0x21cf50 0x8e2c9e4 0x0000025e 0x00000003 0x00000000 L"ACT_English_Parser.cs" 0x00000001
00ec:trace:file:append_entry long L"." short L"" mask L"ACT_English_Parser.cs"
00ec:trace:file:append_entry long L".." short L"" mask L"ACT_English_Parser.cs"
00ec:trace:file:append_entry long L"x5fq8vwi.jpf" short L"" mask L"ACT_English_Parser.cs"
00ec:trace:file:init_cached_dir_data mask L"ACT_English_Parser.cs" found 0 files
00ec:trace:file:NtQueryDirectoryFile => c000000f (0)
00ec:trace:file:RtlGetCurrentDirectory_U (522 0000000006047930)
00ec:trace:file:RtlGetCurrentDirectory_U (522 0000000006047930)
00ec:trace:file:GetFileAttributesExW L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker" 0 000000000103CD10
00ec:trace:file:RtlDosPathNameToNtPathName_U_WithStatus (L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker",000000000021D2D0,0000000000000000,0000000000000000)
00ec:trace:file:RtlGetFullPathName_U (L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker" 520 000000000021D010 0000000000000000)
00ec:trace:file:nt_to_unix_file_name L"\\??\\C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker" -> "/Users/marc_aurel/Library/Application Support/CrossOver/Bottles/mono7/dosdevices/c:/var/folders/1s/4xth3c194s97yc47376b73_h0000gn/T/AdvancedCombatTracker"
00ec:trace:file:GetFileAttributesExW L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\x5fq8vwi.jpf" 0 0000000001289638
00ec:trace:file:RtlDosPathNameToNtPathName_U_WithStatus (L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\x5fq8vwi.jpf",000000000021D2D0,0000000000000000,0000000000000000)
00ec:trace:file:RtlGetFullPathName_U (L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\x5fq8vwi.jpf" 520 000000000021D010 0000000000000000)
00ec:trace:file:nt_to_unix_file_name L"\\??\\C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\x5fq8vwi.jpf" -> "/Users/marc_aurel/Library/Application Support/CrossOver/Bottles/mono7/dosdevices/c:/var/folders/1s/4xth3c194s97yc47376b73_h0000gn/T/AdvancedCombatTracker/x5fq8vwi.jpf"
00ec:trace:file:MoveFileWithProgressW (L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\x5fq8vwi.jpf",L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\ACT_English_Parser.cs",0000000000000000,0000000000000000,0002)
00ec:trace:file:RtlDosPathNameToNtPathName_U_WithStatus (L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\x5fq8vwi.jpf",000000000021D510,0000000000000000,0000000000000000)
00ec:trace:file:RtlGetFullPathName_U (L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\x5fq8vwi.jpf" 520 000000000021D200 0000000000000000)
00ec:trace:file:NtCreateFile handle=0x21d500 access=00110000 name=L"\\??\\C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\x5fq8vwi.jpf" objattr=00000040 root=0x0 sec=0x0 io=0x21d520 alloc_size=0x0 attr=00000000 sharing=00000007 disp=1 options=00000020 ea=0x0.0x00000000
00ec:trace:file:nt_to_unix_file_name L"\\??\\C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\x5fq8vwi.jpf" -> "/Users/marc_aurel/Library/Application Support/CrossOver/Bottles/mono7/dosdevices/c:/var/folders/1s/4xth3c194s97yc47376b73_h0000gn/T/AdvancedCombatTracker/x5fq8vwi.jpf"
00ec:trace:file:NtQueryInformationFile (0x2c0,0x21d520,0x21d530,0x00000028,0x00000004)
00ec:trace:file:RtlDosPathNameToNtPathName_U_WithStatus (L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\ACT_English_Parser.cs",000000000021D510,0000000000000000,0000000000000000)
00ec:trace:file:RtlGetFullPathName_U (L"C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\ACT_English_Parser.cs" 520 000000000021D200 0000000000000000)
00ec:trace:file:NtSetInformationFile (0x2c0,0x21d520,0x4728500,0x000000d8,0x0000000a)
00ec:trace:file:nt_to_unix_file_name L"\\??\\C:\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\ACT_English_Parser.cs" -> "/Users/marc_aurel/Library/Application Support/CrossOver/Bottles/mono7/dosdevices/c:/var/folders/1s/4xth3c194s97yc47376b73_h0000gn/T/AdvancedCombatTracker/ACT_English_Parser.cs"
00ec:trace:file:RtlGetCurrentDirectory_U (522 0000000006AD6C90)
00ec:trace:file:GetFileAttributesExW L"C:\\users\\crossover\\Application Data\\Advanced Combat Tracker\\Plugins\\ACT_English_Parser.cs" 0 000000000103E358
00ec:trace:file:RtlDosPathNameToNtPathName_U_WithStatus (L"C:\\users\\crossover\\Application Data\\Advanced Combat Tracker\\Plugins\\ACT_English_Parser.cs",000000000021D750,0000000000000000,0000000000000000)
00ec:trace:file:RtlGetFullPathName_U (L"C:\\users\\crossover\\Application Data\\Advanced Combat Tracker\\Plugins\\ACT_English_Parser.cs" 520 000000000021D490 0000000000000000)
00ec:trace:file:nt_to_unix_file_name L"\\users\\crossover\\Application Data\\Advanced Combat Tracker\\Plugins\\ACT_English_Parser.cs" not found in /Users/marc_aurel/Library/Application Support/CrossOver/Bottles/mono7/dosdevices/c:/users/crossover/Application Data/Advanced Combat Tracker/Plugins
00ec:warn:file:NtQueryFullAttributesFile L"\\??\\C:\\users\\crossover\\Application Data\\Advanced Combat Tracker\\Plugins\\ACT_English_Parser.cs" not found (c0000034)
00ec:trace:file:FindFirstFileExW L"C:\\users\\crossover\\Application Data\\Advanced Combat Tracker\\Plugins\\ACT_English_Parser.cs" 1 000000000021D4E0 0 0000000000000000 0
00ec:trace:file:RtlDosPathNameToNtPathName_U_WithStatus (L"C:\\users\\crossover\\Application Data\\Advanced Combat Tracker\\Plugins\\ACT_English_Parser.cs",000000000021D2D0,000000000021D2C8,0000000000000000)
00ec:trace:file:RtlGetFullPathName_U (L"C:\\users\\crossover\\Application Data\\Advanced Combat Tracker\\Plugins\\ACT_English_Parser.cs" 520 000000000021CFB0 000000000021D2C8)
00ec:trace:file:NtCreateFile handle=0x8e2c988 access=80100000 name=L"\\??\\C:\\users\\crossover\\Application Data\\Advanced Combat Tracker\\Plugins\\" objattr=00000040 root=0x0 sec=0x0 io=0x21d2e0 alloc_size=0x0 attr=00000000 sharing=00000003 disp=1 options=00004021 ea=0x0.0x00000000
00ec:trace:file:nt_to_unix_file_name L"\\??\\C:\\users\\crossover\\Application Data\\Advanced Combat Tracker\\Plugins\\" -> "/Users/marc_aurel/Library/Application Support/CrossOver/Bottles/mono7/dosdevices/c:/users/crossover/Application Data/Advanced Combat Tracker/Plugins/"
00ec:trace:file:NtQueryDirectoryFile (0x2c0 0x0 0x0 0x0 0x21d2e0 0x8e2c9e4 0x0000025e 0x00000003 0x00000000 L"ACT_English_Parser.cs" 0x00000001
00ec:trace:file:append_entry long L"." short L"" mask L"ACT_English_Parser.cs"
00ec:trace:file:append_entry long L".." short L"" mask L"ACT_English_Parser.cs"
00ec:trace:file:init_cached_dir_data mask L"ACT_English_Parser.cs" found 0 files

If you need the whole log just let me know, I could prob upload it somewhere

@madewokherd
Copy link
Owner

00ec:trace:file:nt_to_unix_file_name L"\\var\\folders\\1s\\4xth3c194s97yc47376b73_h0000gn\\T\\AdvancedCombatTracker\\ACT_English_Parser.cs" not found in /Users/marc_aurel/Library/Application Support/CrossOver/Bottles/mono7/dosdevices/c:/var/folders/1s/4xth3c194s97yc47376b73_h0000gn/T/AdvancedCombatTracker

Are you sure it exists in that exact path?

@marzent
Copy link
Author

marzent commented Jan 21, 2022

even now this file exists at /Users/marc_aurel/Library/Application Support/CrossOver/Bottles/mono7/drive_c/var/folders/1s/4xth3c194s97yc47376b73_h0000gn/T/AdvancedCombatTracker/ACT_English_Parser.cs with valid c# in it, so dunno...

Might it be that the file path is too long, I think I saw a similar issue with MS .net and wine some time ago, however I did get an exception that clearly stated that

@marzent
Copy link
Author

marzent commented Jan 21, 2022

Just reran the same plugin with .net and it seems the equivalent temporary location this file ends up is "C:\\users\\crossover\\Temp\\AdvancedCombatTracker\\ACT_English_Parser.cs"

@madewokherd
Copy link
Owner

Can you give an example of a .cs plugin so I can try this myself?

@marzent
Copy link
Author

marzent commented Feb 5, 2022

Sry for the late reply but this is the EQ2 parsing plugin I was trying to load https://file.io/unMpYY5dtbaR ...
It's the same as if it were to load via the startup wizard

EDIT: Also attached the file to the comment since file.io is only 1 time use and probably not the best idea to link publicly
ACT_English_Parser.cs.zip

@marzent
Copy link
Author

marzent commented Feb 5, 2022

Just retested with wine 7.1 and wine-mono 7.1.2 and unfortunately its still the same behaviour :(

@marzent
Copy link
Author

marzent commented Feb 5, 2022

Actually with madewokherd/mono#24 the main FFXIV parsing dll now loads but fails differently

*****
***** 2022-02-05T20:42:44 - Enabling plugin: C:\users\marc_aurel\AppData\Roaming\Advanced Combat Tracker\Plugins\FFXIV_ACT_Plugin.dll
***** 2022-02-05T20:42:45 - FFXIV_ACT_Plugin InitPlugin Failed.
System.Security.SecurityException: GetCurrentToken returned error 24231936
  at System.Security.Principal.WindowsIdentity.GetCurrentInternal (System.Security.Principal.TokenAccessLevels desiredAccess, System.Boolean threadOnly) [0x0003a] in <fc4d686a5a5b43cf8
d5a1bf25f38c320>:0
  at System.Security.Principal.WindowsIdentity.GetCurrent () [0x00000] in <fc4d686a5a5b43cf8d5a1bf25f38c320>:0
  at FFXIV_ACT_Plugin.Memory.ProcessManager.SetIsAdministratorFlag () [0x00006] in <0f34f3e9c95749ff8894bb9efd024b26>:0
  at FFXIV_ACT_Plugin.Memory.ProcessManager..ctor (FFXIV_ACT_Plugin.Config.ISettingsMediator settingsManager, FFXIV_ACT_Plugin.Memory.MemoryReader.IReadProcesses readProcesses) [0x0003
b] in <0f34f3e9c95749ff8894bb9efd024b26>:0
  at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,Microsoft.MinIoC.Container/ILifetime)
  at Microsoft.MinIoC.Container+ObjectCache+<>c__DisplayClass1_0.<GetCached>b__0 (System.Type _) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at System.Collections.Concurrent.ConcurrentDictionary`2[TKey,TValue].GetOrAdd (TKey key, System.Func`2[T,TResult] valueFactory) [0x00034] in <fc4d686a5a5b43cf8d5a1bf25f38c320>:0
  at Microsoft.MinIoC.Container+ObjectCache.GetCached (System.Type type, System.Func`2[T,TResult] factory, Microsoft.MinIoC.Container+ILifetime lifetime) [0x00014] in <a57750a80b04498c
ada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+ContainerLifetime.GetServiceAsSingleton (System.Type type, System.Func`2[T,TResult] factory) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+RegisteredType.<AsSingleton>b__4_0 (Microsoft.MinIoC.Container+ILifetime lifetime) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+ContainerLifetime.GetService (System.Type type) [0x0000c] in <a57750a80b04498cada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+<>c__DisplayClass15_1.<FactoryFromType>b__1 (Microsoft.MinIoC.Container+ILifetime lifetime) [0x0000c] in <a57750a80b04498cada47f8a1d16a212>:0
  at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,Microsoft.MinIoC.Container/ILifetime)
  at Microsoft.MinIoC.Container+ObjectCache+<>c__DisplayClass1_0.<GetCached>b__0 (System.Type _) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at System.Collections.Concurrent.ConcurrentDictionary`2[TKey,TValue].GetOrAdd (TKey key, System.Func`2[T,TResult] valueFactory) [0x00034] in <fc4d686a5a5b43cf8d5a1bf25f38c320>:0
  at Microsoft.MinIoC.Container+ObjectCache.GetCached (System.Type type, System.Func`2[T,TResult] factory, Microsoft.MinIoC.Container+ILifetime lifetime) [0x00014] in <a57750a80b04498c
ada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+ContainerLifetime.GetServiceAsSingleton (System.Type type, System.Func`2[T,TResult] factory) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+RegisteredType.<AsSingleton>b__4_0 (Microsoft.MinIoC.Container+ILifetime lifetime) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+ContainerLifetime.GetService (System.Type type) [0x0000c] in <a57750a80b04498cada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+<>c__DisplayClass15_1.<FactoryFromType>b__1 (Microsoft.MinIoC.Container+ILifetime lifetime) [0x0000c] in <a57750a80b04498cada47f8a1d16a212>:0
  at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,Microsoft.MinIoC.Container/ILifetime)
  at Microsoft.MinIoC.Container+ObjectCache+<>c__DisplayClass1_0.<GetCached>b__0 (System.Type _) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at System.Collections.Concurrent.ConcurrentDictionary`2[TKey,TValue].GetOrAdd (TKey key, System.Func`2[T,TResult] valueFactory) [0x00034] in <fc4d686a5a5b43cf8d5a1bf25f38c320>:0
  at Microsoft.MinIoC.Container+ObjectCache.GetCached (System.Type type, System.Func`2[T,TResult] factory, Microsoft.MinIoC.Container+ILifetime lifetime) [0x00014] in <a57750a80b04498c
ada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+ContainerLifetime.GetServiceAsSingleton (System.Type type, System.Func`2[T,TResult] factory) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+RegisteredType.<AsSingleton>b__4_0 (Microsoft.MinIoC.Container+ILifetime lifetime) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+ContainerLifetime.GetService (System.Type type) [0x0000c] in <a57750a80b04498cada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+<>c__DisplayClass15_1.<FactoryFromType>b__1 (Microsoft.MinIoC.Container+ILifetime lifetime) [0x0000c] in <a57750a80b04498cada47f8a1d16a212>:0
  at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,Microsoft.MinIoC.Container/ILifetime)
  at Microsoft.MinIoC.Container+ObjectCache+<>c__DisplayClass1_0.<GetCached>b__0 (System.Type _) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at System.Collections.Concurrent.ConcurrentDictionary`2[TKey,TValue].GetOrAdd (TKey key, System.Func`2[T,TResult] valueFactory) [0x00034] in <fc4d686a5a5b43cf8d5a1bf25f38c320>:0
  at Microsoft.MinIoC.Container+ObjectCache.GetCached (System.Type type, System.Func`2[T,TResult] factory, Microsoft.MinIoC.Container+ILifetime lifetime) [0x00014] in <a57750a80b04498c
ada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+ContainerLifetime.GetServiceAsSingleton (System.Type type, System.Func`2[T,TResult] factory) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+RegisteredType.<AsSingleton>b__4_0 (Microsoft.MinIoC.Container+ILifetime lifetime) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+ContainerLifetime.GetService (System.Type type) [0x0000c] in <a57750a80b04498cada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+<>c__DisplayClass15_1.<FactoryFromType>b__1 (Microsoft.MinIoC.Container+ILifetime lifetime) [0x0000c] in <a57750a80b04498cada47f8a1d16a212>:0
  at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,Microsoft.MinIoC.Container/ILifetime)
  at Microsoft.MinIoC.Container+ObjectCache+<>c__DisplayClass1_0.<GetCached>b__0 (System.Type _) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at System.Collections.Concurrent.ConcurrentDictionary`2[TKey,TValue].GetOrAdd (TKey key, System.Func`2[T,TResult] valueFactory) [0x00034] in <fc4d686a5a5b43cf8d5a1bf25f38c320>:0
  at Microsoft.MinIoC.Container+ObjectCache.GetCached (System.Type type, System.Func`2[T,TResult] factory, Microsoft.MinIoC.Container+ILifetime lifetime) [0x00014] in <a57750a80b04498c
ada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+ContainerLifetime.GetServiceAsSingleton (System.Type type, System.Func`2[T,TResult] factory) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+RegisteredType.<AsSingleton>b__4_0 (Microsoft.MinIoC.Container+ILifetime lifetime) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+ContainerLifetime.GetService (System.Type type) [0x0000c] in <a57750a80b04498cada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+<>c__DisplayClass15_1.<FactoryFromType>b__1 (Microsoft.MinIoC.Container+ILifetime lifetime) [0x0000c] in <a57750a80b04498cada47f8a1d16a212>:0
  at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,Microsoft.MinIoC.Container/ILifetime)
  at Microsoft.MinIoC.Container+ObjectCache+<>c__DisplayClass1_0.<GetCached>b__0 (System.Type _) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at System.Collections.Concurrent.ConcurrentDictionary`2[TKey,TValue].GetOrAdd (TKey key, System.Func`2[T,TResult] valueFactory) [0x00034] in <fc4d686a5a5b43cf8d5a1bf25f38c320>:0
  at Microsoft.MinIoC.Container+ObjectCache.GetCached (System.Type type, System.Func`2[T,TResult] factory, Microsoft.MinIoC.Container+ILifetime lifetime) [0x00014] in <a57750a80b04498c
ada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+ContainerLifetime.GetServiceAsSingleton (System.Type type, System.Func`2[T,TResult] factory) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container+RegisteredType.<AsSingleton>b__4_0 (Microsoft.MinIoC.Container+ILifetime lifetime) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at Microsoft.MinIoC.Container.GetService (System.Type type) [0x00012] in <a57750a80b04498cada47f8a1d16a212>:0
  at Microsoft.MinIoC.ContainerExtensions.Resolve[T] (Microsoft.MinIoC.Container+IScope scope) [0x00000] in <a57750a80b04498cada47f8a1d16a212>:0
  at FFXIV_ACT_Plugin.FFXIV_ACT_Plugin.InitPlugin (System.Windows.Forms.TabPage pluginScreenSpace, System.Windows.Forms.Label pluginStatusText) [0x0003f] in <a57750a80b04498cada47f8a1d
16a212>:0
cker.FormActMain.WriteExceptionLog (System.Exception ex, System.String MoreInfo) [0x00000] in <dd6a4022920b4680967f304bbfe630f0>:0
  at FFXIV_ACT_Plugin.FFXIV_ACT_Plugin.InitPlugin (System.Windows.Forms.TabPage pluginScreenSpace, System.Windows.Forms.Label pluginStatusText) [0x00000] in <a57750a80b04498cada47f8a1d
16a212>:0
  at Advanced_Combat_Tracker.FormActMain.pluginPanelEnabledChecked (System.Object sender, System.EventArgs e) [0x00000] in <dd6a4022920b4680967f304bbfe630f0>:0
  at System.Windows.Forms.CheckBox.OnCheckedChanged (System.EventArgs e) [0x00000] in <e8226382c4794361ab8ecbe9f4924237>:0
  at System.Windows.Forms.CheckBox.set_CheckState (System.Windows.Forms.CheckState value) [0x00000] in <e8226382c4794361ab8ecbe9f4924237>:0
  at System.Windows.Forms.CheckBox.set_Checked (System.Boolean value) [0x00000] in <e8226382c4794361ab8ecbe9f4924237>:0
  at Advanced_Combat_Tracker.FormStartupWizard.btnUsePlugin_Click (System.Object sender, System.EventArgs e) [0x00000] in <dd6a4022920b4680967f304bbfe630f0>:0
  at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00000] in <e8226382c4794361ab8ecbe9f4924237>:0
  at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00000] in <e8226382c4794361ab8ecbe9f4924237>:0
  at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000] in <e8226382c4794361ab8ecbe9f4924237>:0
  at System.Windows.Forms.Control.WmMouseUp (System.Windows.Forms.Message& m, System.Windows.Forms.MouseButtons button, System.Int32 clicks) [0x00000] in <e8226382c4794361ab8ecbe9f4924
237>:0
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <e8226382c4794361ab8ecbe9f4924237>:0
  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x00000] in <e8226382c4794361ab8ecbe9f4924237>:0
  at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) [0x00000] in <e8226382c4794361ab8ecbe9f4924237>:0
  at System.Windows.Forms.Control+ControlNativeWindow.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <e8226382c4794361ab8ecbe9f4924237>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <e8226382c4794361ab8ecbe9f4924237>:0
  at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x00000] in <e8226382c4794361ab8ecbe9f4924237>:0
  at System.Windows.Forms.NativeWindowProc.Callback (System.IntPtr hWnd, System.Int32 msg, System.IntPtr wparam, System.IntPtr lparam) [0x00000] in <e8226382c4794361ab8ecbe9f4924237>:0

  at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW (System.Windows.Forms.NativeMethods+MSG& ) [0x00000] in <e8226382c4794361ab8ecbe9f4924237>:0
  at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop (System.IntPtr dwComponentID, System.Int32 reason,
 System.Int32 pvLoopData) [0x00000] in <e8226382c4794361ab8ecbe9f4924237>:0
  at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x00000] in <e8226382c4794361ab8ecbe9f49
24237>:0
  at System.Windows.Forms.Application+ThreadContext.RunMessageLoop (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x00000] in <e8226382c4794361ab8ecbe9f4924237
>:0
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000] in <e8226382c4794361ab8ecbe9f4924237>:0
  at Advanced_Combat_Tracker.ActLoader.Main (System.String[] args) [0x00000] in <dd6a4022920b4680967f304bbfe630f0>:0

For some reason though the change above does not seem to help much with https://github.com/ngld/OverlayPlugin

System.TypeLoadException - Could not load type of field 'RainbowMage.OverlayPlugin.PluginLoader:pluginMain' (0) due to: Could not load file or assembly 'OverlayPlugin.Core, Version=0.18.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00029] in <fc4d686a5a5b43cf8d5a1bf25f38c320>:0 
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00095] in <fc4d686a5a5b43cf8d5a1bf25f38c320>:0 
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0x00009] in <fc4d686a5a5b43cf8d5a1bf25f38c320>:0 
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in <fc4d686a5a5b43cf8d5a1bf25f38c320>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in <fc4d686a5a5b43cf8d5a1bf25f38c320>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <fc4d686a5a5b43cf8d5a1bf25f38c320>:0 
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <fc4d686a5a5b43cf8d5a1bf25f38c320>:0 
  at System.Reflection.Assembly.CreateInstance (System.String typeName, System.Boolean ignoreCase) [0x00016] in <fc4d686a5a5b43cf8d5a1bf25f38c320>:0 
  at System.Reflection.Assembly.CreateInstance (System.String typeName) [0x00000] in <fc4d686a5a5b43cf8d5a1bf25f38c320>:0 
  at Advanced_Combat_Tracker.FormActMain.pluginPanelEnabledChecked (System.Object sender, System.EventArgs e) [0x00551] in <dd6a4022920b4680967f304bbfe630f0>:0 
  at System.Windows.Forms.CheckBox.OnCheckedChanged (System.EventArgs e) [0x0006a] in <e8226382c4794361ab8ecbe9f4924237>:0 
  at System.Windows.Forms.CheckBox.set_CheckState (System.Windows.Forms.CheckState value) [0x0007e] in <e8226382c4794361ab8ecbe9f4924237>:0 
  at System.Windows.Forms.CheckBox.OnClick (System.EventArgs e) [0x00020] in <e8226382c4794361ab8ecbe9f4924237>:0 
  at System.Windows.Forms.CheckBox.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00089] in <e8226382c4794361ab8ecbe9f4924237>:0 
  at System.Windows.Forms.Control.WmMouseUp (System.Windows.Forms.Message& m, System.Windows.Forms.MouseButtons button, System.Int32 clicks) [0x001c3] in <e8226382c4794361ab8ecbe9f4924237>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x005a0] in <e8226382c4794361ab8ecbe9f4924237>:0 
  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x0011f] in <e8226382c4794361ab8ecbe9f4924237>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.OnMessage (System.Windows.Forms.Message& m) [0x00001] in <e8226382c4794361ab8ecbe9f4924237>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x000b3] in <e8226382c4794361ab8ecbe9f4924237>:0 
  at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x00025] in <e8226382c4794361ab8ecbe9f4924237>:0 

System.Reflection.RuntimeConstructorInfo, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Loading of .cs files is also unaffected by this change

@madewokherd
Copy link
Owner

I think we're going to need individual issues for individual plugins, this is getting beyond my ability to keep track.

@madewokherd
Copy link
Owner

I'm not seeing the exception with FFXIV_ACT_Plugin, and I don't know what that error code means. It should show up as a failed open_token request in a +server log.

@marzent
Copy link
Author

marzent commented Feb 20, 2022

Yeah it is getting really messy… Will try to retest everything and document each issue separately as best as I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants