-
Notifications
You must be signed in to change notification settings - Fork 8
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] Creating a large array literal via code can cause a silent crash #7082
Comments
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. |
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. |
I have implemented an improvement in 2024.11 that allows the enclosed project to compile - it is not an overall fix for giant data sets being implemented as code - I would still advocate using data files for large amounts of data. |
verified as of IDE v2024.1100.0.646 Runtime v2024.1100.0.666 |
Check this is working... |
Fixed in 2024.11 again.... So it turns out the earlier fix was in their but a fix for a knock on issue caused the original problem to reappear - it turns out that creating giant arrays in GML like this is not a good idea... but... I was able to address the issue in a different way and I have now made YYC generate array literals in a slightly different way that does not create quite so many return variables (causing the runtime to run out of stack space). So this should be back working now. |
verified as of IDE v2024.1100.0.659 Runtime v2024.1100.0.685 |
I have had to reopen this issue as it caused knock ons for other project and the "fix" did not work in the general case - I am going to have to put this on the backlog for now as the real fix for this is GMRT (I have added the gmrt label on this so it is checked) - if you are looking to fix this in your code for the current runtime then you need to look at breaking up your giant declaration into different functions that create the different data you require - perhaps one per sub-structure (looks like it is data for scenes or rooms) - just putting them into anonymous functions would work. |
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.

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
The text was updated successfully, but these errors were encountered: