TalicZealot / SotnRandoTools

A collection of tools to enhance the SotN randomizer experience.
https://taliczealot.github.io/
MIT License
23 stars 6 forks source link

[Linux] crashes bizhawk when sotn rando tools is launched. #34

Closed ghost closed 11 months ago

ghost commented 11 months ago

Please use this template for any bugs or problems you encounter using the tools and label the issue appropriately. Fill as many of the fields listed below as possible.

Error:

If an error popped up paste a screenshot of it or the error message. Please remember to search for similar issues before writing anything, including in closed issues!

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: AND data length expected 128, read 0 Parameter name: stream at System.Drawing.Icon.InitFromStreamWithSize (System.IO.Stream stream, System.Int32 width, System.Int32 height) [0x005a0] in :0 at System.Drawing.Icon..ctor (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) [0x00095] in :0 at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&) at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 --- End of inner exception stack trace --- at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Reflection.RuntimeConstructorInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0002f] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Reflection.RuntimeConstructorInfo.SerializationInvoke (System.Object target, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) [0x00000] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject (System.Object obj, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) [0x00059] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Runtime.Serialization.ObjectManager.FixupSpecialObject (System.Runtime.Serialization.ObjectHolder holder) [0x00088] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Runtime.Serialization.ObjectManager.DoFixups () [0x0005a] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize (System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Runtime.Serialization.Formatters.Binary.BinaryParser serParser, System.Boolean fCheck, System.Boolean isCrossAppDomain, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x00077] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck, System.Boolean isCrossAppDomain, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x000a2] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x00000] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck) [0x00000] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream) [0x00000] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Resources.ResourceReader.DeserializeObject (System.Int32 typeIndex) [0x00019] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Resources.ResourceReader._LoadObjectV2 (System.Int32 pos, System.Resources.ResourceTypeCode& typeCode) [0x0035b] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Resources.ResourceReader.LoadObjectV2 (System.Int32 pos, System.Resources.ResourceTypeCode& typeCode) [0x00000] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Resources.ResourceReader.LoadObject (System.Int32 pos, System.Resources.ResourceTypeCode& typeCode) [0x00022] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Resources.RuntimeResourceSet.GetObject (System.String key, System.Boolean ignoreCase, System.Boolean isString) [0x000b4] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Resources.RuntimeResourceSet.GetObject (System.String key, System.Boolean ignoreCase) [0x00000] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Resources.ResourceManager.GetObject (System.String name, System.Globalization.CultureInfo culture, System.Boolean wrapUnmanagedMemStream) [0x0008e] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Resources.ResourceManager.GetObject (System.String name) [0x00000] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at SotnRandoTools.ToolMainForm.InitializeComponent () [0x0075d] in <3edc1556a7784422ac0bcdd5f38aee9a>:0 at SotnRandoTools.ToolMainForm..ctor () [0x00011] in <3edc1556a7784422ac0bcdd5f38aee9a>:0 at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&) at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 --- End of inner exception stack trace --- at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00095] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0x00009] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Threading.StackCrawlMark& stackMark) [0x0022b] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x0009c] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Activator.CreateInstanceFromInternal (System.String assemblyFile, System.String typeName, System.Boolean ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Security.Policy.Evidence securityInfo) [0x00010] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Activator.CreateInstanceFrom (System.String assemblyFile, System.String typeName, System.Boolean ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x00000] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Activator.CreateInstanceFrom (System.String assemblyFile, System.String typeName, System.Object[] activationAttributes) [0x00000] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at System.Activator.CreateInstanceFrom (System.String assemblyFile, System.String typeName) [0x00000] in <14ab7ebc6d7c41b09c69cf099b86af4e>:0 at BizHawk.Client.EmuHawk.ToolManager.CreateInstance (System.Type toolType, System.String dllPath, System.String toolTypeName, System.Boolean skipExtToolWarning) [0x0003a] in <828628a610e44fa287bdfc7090f08a57>:0 at BizHawk.Client.EmuHawk.ToolManager.LoadExternalToolForm (System.String toolPath, System.String customFormTypeName, System.Boolean focus, System.Boolean skipExtToolWarning) [0x00054] in <828628a610e44fa287bdfc7090f08a57>:0 at BizHawk.Client.EmuHawk.MainForm.<.ctor>b__6_7 (System.String toolPath, System.String customFormTypeName, System.Boolean skipExtToolWarning) [0x00000] in <828628a610e44fa287bdfc7090f08a57>:0 at BizHawk.Client.EmuHawk.ExternalToolManager+MenuItemInfo.TryLoad () [0x00000] in <828628a610e44fa287bdfc7090f08a57>:0 at BizHawk.Client.EmuHawk.ExternalToolManager+<>cDisplayClass10_0.b_1 (System.Object , System.EventArgs _) [0x00000] in <828628a610e44fa287bdfc7090f08a57>:0 at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x00019] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 at System.Windows.Forms.ToolStripMenuItem.OnClick (System.EventArgs e) [0x00090] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 at System.Windows.Forms.ToolStripMenuItem.HandleClick (System.Int32 mouse_clicks, System.EventArgs e) [0x00000] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, System.Windows.Forms.ToolStripItemEventType met) [0x00054] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem.FireEvent(System.EventArgs,System.Windows.Forms.ToolStripItemEventType) at System.Windows.Forms.ToolStrip.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00048] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 at System.Windows.Forms.ToolStripDropDown.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00000] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00078] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x001b4] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 at System.Windows.Forms.ToolStripDropDown.WndProc (System.Windows.Forms.Message& m) [0x00017] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00085] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 BizHawk has completed its shutdown routines, killing process... ./EmuHawkMono.sh: line 33: 16060 Killed mono ./EmuHawk.exe "$@"

