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

In-Game: [YYC] Null-coalescing operator on a struct variable that does not exist causes a crash in 2024.11 runtimes #9126

Closed
gm-bug-reporter bot opened this issue Jan 22, 2025 · 2 comments
Assignees
Labels
project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Milestone

Comments

@gm-bug-reporter
Copy link

Description

In the create event of an object, I can do this to safely set a default value for a variable I expect to be set by instance_create_whatever's last argument struct.

test = self[$ "test"] ?? 5;

When running in VM on Windows it works, but in YYC this will crash.

Steps To Reproduce

Run the attached project using VM and YYC. Observe that one works and the other crashes.

Which version of GameMaker are you reporting this issue for?

IDE v2024.11.0.179 Runtime v2024.11.0.227

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

Windows 10.0.22621.0

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

Windows

ee23b05c-b62e-496f-adca-c44462e721d4

@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 Jan 22, 2025
@stuckie stuckie moved this from Triage to Todo in Team Workload Jan 23, 2025
@stuckie stuckie added this to the 2024.13 milestone Jan 23, 2025
@rwkay
Copy link

rwkay commented Jan 27, 2025

Fixed in 2024.13

@rwkay rwkay closed this as completed Jan 27, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in Team Workload Jan 27, 2025
@YYDan YYDan changed the title YYC: Null Coalescing Operator not functioning properly In-Game: [YYC] Null-coalescing operator on a struct variable that does not exist causes a crash in 2024.11 runtimes Jan 28, 2025
@YYBartT YYBartT moved this from Done to Ready for QA in Team Workload Jan 29, 2025
@alicemoretti alicemoretti self-assigned this Jan 30, 2025
@alicemoretti
Copy link
Contributor

Verified fixed on IDE v2024.1300.0.733 Runtime v2024.1300.0.744.
Thank you.

@alicemoretti alicemoretti moved this from Ready for QA to Verified in Team Workload Jan 30, 2025
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: Verified
Development

No branches or pull requests

3 participants