Skip to content

Getting the arguments for method backwards can result in a silent crash #15925

Description

@KormexGit

Description

I just did an oopsie and got my arguments for method reversed while testing some stuff. I passed an instance id for the function argument and a function for the instance id/struct argument. Turns out this causes the runner to silent crash with no error message when you call the method.

It should probably crash as soon as method is called instead of only crashing after you call the new method.

Edit: After messing around with it more, it appears the method variable is getting assigned null, and it's calling null as a function that causes the silent crash

Image

Steps To Reproduce

  1. Open and run attached project in VM
  2. Press space, see it silent crashes (it does properly give an error in YYC)
  3. See the arguments for method are backwards of what they should be

Which version of GameMaker are you reporting this issue for?

IDE v2026.100.0.1139 Runtime v2026.100.0.1090

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

Windows 10.0.26200.0

0aa24e51-c065-48b8-9bf8-452731d28364

Metadata

Metadata

Assignees

Labels

gms2-bugIn-game bugs with the "GameMaker Studio 2" runtimesprojectThis issue has a sample project attached

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions