SilverDragon - Rare Scanner

SilverDragon - Rare Scanner

20M Downloads

Lua error: attempt to perform arithmetic on field 'icon_alpha' (a nil value)

KyrosKrane opened this issue ยท 3 comments

commented

Sorry for dumping all these issues on you; they're just what's coming up as I'm testing the Mechaspider issue! :)

This lua error popped up as I was clicking around in the SD settings. I can't reproduce it reliably, but it seems to happen most frequently when clicking Scanning -> Vignettes -> Ignore. This came up with no other addons enabled, and with my usual addon loadout.

Message: Interface\AddOns\SilverDragon_Overlay\minimap.lua:184: attempt to perform arithmetic on field 'icon_alpha' (a nil value)
Time: Mon Mar 21 23:39:59 2022
Count: 1
Stack: Interface\AddOns\SilverDragon_Overlay\minimap.lua:184: attempt to perform arithmetic on field 'icon_alpha' (a nil value)
[string "@Interface\AddOns\SilverDragon_Overlay\minimap.lua"]:184: in function `UpdateEdge'
[string "@Interface\AddOns\SilverDragon_Overlay\minimap.lua"]:122: in function <Interface\AddOns\SilverDragon_Overlay\minimap.lua:118>
[string "@Interface\SharedXML\C_TimerAugment.lua"]:16: in function <Interface\SharedXML\C_TimerAugment.lua:14>

Locals: self = <unnamed> {
 0 = <userdata>
 DriverAnimation = <unnamed> {
 }
 OnMouseEnter = <function> defined @Interface\AddOns\SilverDragon_Overlay\pins.lua:70
 Expand = <unnamed> {
 }
 OnMouseUp = <function> defined @Interface\AddOns\SilverDragon_Overlay\pins.lua:90
 OnAcquired = <function> defined @Interface\AddOns\SilverDragon_Overlay\pins.lua:16
 OnMouseDown = <function> defined @Interface\AddOns\SilverDragon_Overlay\pins.lua:87
 UpdateEdge = <function> defined @Interface\AddOns\SilverDragon_Overlay\minimap.lua:183
 texture = <unnamed> {
 }
 Ping = <function> defined @Interface\AddOns\SilverDragon_Overlay\pins.lua:121
 uiMapID = 1462
 OnLoad = <function> defined @Interface\AddOns\SilverDragon_Overlay\minimap.lua:169
 provider = <table> {
 }
 pinTemplate = "SilverDragonOverlayMinimapPinTemplate"
 coord = 65402340
 config = <table> {
 }
 emphasis = <unnamed> {
 }
 ScaleAnimation = <unnamed> {
 }
 minimap = true
 mobid = 152001
 ApplyFocusState = <function> defined @Interface\AddOns\SilverDragon_Overlay\pins.lua:126
 OnReleased = <function> defined @Interface\AddOns\SilverDragon_Overlay\pins.lua:58
 OnMouseLeave = <function> defined @Interface\AddOns\SilverDragon_Overlay\pins.lua:77
}
(*temporary) = 1
(*temporary) = nil
(*temporary) = <unnamed> {
 0 = <userdata>
 DriverAnimation = <unnamed> {
 }
 OnMouseEnter = <function> defined @Interface\AddOns\SilverDragon_Overlay\pins.lua:70
 Expand = <unnamed> {
 }
 OnMouseUp = <function> defined @Interface\AddOns\SilverDragon_Overlay\pins.lua:90
 OnAcquired = <function> defined @Interface\AddOns\SilverDragon_Overlay\pins.lua:16
 OnMouseDown = <function> defined @Interface\AddOns\SilverDragon_Overlay\pins.lua:87
 UpdateEdge = <function> defined @Interface\AddOns\SilverDragon_Overlay\minimap.lua:183
 texture = <unnamed> {
 }
 Ping = <function> defined @Interface\AddOns\SilverDragon_Overlay\pins.lua:121
 uiMapID = 1462
 OnLoad = <function> defined @Interface\AddOns\SilverDragon_Overlay\minimap.lua:169
 provider = <table> {
 }
 pinTemplate = "SilverDragonOverlayMinimapPinTemplate"
 coord = 65402340
 config = <table> {
 }
 emphasis = <unnamed> {
 }
 ScaleAnimation = <unnamed> {
 }
 minimap = true
 mobid = 152001
 ApplyFocusState = <function> defined @Interface\AddOns\SilverDragon_Overlay\pins.lua:126
 OnReleased = <function> defined @Interface\AddOns\SilverDragon_Overlay\pins.lua:58
 OnMouseLeave = <function> defined @Interface\AddOns\SilverDragon_Overlay\pins.lua:77
}
(*temporary) = <table> {
 instanceID = 1643
 uiMapID = 1462
 floatOnEdge = false
 showInParentZone = false
 y = 3316.600762
 x = 5092.105078
}
(*temporary) = "attempt to perform arithmetic on field 'icon_alpha' (a nil value)"
HBDPins = <table> {
 minimapPins = <table> {
 }
 SetMinimapObject = <function> defined @Interface\AddOns\SilverDragon\lib\HereBeDragons\HereBeDragons-Pins-2.0.lua:630
 worldmapPinsPool = <table> {
 }
 RemoveMinimapIcon = <function> defined @Interface\AddOns\SilverDragon\lib\HereBeDragons\HereBeDragons-Pins-2.0.lua:604
 IsMinimapIconOnEdge = <function> defined @Interface\AddOns\SilverDragon\lib\HereBeDragons\HereBeDragons-Pins-2.0.lua:593
 Minimap = Minimap {
 }
 RemoveAllWorldMapIcons = <function> defined @Interface\AddOns\SilverDragon\lib\HereBeDragons\HereBeDragons-Pins-2.0.lua:748
 worldmapPins = <table> {
 }
 RemoveAllMinimapIcons = <function> defined @Interface\AddOns\Sil
commented

I just updated to v90200.10. I'm still getting this error. I retested by loading SD only. I created a new profile, made some changes, switched back to my old profile, and when I did, this error popped up.

commented

This error (and #157) seems fully consistent with the defaults not being applied to the config table being used here. I noticed that there's still a cached reference to the minimap config table in this file, so if the profile-switch does some cleanup and removes the defaults metatable from old DB tables, that'd probably do it.

commented

Reopen this if you see it again.