Yanfly battle core crash

This error happens at one battle. I am not sure what's causing it.

Code:
[ERROR 1/28/2018 03:56:39pm] TypeError: targets.slice is not a function
at Function.BattleManager.startAction (chrome-extension://kmcklefpbipcgojefbeoemppffjeofpm/www/js/plugins/YEP_BattleEngineCore.js:2277:32)
at Function.BattleManager.startAction (chrome-extension://kmcklefpbipcgojefbeoemppffjeofpm/www/js/plugins/YEP_X_BattleSysSTB.js:376:40)
at Function.BattleManager.startAction (chrome-extension://kmcklefpbipcgojefbeoemppffjeofpm/www/js/plugins/YEP_BuffsStatesCore.js:1122:42)
at Function.BattleManager.startAction (chrome-extension://kmcklefpbipcgojefbeoemppffjeofpm/www/js/plugins/YEP_InstantCast.js:337:46)
at Function.BattleManager.startAction (chrome-extension://kmcklefpbipcgojefbeoemppffjeofpm/www/js/plugins/YEP_WeaponUnleash.js:491:42)
at Function.BattleManager.startATBAction (chrome-extension://kmcklefpbipcgojefbeoemppffjeofpm/www/js/plugins/YEP_X_BattleSysATB.js:1298:12)
at Function.BattleManager.updateATBPhase (chrome-extension://kmcklefpbipcgojefbeoemppffjeofpm/www/js/plugins/YEP_X_BattleSysATB.js:1109:37)
at Function.BattleManager.update (chrome-extension://kmcklefpbipcgojefbeoemppffjeofpm/www/js/plugins/YEP_X_BattleSysATB.js:1080:14)
at Function.BattleManager.update (chrome-extension://kmcklefpbipcgojefbeoemppffjeofpm/www/js/plugins/YEP_X_BattleSysCTB.js:955:39)
at Scene_Battle.updateBattleProcess (chrome-extension://kmcklefpbipcgojefbeoemppffjeofpm/www/js/rpg_scenes.js:2058:23)

Huge update!

I found out the reason; it happens when the boss enemy becomes fascinated. The "mobs" in the fight don't cause crash when they become fascinated.
please post a screenshot of your plugin manager and tell us the version number inside your project's rpg_core.js file.
Without that info, we can't really search for the cause of this error.

that said, most probably it's connected to why Yanfly discontinued support for his CTB/ATB plugins a long time ago.
Which also means that those plugins might no longer be compatible to newer plugins or cores.
please post a screenshot of your plugin manager and tell us the version number inside your project's rpg_core.js file.
Without that info, we can't really search for the cause of this error.

that said, most probably it's connected to why Yanfly discontinued support for his CTB/ATB plugins a long time ago.
Which also means that those plugins might no longer be compatible to newer plugins or cores.

I mean, I literally just shared the reason in that error log. 1.51

error.png
@Tuomo L please read what I asked - I didn't ask for a screenashot of the error message (exactly because you gave most of its content), I asked for a screenshot of your plugin manager.
besides - that screenshot shows a different error, but we need to see the plugin manager with your list of plugins in both cases.
Does your other battles work properly? You said this happens at one battle, what's different about this battle? That could very well be the culprit.
@Tuomo L please read what I asked - I didn't ask for a screenashot of the error message (exactly because you gave most of its content), I asked for a screenshot of your plugin manager.
besides - that screenshot shows a different error, but we need to see the plugin manager with your list of plugins in both cases.

Oh boy, here we go.

plugin1.jpg
plugin2.jpg
plugin3.jpg
plugin4.jpg
plugin5.jpg
plugin6.jpg
plugin7.jpg
plugin8.jpg
plugin9.jpg
Unfortunately we can't work or help you at all if we get wrong info. And that includes if you're trying to test and solve the problem yourself and give different states of the project in your posts and screenshots.

The original error description contained these two lines:
This error happens at one battle. I am not sure what's causing it.
Code:
[ERROR 1/28/2018 03:56:39pm] TypeError: targets.slice is not a function
<snip>
at Function.BattleManager.update (chrome-extension://kmcklefpbipcgojefbeoemppffjeofpm/www/js/plugins/YEP_X_BattleSysCTB.js:955:39)

the screenshot of the console in post #3 suddenly shows "undefined is not a function", which is a completely different error message than "targets.slice is not a function", because in that second variant of the error message there is suddenly something undefined instead of the original error.

And now in the plugin manager it is reveraled that the CTB-plugin which was part of the original error has been disabled since that error was posted here.

Don't mistake me - it is very good that you try to find the cause yourself. But you need to understand that if the error message changes like that, then you're looking at a new and different error and should at least inform us about what you changed and what the result of a change was.

Can you give us a more detailed description of the latest results? Including if this happens only with a certain battle or with all battles and what the current error report in the console with the plugin selection as shown above shows?
Unfortunately we can't work or help you at all if we get wrong info. And that includes if you're trying to test and solve the problem yourself and give different states of the project in your posts and screenshots.

The original error description contained these two lines:


the screenshot of the console in post #3 suddenly shows "undefined is not a function", which is a completely different error message than "targets.slice is not a function", because in that second variant of the error message there is suddenly something undefined instead of the original error.

And now in the plugin manager it is reveraled that the CTB-plugin which was part of the original error has been disabled since that error was posted here.

Don't mistake me - it is very good that you try to find the cause yourself. But you need to understand that if the error message changes like that, then you're looking at a new and different error and should at least inform us about what you changed and what the result of a change was.

Can you give us a more detailed description of the latest results? Including if this happens only with a certain battle or with all battles and what the current error report in the console with the plugin selection as shown above shows?

I was told to disable CTB to try and see if it'd fix the issue. Undefined is not a function is how it was called originally but in the error plugin it actually shows the error message in a helpful manner.

It only happens with this one battle as far as I can tell.

EDIT: It seems to happen after enemy does Strong attack and another enemy attacks.
Huge update!

I found out the reason; it happens when the boss enemy becomes fascinated. The "mobs" in the fight don't cause crash when they become fascinated.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-battle-core-crash.90596/