Open colinator27 opened 3 months ago
Thanks for filing this and providing the convenient test cases 👍
There are at least three things happening here:
I will update this issue again when one of the first two issues is fixed (the third one is lower priority for now, unless it causes trouble in some existing projects even after the other issues are fixed)
Description
Having what seems to be a little over 4000 assignments in one function is enough to crash GMRT only in Interpreter mode, and having many more assignments (in the sample project, 65536 of them) is enough to crash GMRT in Native mode as well.
This is a little bit silly (I came up with this while testing GMRT's limits), but it feels strange to be inconsistent. Since I could see some projects using a few thousand lines of code to store data, I felt like I should report this, in case it's not already known. This was tested in GMRT 0.8.0, using Beta IDE 2024.600.0.576.
Sample project: VeryLargeFunctionTests.zip
Expected Change
Ideally no limitation on the number of statements; otherwise, a consistent build error would be nice
Steps To Reproduce
Run attached sample project in Interpreter mode, and see the following output:
(followed by a silent crash)
Then, run the same project in Native mode, and see the following output:
(followed by a silent crash)
How reliably can you recreate this issue using your steps above?
Always
Which version of GameMaker are you reporting this issue for?
Beta (Please put the exact version number in your Description)
Which platform(s) are you seeing the problem on?
Windows
Compiler Log File
Sample .yyz File