MV Okay, I give up. Why is this throwing a Maximum Call Stack?

The differences I noticed from my original plugin to yours is that I never used an alias for Scene_Map.prototype.update().
the only purpose of the alias there is to connect the window to the scene's refresh loop so that it could automatically update as the actor's hp changed. other than that, itd have no impact on the window.

When I was getting the error I was simply calling Window_MyWindow.prototype.refresh(), could this be the cause for the errors and why clear had failed?
I stress this point
you would have to show the entire plugin to share all your changes.
Had you not said that, id have never guessed thats actually what you did. When you mentioned it earlier, i thought you were sharing the name of the definition since it looked like it had parameter names and not actual arguments. Calling Window_MyWindow.prototype.refresh() directly could only result in an error. Window_MyWindow is not an instance of a window. Its not ceated, wouldnt have any of the normal associated properties its instances would have gotten on creation, and would cause an error the second it has to access one.
Your error is that the game cant access something thats supposed to have a bitmap property (that thing is undefined and thus, was never set up or was removed)
As an analogy, you can think of the prototype as blueprints: just a bunch of design drawings to inform how to create a new instance of that object. A method like refresh expects to update properties found on an actual window, not a drawing of one, hence the problems.
As an analogy, you can think of the prototype as blueprints: just a bunch of design drawings to inform how to create a new instance of that object. A method like refresh expects to update properties found on an actual window, not a drawing of one, hence the problems.
Yeah, I get it now. Calling Window_MyWindow.prototype.refresh() does nothing other than a command for a window that doesn't exist.

It's this._myWindow.refresh() that tells the window to use the refresh command because _myWindow is assigned to that specific window. It's obvious now, for some reason I had it in my head that if the window is open this should work, but it wasn't actually being assigned to a specific window.

Original thread: https://forums.rpgmakerweb.com/threads/okay-i-give-up-why-is-this-throwing-a-maximum-call-stack.179062/