Plugin Crashes Battles

I get this error.

Failed to execute 'createLinearGradient' on 'CanvasRenderingContext2D': float parameter 2 is non-finite.

TypeError: Failed to execute 'createLinearGradient' on 'CanvasRenderingContext2D': float parameter 2 is non-finite.
at TypeError (native)
at Bitmap.gradientFillRect (file:///C:/Users/topha/Documents/Games/Project2/js/rpg_core.js:998:24)
at Window_BattleStatus.Window_Base.drawGauge (file:///C:/Users/topha/Documents/Games/Project2/js/rpg_windows.js:469:19)
at Window_BattleStatus.Window_Base.drawActorHp (file:///C:/Users/topha/Documents/Games/Project2/js/rpg_windows.js:555:10)
at Window_BattleStatus.drawGaugeArea (file:///C:/Users/topha/Documents/Games/Project2/js/plugins/YEP_BattleStatusWindow.js:507:10)
at Window_BattleStatus.drawItem (file:///C:/Users/topha/Documents/Games/Project2/js/plugins/YEP_BattleStatusWindow.js:478:10)
at Window_BattleStatus.Window_Selectable.drawAllItems (file:///C:/Users/topha/Documents/Games/Project2/js/rpg_windows.js:1250:18)
at Window_BattleStatus.drawAllItems (file:///C:/Users/topha/Documents/Games/Project2/js/plugins/YEP_BattleStatusWindow.js:433:46)
at Window_BattleStatus.refresh (file:///C:/Users/topha/Documents/Games/Project2/js/rpg_windows.js:5485:10)
at Window_BattleStatus.initialize (file:///C:/Users/topha/Documents/Games/Project2/js/rpg_windows.js:5463:10)rpg_managers.js:1756 SceneManager.catchException

Whenever I place all the plugins into another game, but without YEP_BattleStatusWindow, the game works fine.

upload_2017-6-1_15-10-50.png


upload_2017-6-1_15-11-55.png


I do have the Core Engine installed.
Try turning off the Mog Weather Plug-in. Traditionally, Moghunger and yanfly's plug-ins do not work together.
Try turning off the Mog Weather Plug-in. Traditionally, Moghunger and yanfly's plug-ins do not work together.

I turned off the weather, but the error is still there. When I turn off The Battle Status Windows, and have weather on, the error is gone.
Ok, the other thing to try (and keep the Weather Plug-In off while testing this and al non-Yanfly plug-ins)...make sure the plug ins are in the order they are supposed to be per Yanfly's site, and make sure they are all up to date.

Also, are you starting a new game when you test this? Plug-ins don't work the best when they are used on old saves (and many do not work well for battle test either).

Original thread: https://forums.rpgmakerweb.com/threads/plugin-crashes-battles.79404/