YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
21 stars 8 forks source link

In-Game: [YYC] Creating a large array literal via code can cause a silent crash #7082

Open GameDevTosh opened 1 month ago

GameDevTosh commented 1 month ago

Description

This one was a pain to find, but after deleting 80% of my project I was able to narrow it down.

If you make a large enough array literal of structs with multi-dimensional arrays full of constructor calls (in this case, 3500 lines of code), Gamemaker will silently crash in YYC only with "exited with non-zero status (-1073741571)". This seems to happen in all versions of GM, including latest Beta, the version this report is being made in. error

The included project has a full reproduction.

P.S: This project runs in VM, GMRT VM, and GMRT Native. Its is ONLY in YYC that this issue happens.

Steps To Reproduce

Which version of GameMaker are you reporting this issue for?

IDE v2024.800.0.602 Runtime v2024.800.0.624

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

fae7009d-8006-4ccb-bdd4-9ed8aa5dc541

backYard321 commented 1 month ago

I get a similar silent crash testing YYC - I don't use multi-dimensional arrays, but I do store a lot of structs containing methods in arrays.

GameDevTosh commented 1 month ago

So saving the array (made in a script asset, not inside a function) to json/file in VM and then loading that file instead of via script asset makes it work in YYC. So its really something to do with making large array literals, or making large array literals in script assets.