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

Deeply nested ref_creates on structs cause hard crash when debug window is viewed #8592

Open
gm-bug-reporter bot opened this issue Dec 2, 2024 · 0 comments
Assignees
Labels
project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes

Comments

@gm-bug-reporter
Copy link

Description

Same issue as #8574

Ive reduced the sample to only the elements involved.
Im running on windows on beta using GMS2 VM

I have a struct composed of additional structs, and I am trying to create dbg_view controls which control properties at the child most level of this struct tree

Ive reduced the entire sample to the following. This runs on create of the obj_game in the room which creates an instance of TopLevel and saves it to a instance variable on obj_game.

function TopLevel() constructor {

   someObj = new MidLevel();
   myRef = ref_create(self, "someObj");
   myRefMid = ref_create(myRef, "someObjProp");
   deepPropRef = ref_create(myRefMid, "min");

   show_debug_overlay(true, true, 2);
   dbg_view("Deep Property Ref", true);
   
   dbg_text_input(deepPropRef, "SomeObjProp min value", "f");
}

function MidLevel() constructor{
   someObjProp = new LowLevel();
}

function LowLevel() constructor{
   self.min = 3;
   self.max = 5;
}

The project runs for about a second before crashing. In that time I can see that the dbg_text_input is showing the correctly bound value, but it crashes to the editor with no error

Ive attached a short video of what I am seeing.

Steps To Reproduce

Open and run the project, this causes it to crash after about a second of it running for me.

Which version of GameMaker are you reporting this issue for?

IDE v2024.1100.0.686 Runtime v2024.1100.0.707

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

Windows 10.0.19045.0

Which platform(s) are you seeing the problem on?

Windows

Attached Files

  • video_screen.webm

8c5b7be5-4637-41b8-bb3a-ee15ae44fef7

@gm-bug-reporter gm-bug-reporter bot added project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes labels Dec 2, 2024
@stuckie stuckie moved this from Triage to Backlog in Team Workload Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Projects
Status: Backlog
Development

No branches or pull requests

1 participant