[SMBX2 Beta 4] Test Level Crashing
Posted: Thu Apr 09, 2020 7:11 pm
Always when I'm going to test a level the game crashes after the loading screen. It works well when using legacy engine. What could It be ?
Forums for SMBX
https://www.smbxgame.com/forums/
It says the game stopped working and then It close.Enjl wrote: ↑Fri Apr 10, 2020 4:03 amCrashes as in 'stops responding' or as in 'window just disappears' or as in 'there is an error message and then it closes'?
If it's the first, it's still loading.
If it's the second, it sounds like you're running out of memory.
If it's the third, I would like to see the error message.
What is the cause of "running out of memory"?Enjl wrote: ↑Fri Apr 10, 2020 4:03 amCrashes as in 'stops responding' or as in 'window just disappears' or as in 'there is an error message and then it closes'?
If it's the first, it's still loading.
If it's the second, it sounds like you're running out of memory.
If it's the third, I would like to see the error message.
The bump is no issue cause they also experience the problem.
Tried Disable OpenGL. It lags occasionally.
That's pretty mysterious because the game does use the same RAM as it gets ran separately. I have a think that probably some side software gets an attempt to inject into the running game (such as antiviruses?) but I do have 16 GM RAM, Intel Core i5-4590, and RTX 2060, and the game works perfectly in both modes. And the game works even I do have dozen stuff in the background (browser, Thunderbird, Discord, Telegram, development environments (Qt Creator and JetBrain IDEs for various purposes), also some VM running too)
Not sure if it is related, but when testing level from the editor, the window name for the SMBX tester reads "Super Mario Bros. X2 - (2.0.0 b4) (Software Renderer).
The fact the "Software Renderer" appears, means the game works with disabled OpenGL (as I was told you to do at the Test/LunaTester menu). You can try work in both modes:
The tester died at around 250MB. I can't seem to find the relationship of what can cause the warningless crash. To what I know, vanilla levels (without Lunalua) are completely safe. Levels with just one main lua file are also okay. However, to levels where there are a lot of lua content (such as custom NPCs, gameplay plug-ins like rooms.lua, spawn zones), only some of them actually crashed.Wohlstand wrote: ↑Sun Aug 01, 2021 9:23 amAlso, please try to measure at the task manager how much the game will eat RAM at your end until it will crash. I mean, will it really eat so much up to 1 GB RAM, or it was crashed with using of 250 MB and lesser. Then, this means there is a mysterious error in the game itself, or there is some external software that distorts the work of the game.