Uncaught TypeError: SceneManager._scene._messageWindow.isAnySubWindowActive is not a function [no stack trace available]

Hi folks,

I am looking for some help regarding the crash message in the title:

Uncaught TypeError: SceneManager._scene._messageWindow.isAnySubWindowActive is not a function [no stack trace available]

This has been happening to players of my game, but it never happens for me. It happens more commonly for those on lower-end devices, and seems to have something to do with clicking the mouse quickly while scenes are changing (happens for some when opening the menu, happens for others at the end of battles, etc.).

I am hoping that someone can shed some light on what this message means, even if just as a starting point. I don't even know what sort of things I would start testing or what I would change to fix a crash like this. Because I haven't been able to reproduce it, I have no full crash log or anything like that.

My game has a ton of plugins, so it could be anything under the sun causing it, but I am mostly just looking for a general idea of what "sort" of thing could cause an error message like this so that I can start searching.

Thanks!
Tough luck. Maybe you can search for SceneManager._scene._messageWindow.isAnySubWindowActive
in all of the plugins?
Yea, I would check plugins first. A plugin could be prone to errors on scene change in various ways.

Without a stack trace, that error message just means something is referencing the current scene's _messageWindow property and trying to call its isAnySubWindowActive method (which is valid in MV or MZ). At the time of the error _messageWindow is apparently defined (otherwise the error would be different), but whatever it is, it does not have such a method.
Tough luck. Maybe you can search for SceneManager._scene._messageWindow.isAnySubWindowActive
in all of the plugins?

Thanks for the suggestion! I have only one plugin installed which had the method called only once, so I think that has narrowed it down (CTBolt_TouchInput). Now I can start doing some actual tests (or abandon the plugin if necessary).
other causes of error is plugins in the incorrect order.

specially by yanfly.

so something like this (various authors)

core
message
gameplay
core
message
core
misc
message

this could cause issues as well, so it's best to categorize them correctly
so the compability is far lower as well and easier to swap out.

if CTB_Bolt is the cause, you can do some test with a console.log("activated")
below isAnySubwindowActive to see WHEN it triggers so you can try to solve
it from there.
Uncaught TypeError: SceneManager._scene._messageWindow.isAnySubWindowActive is not a function [no stack trace available]
There's almost always a stack trace available. Have you tried F12?

Original thread: https://forums.rpgmakerweb.com/threads/uncaught-typeerror-scenemanager-_scene-_messagewindow-isanysubwindowactive-is-not-a-function-no-stack-trace-available.174856/