GameMaker-Bugs
GameMaker-Bugs copied to clipboard
Room Editor: GM crashes if File Watcher is set to "auto-reload" and external app modifies a room .yy file
Description
I was working on my level and discarded the recent changes via git.
GM froze for a few seconds and then silently closed itself without any error messages.
The same has happened before when I was manually changing a position of an instance in VS Code.
I have GM set up to auto-reload when files change.
ui.log says:
[12:20:59:000(ceb0)] --------------------------------------------------------------------------------
[12:20:59:001(ceb0)] IDE Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at YoYoStudio.Plugins.RoomEditor.RoomEditor_SelectedItem.UpdateProperties(Boolean _layoutUpdate)
at YoYoStudio.Plugins.RoomEditor.RoomEditor_Room.RefreshSelectedBounds()
at YoYoStudio.Plugins.RoomEditor.RoomEditorModule.Tick()
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)
[12:20:59:001(ceb0)] --------------------------------------------------------------------------------
Steps To Reproduce
Git:
- Make changes to a room that involve instances or assets on an asset layer - adding, moving, etc.
- Discard those changes with GIT
VS Code:
- Open a room in GM
- Open the room in VS Code
- Modify the position value, for example, move X or Y by a small amount.
Which version of GameMaker are you reporting this issue for?
IDE v2024.8.0.169 Runtime v2024.8.0.216
Which operating system(s) are you seeing the problem on?
Windows 10.0.19045.0