No Activity = Freezing?

So I've experienced this back in ACE, as well, but now I use MV.
If I'm either playtesting OR playing a deployed version (executable, not hosted online), if I have to go do something, for say 10 or 20 minutes, when I come back, the frame rate has dropped to 0, and the game becomes unresponsive.

I've searched around on here and found different freezing issues, but not my specific one.
This isn't just my projects, it's happened with almost any RPG Maker game in any form where I've left it on without any Input for 10-20 mins, and get a freeze.

Is this a known thing, then?
Does anyone have this problem, or know a fix?
Ah.. I got that also once 🙁, I left it on the background for 20 min and then it froze.
I think its a pretty big issue, still not sure what caused it. To help a little with the resolution, I was in a custom Scene, with PIXI updated to 4.9 or something, the last from v4.
This has happened to me while playtesting as well. Not sure what causes it but it sure is annoying.
If I'm either playtesting OR playing a deployed version (executable, not hosted online), if I have to go do something, for say 10 or 20 minutes, when I come back, the frame rate has dropped to 0, and the game becomes unresponsive.
Does anyone have this problem, or know a fix?
Ah.. I got that also once 🙁, I left it on the background for 20 min and then it froze. I think its a pretty big issue, still not sure what caused it.
This has happened to me while playtesting as well. Not sure what causes it but it sure is annoying.

Fix_NoActivity Plugin: Click Here to Download
That help? it's kind of hard to test but I think it worked for me (or maybe I never leave it alone long enough).
Thought maybe my PC was bad or something at first but perhaps there really is an issue?

Let me know if that does anything at all lol, again this one is kind of hard to test and I still don't know what causes it really just a way to "fix" it.
what is your project's core version? Go to your project js folder and open rpg_core.js with a text editor, the version is the number in the title line. If there is no number, it's 1.0
It might be caused by a memory leak if you have an older core version.
Your issue might be the same as that reported in @bblizzard's bug report. I used his/her fix when one of my playtesters reported the graphics freezing and it worked for me.
See this thread: [Bug] Game freezes after window is left unfocused for a while
Whenever that has happened to me your OS had decided the system is inactive and is doing an update, as that is the only way I've ever hit low FPS on Ace games on my gaming system.

And yes, one windows update it was downloading tied up so much CPU processing I hit 2 FPS. So much for 'in the background'.
It also depends on what might be going on in your game, too. If a looping script gets to a point where it can't move forward, that will freeze the game. So if you, say, have an NPC pathing randomly and it runs into collision and wants to move in the direction it is blocked in (and the button for skipping if it cannot move isn't checked on) it will lock up your game.

Not saying this is the issue, just a reminder that RPG Maker gives you enough freedom to shoot yourself in the foot, heh.
It also depends on what might be going on in your game, too. If a looping script gets to a point where it can't move forward, that will freeze the game. So if you, say, have an NPC pathing randomly and it runs into collision and wants to move in the direction it is blocked in (and the button for skipping if it cannot move isn't checked on) it will lock up your game.

Not saying this is the issue, just a reminder that RPG Maker gives you enough freedom to shoot yourself in the foot, heh.
Its not that since I got a freeze on a custom Scene.

I didn't investigate much, but it was either something deeper like PIXI lib, or something in the Graphics lib.

Which makes total sense both fixes posted here xD, it will be hard to see if its exactly that, but it does makes a lot of sense. So thanks both members that posted the fixed versions, I will check it out, if it happens still at any time I will try to investigate about it also since I noticed other people are having the same issues.
Wow thanks everyone for the quick responses, I figured this couldn't be the first time this issue was raised. When I'm back at my PC I'll try some of these fixes.

I didn't specify a scenario just because it's happened in various different scenes, on map and in menus, but I've never been able to isolate a singular cause
I don't want to double post, but I don't actually know if anyone gets alerts when I edit a post, or if I @ them in an edit. I do want the people that posted here to see this next bit So...
I tried the Fix_NoActivity.js by @ct_bolt
For my situation, it seems to have worked.

My most recent issue with freezing was on a custom scene
So I had
-Custom Scene (using Scene_Base prototype)
-PIXI.Sprite, PIXI.Container, PIXI.Text and PIXI.Graphics objects
-Various windows prototyped from windows in the RM core scripts
-Regular scrolling text using the standard .drawText functions on a tick based update.

I left the game on for two hours on the scene, where it would previously freeze.
After coming back, with the Fix_NoActivity.js plugin installed, my scene seems to be working as it should, and hasn't frozen or lost frames.

One interesting note is that where before, I would get mostly steady 60 fps with an occasional 59, now I'm getting mostly steady 60, with an occasional 61.

Anyway, thanks everyone, this has fixed my particular problem!
And special thanks to @ct_bolt for the plugin fix!
Wow! Glad @ct_bolt and the guy in the other tread fix this!
In fact, I think the problem is really what is stated in the other thread:
The skip count is below 0.

I have tried to replicate the issue. In the beginning, my game did not freeze at all. But I discover that the reason is that I was using the Community core version, that has already fixed this issue in the Rpg_core.js code:
JavaScript:
Graphics.render = function(stage) {
    if (this._skipCount <= 0) { //////// Here!!
        var startTime = Date.now();
        if (stage) {
            this._renderer.render(stage);
            if (this._renderer.gl && this._renderer.gl.flush) {
                this._renderer.gl.flush();
            }
        }
        var endTime = Date.now();
        var elapsed = endTime - startTime;
        this._skipCount = Math.min(Math.floor(elapsed / 15), this._maxSkip);
        this._rendered = true;
    } else {
        this._skipCount--;
        this._rendered = false;
    }
    this.frameCount++;
};

When I switched to 1.6.2 core version, I was able to get the freeze.
So this is a problem for anyone running 1.6.2 ? And this plugin is now a must? I’ll have to see if I too experience this freeze.

Original thread: https://forums.rpgmakerweb.com/threads/no-activity-freezing.118791/