vikinghug / VikingUnitFrames

Wildstar VikinghugUI TargetFrame
7 stars 12 forks source link

tFrame nil value crash #143

Open mavinger opened 10 years ago

mavinger commented 10 years ago

Test batch 0.2.0

Icekronik was experiencing the following error when targeting "Plague Breeder" mob in Genetic Archives raid:

[14:22:49] I am in the raid and my Unitframes crash like there is no tomorrow [14:22:49] ...ildStar\Addons\VikingUnitFrames\VikingUnitFrames.lua:423: attempt to index local 'tFrame' (a nil value) [14:22:49] stack trace: [14:22:49] ...ildStar\Addons\VikingUnitFrames\VikingUnitFrames.lua:423: in function 'UpdatePetFrame' [14:22:49] ...ildStar\Addons\VikingUnitFrames\VikingUnitFrames.lua:532: in function <...ildStar\Addons\VikingUnitFrames\VikingUnitFrames.lua:457>

Will update with link to stream showing error.

ghost commented 10 years ago

looks like it's happening in the clusterframe code, does Plague Breeder spawn new enemies?

mavinger commented 10 years ago

@midraal I was watching Icekronik's stream after he mentioned the error. The Plague Breeder does spawn a bunch of small mobs at set intervals but from what I could see they are individual from the Plague Breeder. In other words, not linked via cluster. On another note, I am 100% sure that I have this fixed on my development side. I ran into a similar tFrame nil value issue with some mob clusters in Malgrave where one of the mobs in the pack did not have an HP or Shield Bar and added code to check for nil values.

EDIT: See this fork branch: https://github.com/venetianthief/VikingUnitFrames/tree/fix-tooltip If you run this it will probably error out because I am in the middle of migrating some common functions into VikingLibrary.