Bug description:

Provide information relevant to the bug. The more information provided, the easier it is to reproduce the bug.

bizhawk crashes when i try to launch rando tools.

How to reproduce:

Open the Black Marble Gallery save on the attached virtual memory card and go right, then...

Additional context, screenshot or log file from /ExternalTools/SotnRandoTools/Logs/:

Add any other context about the problem here or post a screenshot if there is a visual bug. Note: The log file is named in the following format: dd-MM-yy hh-mm-ss If you are not sure which log is the correct one you can open it and search for Randomizer seed information and look for the correct seed.

no log file present

SotnRandoTools version:

1.6.1

BizHawk version:

2.9.1

Seed Information:

The best way to provide all the necessary seed information is to click the "Copy seed" button after randomizing then paste here. Alternatively, name the preset used and whether or not tournament mode was enabled. The seed and preset are also displayed by the tracker. Providing a ppf or a link to the discord message for a race is also sufficient.

Randomizer version:

Found in the file select menu of your randomized game.

Operating system and version:

Arch linux mono 6.12.0.205

TalicZealot commented 11 months ago

Was the issue present in 1.6.0?

ghost commented 11 months ago

yes

On October 14, 2023 12:58:03 AM GMT+05:30, Talic @.***> wrote:

Was the issue present in 1.6.0?

-- Reply to this email directly or view it on GitHub: https://github.com/TalicZealot/SotnRandoTools/issues/34#issuecomment-1762077095 You are receiving this because you authored the thread.

Message ID: @.***>

TalicZealot commented 11 months ago

Seems to be caused by https://github.com/mono/mono/issues/10374 Exploring potential solutions. I might just scrap those images for the mono port.

ghost commented 11 months ago

I see, thanks for investigating.

On October 18, 2023 9:56:53 AM UTC, Talic @.***> wrote:

Seems to be caused by https://github.com/mono/mono/issues/10374 Exploring potential solutions. I might just scrap those images for the mono port.

-- Reply to this email directly or view it on GitHub: https://github.com/TalicZealot/SotnRandoTools/issues/34#issuecomment-1768099445 You are receiving this because you authored the thread.

Message ID: @.***>

TalicZealot commented 11 months ago

Fixed in 1.6.2 I tried to fix the blurry images on mono, but it's an issue with their implementation https://github.com/mono/libgdiplus/issues/730

ghost commented 11 months ago

Thanks, it works well now.

On October 18, 2023 8:27:10 PM UTC, Talic @.***> wrote:

Fixed in 1.6.2 I tried to fix the blurry images on mono, but it's an issue with their implementation https://github.com/mono/libgdiplus/issues/730

-- Reply to this email directly or view it on GitHub: https://github.com/TalicZealot/SotnRandoTools/issues/34#issuecomment-1769268436 You are receiving this because you authored the thread.

Message ID: @.***>