YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
24 stars 8 forks source link

Stability: GM crash while loading plugins at startup in 2024.1100.0.643 #7969

Open shichen85 opened 5 days ago

shichen85 commented 5 days ago

Description

chrome_st4kRWfA1c

Getting this error when opening IDE 2024.1100.0.643. The ui.log file showed the following error:

IDE Exception: YoYoStudio.GUI.Styles.StyleManagerException: Error: Failed to clone style value object of type 'System.Collections.ArrayList' collection types must have a bespoke deep clone implemented
   at YoYoStudio.GUI.Styles.StyleManager.CloneStyleValue(Object _value)
   at YoYoStudio.GUI.Styles.StyleManager.ApplyStyleValue(Object _obj, PropertyInfo p, StyleValue _styleValue)
   at YoYoStudio.GUI.Styles.StyleManager.Set(Object _obj, List`1 _style, Boolean _fromLayout)
   at YoYoStudio.GUI.Styles.StyleManager.Set(Object _obj, String _stylename)
   at YoYoStudio.GUI.Styles.GUIStyle.Set(String _name)
   at YoYoStudio.GUI.Styles.GUIStyle.set_StyleName(String value)
   at YoYoStudio.GUI.Layout.LayoutManager.LoadStyleAttributes[T](T _gadget, XmlElement _xmlNode, Boolean _setStyles)
   at YoYoStudio.GUI.Layout.LayoutManager.BasicLoad[T](T _gadget, XmlElement _xmlNode)
   at YoYoStudio.GUI.Gadgets.Grid.Load(XmlElement _node)
   at YoYoStudio.GUI.Layout.LayoutManager.CreateGadget(XmlElement layoutXmlElement, LayoutInstanceID _ownerLayout)
   at YoYoStudio.GUI.Layout.LayoutManager.CreateGadgets(GUIBase _g, XmlElement _xmlNode, LayoutInstanceID _ownerLayout)
   at YoYoStudio.GUI.Layout.LayoutManager.CreateLayout(String _layoutID)
   at YoYoStudio.GUI.WindowInterface.CreateLayout(String _layout)
   at YoYoStudio.Plugins.StartScreen.StartScreenModule.CreateStartScreen()
   at YoYoStudio.Plugins.StartScreen.StartScreenModule.Initialise(ModulePackage _ide)
   at YoYoStudio.Plugins.ResourceEditorManager.ActivateModule(Type _type, Object[] _parameters)
   at YoYoStudio.Plugins.Command.execute_object(String _command, Object _focus, Object[] paramaters)
   at YoYoStudio.Plugins.Command.execute_object(String _command, Object _focus, Object[] paramaters)
   at YoYoStudio.SplashScreen.SplashTick()
   at YoYoStudio.Plugins.Command.execute_object(String _command, Object _focus, Object[] paramaters)
   at YoYoStudio.Plugins.Command.execute_object(String _command, Object _focus, Object[] paramaters)
   at YoYoStudio.IDE.Run()
   at YoYoStudio.IDE.Execute(String[] _args, Int32 _initialWidth, Int32 _initialHeight)

Expected Change

No response

Steps To Reproduce

  1. Start GameMaker
  2. See the issue

ui.log

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

2024.1100 (Betas)

Which operating system(s) are you seeing the problem on?

Windows 11

Are you running GameMaker from inside your Steam library?

No

Sample Package Attached?

Sample Project Added?

scott-dunbar commented 5 days ago

We have currently not seen this yet in testing

Do you have any custom themes enabled?

shichen85 commented 5 days ago

We have currently not seen this yet in testing

Do you have any custom themes enabled?

I don't have custom themes, though I would love to try deleting whatever folder that supposedly contain those files to see if that solves the problem. Where should I look?

scott-dunbar commented 5 days ago

C:\ProgramData\GameMakerStudio2\Skins

It would be interesting to know if that had any content present before you delete it.

shichen85 commented 5 days ago

Nope. I have nothing in that folder, nor C:\ProgramData\GameMakerStudio2-Beta\Skins. Deleted it and still getting the same error. IDE 2024.1100.0.624 still works. I am attaching the new ui.log where you can see 2024.1100.0.624 successfully launches, but 2024.1100.0.629 and 2024.1100.0.643 are crashing. ui.log

stuckie commented 1 day ago

I've added some extra debug logging for the next build, as I don't see how this could be possible. The collection it's complaining about does have specific code for cloning it, and this hasn't changed for many years. Hopefully that will shed some light on what is going on.