My game is randomly crashing and freezing and sometimes it restarts the user's computer when one of those happens. Is there anything in MMF2 that can cause this to happen?
Printable View
My game is randomly crashing and freezing and sometimes it restarts the user's computer when one of those happens. Is there anything in MMF2 that can cause this to happen?
It has happened for a couple of users. It also specifically crashes for one frame and I don't know why because the code is pretty much the same in it as the other level frames.
Sounds like a memory or malware problem on the user's computer. I would mostly guess the user's system is infected with malware even if they are running antivirus software.
One user said they reformatted their PC to see if that would fix the problem but it persists. So memory problem maybe?
What extensions are you using?
Active system box, advanced direction object, array, background system box, button, control x, direction calculator, edit box, file, file-folder object, foreach, ini++, joystick 2 object, lacewing relay client and server, layer, localIP, MT random object, onu audio controller, onu engineer - modfusion, perspective, platform movement object, randomizer extension, string parser, surface, text blitter, ultimate fullscreen, vitalize! plug-in, window control.
Holy cow that is a lot of extensions... Are they all being used in that problematic frame?
My advice would be to do the old halving solution... You remove half of the extensions and see if the problem persists. If so, then you remove another half, etc, until the problem no longer occurs. Then you can narrow it down to the exact extension causing problems. Obviously you'll want to save another version of your file so you aren't deleting half of your work permanently. :)
Some of those extensions will be removed in the final cut, they're just placeholder objects. :p No, not all of them are being used in the problem frame and I have problems across the whole application, but also specifically in one frame.
There's no practical way I can do the halving method (which I actually make use of a lot when I have problems arise) because the game just freezes, crashes, turns off the computer entirely at random and it's on other people's computers and not mine.
That's really the only way you'll find out the cause of the problem... unless you send your MFA to Clickteam.
The only way it can be solved otherwise is to slowly isolate the problem by having those other people test as you remove extensions until they no longer freeze.
Though honestly I've never heard of an MMF game literally turning off a person's computer. Freezing, maybe... crashing, sure. But not just totally turning off a person's computer.
Does it just freeze or does it also crash? If it crashes, maybe the error message might give some indication as to what is happening.
It does both. I suspect it might be something I'm using causing the computer's hardware to do something it doesn't like. Maybe their PC is having hardware problems or something.
I double posted to bump this thread as I think I found the cause of the one consistent crash. It was reported to happen right after the sequence finishes where the boss is defeated. Right as it is finishing I have a frequency change on a channel that slowly goes upward constantly and then at the end it sets the frequency back to 0. At this point it ALWAYS crashes for one user and crashes around this time for a few other users. Maybe the channel frequency action is messed up? It doesn't happen for all my users so reproducing it might be out of the question.
Yes, it appears to have been the channel frequency change, as it no longer crashes now for one of the users, the rest haven't gotten back to me yet. This was even resetting their computer, so Clickteam really needs to look into this problem.