WeakAuras

WeakAuras

206M Downloads

Animations - Division by 0 in beta

asaka-wa opened this issue ยท 0 comments

commented

Describe the bug

It's possible to throw a division by zero error every frame with default settings.

Do you have an error log of what happened?

Message: Interface\AddOns\WeakAuras\Animations.lua:58: Division by zero
Time: Mon Sep 21 11:32:31 2020
Count: 5024
Stack: Interface\AddOns\WeakAuras\Animations.lua:58: Division by zero
[string "@Interface\AddOns\WeakAuras\Animations.lua"]:58: in function <Interface\AddOns\WeakAuras\Animations.lua:15>

Locals: errorHandler = <function> defined @Interface\AddOns\WeakAuras\Animations.lua:9
time = 558250.041000
elapsed = 0.012000
num = 1
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
 table: 00000212D5A2C850 = <table> {
 }
}
(for control) = "table: 00000212D5A2C850"
key = "table: 00000212D5A2C850"
anim = <table> {
 startAlpha = 1
 colorR = 1
 auraUID = "ouhFYMAatZL"
 progress = 0
 duration_type = "relative"
 colorB = 1
 colorG = 1
 easeFunc = <function> defined @Interface\AddOns\WeakAuras\Types.lua:1865
 namespace = "display"
 type = "main"
 region = <unnamed> {
 }
 startHeight = 15.000046
 anim = <table> {
 }
 duration = 0
 easeStrength = 3
 easeType = "none"
 loop = true
 startRotation = 0
 inverse = false
 colorFunc = <function> defined --[==[ Error in 'New 2':'color animation' ]==] return     function(progress, r1, g1, b1, a1, r2, g2, b2, a2)
      return r1 + (progress * (r2 - r1)), g1 + (progress * (g2 - g1)), b1 + (progress * (b2 - b1)), a1 + (progress * (a2 - a1))
    end
  :1
 rotate = 0
 startWidth = 199.999908
 colorA = 1
}
finished = false
state = <table> {
 triggernum = 1
 progressType = "timed"
 changed = false
 expirationTime = 558308.358000
 show = true
 stacks = 1
 id = "New 2"
 trigger = <table> {
 }
 duration = 65
}
relativeProgress = 0.102815
(*temporary) = 0
(*temporary) = 65
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "Division by zero"
Private = <table> {
 HandleGlowAction = <function> defined @Interface\AddOns\WeakAuras\WeakAuras.lua:3089
 frame_strata_types = <table> {
 }
 combat_event_type = <table> {
 }
 frameLevels = <table> {
 }
 CheckItemSlotCooldowns = <function> defined @Interface\AddOns\WeakAuras\GenericTrigger.lua:2257
 InitializeEncounterAndZoneLists = <function> defined @Interface\AddOns\WeakAuras\Prototypes.lua:122
 IsEnvironmentInitialized = <function> defined @Interface\AddOns\WeakAuras\AuraEnvironment.lua:184
 duration_types = <table> {
 }
 CleanArchive = <function> defined @Interface\AddOns\WeakAuras\History.lua:21
 RunConditions = <function> defined @Interface\AddOns\WeakAuras\Conditions.lua:589
 tooltip_count = <table> {
 }
 pet_spec_types = <table> {
 }
 ReplaceLocalizedRaidMarkers = <function> defined @Interface\AddOns\WeakAuras\WeakAuras.lua:5016
 author_option_classes = <table> {
 }
 event_types = <table> {
 }
 grid_types = <table> {
 }
 non_transmissable_fields = <table> {
 }
 absorb_modes = <table> {
 }
 miss_types = <table> {
 }
 faction_group = <table> {
 }
 autoeventend_types = <table> {
 }
 ensurePRDFrame = <function> defined @Interface\AddOns\WeakAuras\WeakAuras.lua:4545
 talent_types = <table> {
 }
 reset_swing_spells = <table> {
 }
 spec_types_all = <table> {
 }
 FinishLoadUnload = <function> defined @Interface\AddOns\WeakAuras\WeakAuras.lua:1702
 subRegionTypes = <table> {
 }
 ToggleMinimap = <function> defined @Interface\AddOns\WeakAuras\WeakAuras.lua:150
 array_entry_name_types = <table> {
 }
 RegisterLoadEvents = <function> defined @Interface\AddOns\WeakAuras\WeakAuras.lua:1557
 FixGroupChildrenOrderForGroup = <function> defined @Interface\AddOns\WeakAuras\WeakAuras.lua:3537
 blend_types = <table> {
 }
 text_automatic_width = <table> {
 }
 CheckSpellCooldown = <function> defined @Interface\AddOns\WeakAuras\GenericTrigger.lua:2143
 custom_trigger_types = <table> {
 }
 group_types = <table> {
 }
 subRegionOptions = <table> {
 }
 text_rotate_types = <table> {
 }
 spec_types = <table> {
 }
 anim_ease_types = <table> {
 }
 item_slot_types = 

To Reproduce

  • New Bar Aura
  • Animations - Main = Custom
  • Time In set to Relative
  • Tick Colour

Screenshots

Did you try having WeakAuras as the only enabled addon and everything else (especially something like ElvUI) disabled?

Yes.

Which version of WeakAuras are you using?

3.0.0-beta2

Are you on World of Warcraft Classic or Retail?

  • Classic
  • Retail
  • Shadowlands

Was it working in a previous version? If yes, which was the last good one?

I didn't try this specific thing in beta1