sunaurus / ElvUI_TankHealth

ElvUI plugin for showing tank potential self-healing on the healthbar
https://mods.curse.com/addons/wow/elvui_tankhealth
3 stars 4 forks source link

A bug occur when switching spec #6

Open vdubus opened 7 years ago

vdubus commented 7 years ago

I was playing as a druid.

Here the stack trace.

1x ElvUI_TankHealth\main.lua:365: attempt to index field 'HealPrediction' (a nil value)
ElvUI_TankHealth\main.lua:365: in function <ElvUI_TankHealth\main.lua:349>
(tail call): ?

Locals:
self = ElvUF_Player {
 0 = <userdata>
 BORDER = 1
 POWERBAR_OFFSET = 0
 CombatFade = true
 UNIT_SPELLCAST_CHANNEL_START = <function> defined @ElvUI\Libraries\oUF\elements\castbar.lua:377
 __mousetags = <table> {
 }
 USE_INSET_POWERBAR = false
 UNIT_MAXHEALTH = <table> {
 }
 PLAYER_UPDATE_RESTING = <function> defined @ElvUI\Libraries\oUF\elements\restingindicator.lua:58
 UNIT_POWER_FREQUENT = <function> defined @ElvUI\Libraries\oUF\elements\power.lua:244
 Portrait3D = <unnamed> {
 }
 UNIT_POWER_BAR_SHOW = <function> defined @ElvUI\Libraries\oUF\elements\power.lua:244
 UNIT_SPELLCAST_NOT_INTERRUPTIBLE = <function> defined @ElvUI\Libraries\oUF\elements\castbar.lua:295
 PLAYER_REGEN_DISABLED = <function> defined @ElvUI\Libraries\oUF\elements\combatindicator.lua:58
 PLAYER_SPECIALIZATION_CHANGED = <function> defined @ElvUI_TankHealth\main.lua:349
 RaisedElementParent = <unnamed> {
 }
 DebuffHighlightBackdrop = false
 style = "ElvUF"
 PvPIndicator = <unnamed> {
 }
 MAX_CLASS_BAR = 5
 VARIABLES_SET = true
 UNIT_EXITED_VEHICLE = <function> defined @ElvUI\Libraries\oUF\ouf.lua:41
 __HookFunc = true
 UNIT_CONNECTION = <table> {
 }
 Debuffs = ElvUF_PlayerDebuffs {
 }
 POWERBAR_HEIGHT = 10
 UNIT_HEAL_PREDICTION = <function> defined @ElvUI\Libraries\oUF\elements\healthprediction.lua:201
 CombatFadeHooked = true
 CLASSBAR_DETACHED = false
 Update = <function> defined @ElvUI\Modules\unitframes\unitframes.lua:894
 unit = "player"
 UNIT_SPELLCAST_DELAYED = <function> defined @ElvUI\Libraries\oUF\elements\castbar.lua:317
 colors = <table> {
 }
 INFO_PANEL_HEIGHT = 0
 SHADOW_SPACING = 3
 UNIT_SPELLCAST_STOP = <function> defined @ElvUI\Libraries\oUF\elements\castbar.lua:346
 UNIT_AURA = <table> {
 }
 ClassBarHolder = <unnamed> {
 }
 USE_INFO_PANEL = false
 UNIT_WIDTH = 270
 USE_CLASSBAR = true
 CLASSBAR_HEIGHT = 0
 UNIT_SPELLCAST_FAILED = <function> defined @ElvUI\Libraries\oUF\elements\castbar.lua:186
 unitframeType = "player"
 USE_POWERBAR = true
 ThreatIndicator = <unnamed> {
 }
 CLASSBAR_WIDTH = 268
 Portrait2D = <unnamed> {
 }
 Name = <unnamed> {
 }
 fadeInfo = <table> {
 }
 CHARACTER_POINTS_CHANGED = <function> defined @ElvUI\Libraries\oUF_Plugins\oUF_RaidDebuffs\oUF_RaidDebuffs.lua:117
 Buffs = ElvUF_PlayerBuffs {
 }
 CAN_HAVE_CLASSBAR = true
 UNIT_ENTERED_VEHICLE = <function> defined @ElvUI\Libraries\oUF\ouf.lua:41
 AuraBars = <unnamed> {
 }
 HealthPrediction = <table> {
 }
 UNIT_POWER_BAR_HIDE = <function> defined @ElvUI\Libraries\oUF\elements\power.lua:244
 __tags = <table> {
 }
 PLAYER_ENTERING_WORLD = <function> defined @ElvUI\Libraries\oUF\ouf.lua:200
 DBHGlow = <unnamed> {
 }
 CLASSBAR_YOFFSET = 0
 DebuffHighlightFilterTable = <table> {
 }
 UNIT_SPELLCAST_INTERRUPTIBLE = <function> defined @ElvUI\Libraries\oUF\elements\castbar.lua:272
 POWERBAR_WIDTH = 268
 USE_PORTRAIT = false
 UNIT_HEALTH_FREQUENT = <function> defined @ElvUI\Libraries\oUF\elements\health.lua:172
 USE_POWERBAR_OFFSET = false
 __elements = <table> {
 }
 USE_MINI_POWERBAR = false
 ClassBar = "ClassPower"
 CLASSBAR_SHOWN = false
 PORTRAIT_WIDTH = 0
 Castbar = <unnamed> {
 }
 customTexts = <table> {
 }
 DebuffHighlight = <unnamed> {
 }
 DebuffHighlightFilter = true
 UNIT_THREAT_SITUATION_UPDATE = <function> defined @ElvUI\Libraries\oUF\elements\threatindicator.lua:85
 ORIENTATION = "LEFT"
 UNIT_HEALTH = <function> defined @ElvUI\Libraries\oUF\elements\healthprediction.lua:201
 Health = <unnamed> {
 }
 db = <table> {
 }
 POWERBAR_DETACHED = false
 UNIT_SPELLCAST_SENT = <function> defined @ElvUI\Libraries\oUF\elements\castbar.lua:107
 UNIT_SPELLCAST_CHANNEL_UPDATE = <function> defined @ElvUI\Libraries\oUF\elements\castbar.lua:444
 PvPText = <unnamed> {
 }
 UNIT_SPELLCAST_INTERRUPT
8x ElvUI_TankHealth\main.lua:378: attempt to index field 'HealPrediction' (a nil value)
ElvUI_TankHealth\main.lua:378: in function <ElvUI_TankHealth\main.lua:349>
(tail call): ?

Locals:
self = ElvUF_Player {
 0 = <userdata>
 BORDER = 1
 POWERBAR_OFFSET = 0
 CombatFade = true
 UNIT_SPELLCAST_CHANNEL_START = <function> defined @ElvUI\Libraries\oUF\elements\castbar.lua:377
 __mousetags = <table> {
 }
 USE_INSET_POWERBAR = false
 UNIT_MAXHEALTH = <table> {
 }
 PLAYER_UPDATE_RESTING = <function> defined @ElvUI\Libraries\oUF\elements\restingindicator.lua:58
 UNIT_POWER_FREQUENT = <table> {
 }
 Portrait3D = <unnamed> {
 }
 UNIT_POWER_BAR_SHOW = <function> defined @ElvUI\Libraries\oUF\elements\power.lua:244
 UNIT_SPELLCAST_NOT_INTERRUPTIBLE = <function> defined @ElvUI\Libraries\oUF\elements\castbar.lua:295
 PLAYER_REGEN_DISABLED = <function> defined @ElvUI\Libraries\oUF\elements\combatindicator.lua:58
 PLAYER_SPECIALIZATION_CHANGED = <function> defined @ElvUI_TankHealth\main.lua:349
 RaisedElementParent = <unnamed> {
 }
 DebuffHighlightBackdrop = false
 style = "ElvUF"
 PvPIndicator = <unnamed> {
 }
 MAX_CLASS_BAR = 5
 VARIABLES_SET = true
 UNIT_EXITED_VEHICLE = <function> defined @ElvUI\Libraries\oUF\ouf.lua:41
 __HookFunc = true
 UNIT_CONNECTION = <table> {
 }
 Debuffs = ElvUF_PlayerDebuffs {
 }
 POWERBAR_HEIGHT = 10
 UNIT_HEAL_PREDICTION = <function> defined @ElvUI\Libraries\oUF\elements\healthprediction.lua:201
 CombatFadeHooked = true
 CLASSBAR_DETACHED = false
 Update = <function> defined @ElvUI\Modules\unitframes\unitframes.lua:894
 unit = "player"
 UNIT_SPELLCAST_DELAYED = <function> defined @ElvUI\Libraries\oUF\elements\castbar.lua:317
 colors = <table> {
 }
 INFO_PANEL_HEIGHT = 0
 SHADOW_SPACING = 3
 UNIT_SPELLCAST_STOP = <function> defined @ElvUI\Libraries\oUF\elements\castbar.lua:346
 UNIT_AURA = <table> {
 }
 ClassBarHolder = <unnamed> {
 }
 USE_INFO_PANEL = false
 UNIT_WIDTH = 270
 USE_CLASSBAR = true
 CLASSBAR_HEIGHT = 10
 UNIT_SPELLCAST_FAILED = <function> defined @ElvUI\Libraries\oUF\elements\castbar.lua:186
 unitframeType = "player"
 USE_POWERBAR = true
 ThreatIndicator = <unnamed> {
 }
 CLASSBAR_WIDTH = 268
 Portrait2D = <unnamed> {
 }
 Name = <unnamed> {
 }
 fadeInfo = <table> {
 }
 CHARACTER_POINTS_CHANGED = <function> defined @ElvUI\Libraries\oUF_Plugins\oUF_RaidDebuffs\oUF_RaidDebuffs.lua:117
 Buffs = ElvUF_PlayerBuffs {
 }
 CAN_HAVE_CLASSBAR = true
 UNIT_ENTERED_VEHICLE = <function> defined @ElvUI\Libraries\oUF\ouf.lua:41
 AuraBars = <unnamed> {
 }
 HealthPrediction = <table> {
 }
 UNIT_POWER_BAR_HIDE = <function> defined @ElvUI\Libraries\oUF\elements\power.lua:244
 __tags = <table> {
 }
 PLAYER_ENTERING_WORLD = <function> defined @ElvUI\Libraries\oUF\ouf.lua:200
 DBHGlow = <unnamed> {
 }
 CLASSBAR_YOFFSET = 9
 DebuffHighlightFilterTable = <table> {
 }
 UNIT_SPELLCAST_INTERRUPTIBLE = <function> defined @ElvUI\Libraries\oUF\elements\castbar.lua:272
 POWERBAR_WIDTH = 268
 USE_PORTRAIT = false
 UNIT_HEALTH_FREQUENT = <function> defined @ElvUI\Libraries\oUF\elements\health.lua:172
 USE_POWERBAR_OFFSET = false
 __elements = <table> {
 }
 USE_MINI_POWERBAR = false
 ClassBar = "ClassPower"
 CLASSBAR_SHOWN = true
 PORTRAIT_WIDTH = 0
 Castbar = <unnamed> {
 }
 customTexts = <table> {
 }
 DebuffHighlight = <unnamed> {
 }
 DebuffHighlightFilter = true
 UNIT_THREAT_SITUATION_UPDATE = <function> defined @ElvUI\Libraries\oUF\elements\threatindicator.lua:85
 ORIENTATION = "LEFT"
 UNIT_HEALTH = <function> defined @ElvUI\Libraries\oUF\elements\healthprediction.lua:201
 Health = <unnamed> {
 }
 db = <table> {
 }
 POWERBAR_DETACHED = false
 UNIT_SPELLCAST_SENT = <function> defined @ElvUI\Libraries\oUF\elements\castbar.lua:107
 UNIT_SPELLCAST_CHANNEL_UPDATE = <function> defined @ElvUI\Libraries\oUF\elements\castbar.lua:444
 PvPText = <unnamed> {
 }
 UNIT_SPELLCAST_INTERRUPTED = <function> defined @ElvUI\Libraries\oUF\eleme
vdubus commented 7 years ago

Hum, after updating to the latest version of ElvUI, i get the following error when logging in:

Message: Interface\AddOns\ElvUI_TankHealth\main.lua:378: attempt to index field 'HealPrediction' (a nil value)
Time: 06/18/17 11:49:40
Count: 1
Stack: Interface\AddOns\ElvUI_TankHealth\main.lua:378: attempt to index field 'HealPrediction' (a nil value)Interface\AddOns\ElvUI\core\core.lua:1491: in function `Initialize'
Interface\AddOns\ElvUI\init.lua:137: in function <Interface\AddOns\ElvUI\init.lua:136>

Locals: <none>
KnightDemons commented 7 years ago

I just released an update to this addon till the Creator/Author: Sunaurus returns. It was an easy fix to the oUF of the addon. Mostly name changes with 7.2.5. https://github.com/KnightDemons/ElvUI_TankHealth/releases/tag/1.13