Bunny67 / WeakAuras-WotLK

World of Warcraft addon that provides a powerful framework to display customizable graphics on your screen.
GNU General Public License v2.0
161 stars 105 forks source link

Lua error - Model SubElement #69

Closed Zidras closed 3 years ago

Zidras commented 3 years ago

Describe the bug

Model SubElement into an Icon weakaura caused Lua error.

Do you have an error log of what happened?

Message: ...terface\AddOns\WeakAuras\SubRegionTypes\BarModel.lua:104: attempt to call method 'SetModelAlpha' (a nil value)
Time: 04/02/21 12:19:58
Count: 731
Stack: [C]: in function `SetModelAlpha'
...terface\AddOns\WeakAuras\SubRegionTypes\BarModel.lua:104: in function `SetAlpha'
...terface\AddOns\WeakAuras\SubRegionTypes\BarModel.lua:109: in function `?'
...ace\AddOns\WeakAuras\RegionTypes\RegionPrototype.lua:33: in function `Notify'
...ace\AddOns\WeakAuras\RegionTypes\RegionPrototype.lua:397: in function `SetAnimAlpha'
Interface\AddOns\WeakAuras\Animations.lua:98: in function <Interface\AddOns\WeakAuras\Animations.lua:15>

Locals: 
Message: ...terface\AddOns\WeakAuras\SubRegionTypes\BarModel.lua:104: attempt to call method 'SetModelAlpha' (a nil value)
Time: 04/02/21 12:19:58
Count: 707
Stack: [C]: in function `SetModelAlpha'
...terface\AddOns\WeakAuras\SubRegionTypes\BarModel.lua:104: in function `SetAlpha'
...terface\AddOns\WeakAuras\SubRegionTypes\BarModel.lua:109: in function `?'
...ace\AddOns\WeakAuras\RegionTypes\RegionPrototype.lua:33: in function `Notify'
...ace\AddOns\WeakAuras\RegionTypes\RegionPrototype.lua:397: in function `SetAnimAlpha'
Interface\AddOns\WeakAuras\Animations.lua:146: in function <Interface\AddOns\WeakAuras\Animations.lua:15>

Locals: 
Message: Interface\AddOns\WeakAuras\Modernize.lua:7: bad argument #2 to 'format' (string expected, got nil)
Time: 04/02/21 12:27:48
Count: 1
Stack: Interface\AddOns\WeakAuras\WeakAuras.lua:2519: in function `Add'
...ddOns\WeakAurasOptions\OptionsFrames\ModelPicker.lua:157: in function `Pick'
...ddOns\WeakAurasOptions\OptionsFrames\ModelPicker.lua:105: in function <...ddOns\WeakAurasOptions\OptionsFrames\ModelPicker.lua:102>
(tail call): ?
[C]: ?
[string "safecall Dispatcher[4]"]:9: in function <[string "safecall Dispatcher[4]"]:5>
(tail call): ?
...face\AddOns\WeakAuras\Libs\AceGUI-3.0\AceGUI-3.0.lua:318: in function `Fire'
...ceGUI-Widgets\AceGUIContainer-WeakAurasTreeGroup.lua:518: in function `SetSelected'
...ceGUI-Widgets\AceGUIContainer-WeakAurasTreeGroup.lua:197: in function <...ceGUI-Widgets\AceGUIContainer-WeakAurasTreeGroup.lua:193>

Locals: No locals to dump

To Reproduce

Steps to reproduce the behavior:

  1. Add Model to an Icon weakaura
  2. This causes Lua errors 1 and 2 (every frame)
  3. If I disable Model 1 and go into the ModelPicker and select one .m2, gives lua error 3, each time a new model is selected.

Screenshots

image image

Which version of WeakAuras are you using?

3.2.1

Additional Info

None