Cell

Cell

1M Downloads

[r241] Attempt to compare number with nil

Moonsera opened this issue ยท 3 comments

commented

After updating to the latest version of Cell-r241-release:

  • Click-castings appear only after going to options and selecting something from one of drop-down menus;
  • Names are not displayed on frames;
  • Buffs are not displayed on frames.

The LUA errors are spamming in an astonishing rate:

Time: Tue Oct  8 21:58:50 2024
Count: 2010
Stack: Interface/AddOns/Cell/Indicators/Base.lua:278: attempt to compare number with nil
[string "@Interface/AddOns/Cell/Indicators/Base.lua"]:278: in function <Interface/AddOns/Cell/Indicators/Base.lua:245>

Locals: frame = CellAppearancePreviewIcon3 {
 BottomLeftCorner = Texture {
 }
 showDuration = true
 duration = FontString {
 }
 OnBackdropLoaded = <function> defined @Interface/AddOns/Blizzard_SharedXML/Backdrop.lua:152
 showAnimation = true
 GetBackdropColor = <function> defined @Interface/AddOns/Blizzard_SharedXML/Backdrop.lua:390
 TopLeftCorner = Texture {
 }
 RightEdge = Texture {
 }
 ag = AnimationGroup {
 }
 ApplyBackdrop = <function> defined @Interface/AddOns/Blizzard_SharedXML/Backdrop.lua:294
 SetBackdrop = <function> defined @Interface/AddOns/Blizzard_SharedXML/Backdrop.lua:329
 ClearBackdrop = <function> defined @Interface/AddOns/Blizzard_SharedXML/Backdrop.lua:282
 GetBackdropBorderColor = <function> defined @Interface/AddOns/Blizzard_SharedXML/Backdrop.lua:409
 GetBackdrop = <function> defined @Interface/AddOns/Blizzard_SharedXML/Backdrop.lua:347
 _start = 2320182.232000
 height = 22
 stack = FontString {
 }
 SetBorderBlendMode = <function> defined @Interface/AddOns/Blizzard_SharedXML/Backdrop.lua:266
 ShowDuration = <function> defined @Interface/AddOns/Cell/Indicators/Base.lua:82
 _elapsed = 0.047000
 _remain = 10.243000
 _duration = 13
 _threshold = 13
 preview = Frame {
 }
 ShowAnimation = <function> defined @Interface/AddOns/Cell/Indicators/Base.lua:527
 icon = CellAppearancePreviewIcon3Icon {
 }
 SetupTextureCoordinates = <function> defined @Interface/AddOns/Blizzard_SharedXML/Backdrop.lua:214
 OnBackdropSizeChanged = <function> defined @Interface/AddOns/Blizzard_SharedXML/Backdrop.lua:182
 TopRightCorner = Texture {
 }
 cooldown = StatusBar {
 }
 style = "VERTICAL"
 ShowStack = <function> defined @Interface/AddOns/Cell/Indicators/Base.lua:78
 UpdatePixelPerfect = <function> defined @Interface/AddOns/Cell/Indicators/Base.lua:536
 GetEdgeSize = <function> defined @Interface/AddOns/Blizzard_SharedXML/Backdrop.lua:188
 0 = <userdata>
 SetCooldown = <function> defined @Interface/AddOns/Cell/Indicators/Base.lua:469
 TopEdge = Texture {
 }
 SetFont = <function> defined @Interface/AddOns/Cell/Indicators/Base.lua:73
 backdropInfo = <table> {
 }
 width = 22
 Center = Texture {
 }
 HasBackdropInfo = <function> defined @Interface/AddOns/Blizzard_SharedXML/Backdrop.lua:278
 SetBackdropBorderColor = <function> defined @Interface/AddOns/Blizzard_SharedXML/Backdrop.lua:422
 BottomEdge = Texture {
 }
 SetupPieceVisuals = <function> defined @Interface/AddOns/Blizzard_SharedXML/Backdrop.lua:246
 SetBackdropColor = <function> defined @Interface/AddOns/Blizzard_SharedXML/Backdrop.lua:399
 LeftEdge = Texture {
 }
 BottomRightCorner = Texture {
 }
}
elapsed = 0.010000
(*temporary) = 10.243000
(*temporary) = nil
(*temporary) = 2320182.232000
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to compare number with nil"
Cell = <table> {
 CreateTripleSwitch = <function> defined @Interface/AddOns/Cell/Widgets/Widgets.lua:1328
 MIN_VERSION = 220
 CreateMask = <function> defined @Interface/AddOns/Cell/Widgets/Widgets.lua:1648
 WrapTextInAccentColor = <function> defined @Interface/AddOns/Cell/Widgets/Widgets.lua:169
 SetTooltips = <function> defined @Interface/AddOns/Cell/Widgets/Widgets.lua:410
 CreateColorPicker = <function> defined @Interface/AddOns/Cell/Widgets/Widgets.lua:853
 CreateBindingButton = <function> defined @Interface/AddOns/Cell/Widgets/Widgets.lua:3105
 flavor = "cata"
 funcs = <table> {
 }
 CreateStatusBarButton = <function> defined @Interface/AddOns/Cell/Widgets/Widgets.lua:1577
 snippetVars = <table> {
 }
 SetEnabled = <function> defined @Interface/AddOns/Cell/Widgets/Widgets.lua:176
 MIN_CLICKCASTINGS_VERSION = 239
 CreateTipsButton = <function> defined @Interface/AddOn
commented

Actually, there's more.

Message: Interface/AddOns/Cell/Comm/Nicknames.lua:5: Cannot find a library instance of "LibBadWords".
Time: Tue Oct  8 22:03:48 2024
Count: 1
Stack: Interface/AddOns/Cell/Comm/Nicknames.lua:5: Cannot find a library instance of "LibBadWords".
[string "=[C]"]: in function `error'
[string "@Interface/AddOns/AtlasLootClassic/Libs/LibStub/LibStub.lua"]:38: in function `GetLibrary'
[string "@Interface/AddOns/Cell/Comm/Nicknames.lua"]:5: in main chunk

Locals: (*temporary) = "Cannot find a library instance of "LibBadWords"."
Message: Interface/AddOns/Cell/Indicators/Built-in.lua:1127: attempt to call method 'GetNickname' (a nil value)
Time: Tue Oct  8 22:03:55 2024
Count: 1
Stack: Interface/AddOns/Cell/Indicators/Built-in.lua:1127: attempt to call method 'GetNickname' (a nil value)
[string "@Interface/AddOns/Cell/Indicators/Built-in.lua"]:1127: in function `UpdateName'
[string "@Interface/AddOns/Cell/RaidFrames/UnitButton_Cata_Wrath.lua"]:2033: in function <...ace/AddOns/Cell/RaidFrames/UnitButton_Cata_Wrath.lua:2023>
[string "@Interface/AddOns/Cell/RaidFrames/UnitButton_Cata_Wrath.lua"]:2398: in function `func'
[string "@Interface/AddOns/Cell/Utils.lua"]:867: in function `IterateAllUnitButtons'
[string "@Interface/AddOns/Cell/RaidFrames/UnitButton_Cata_Wrath.lua"]:497: in function `onEventFunc'
[string "@Interface/AddOns/Cell/Libs/CallbackHandler.lua"]:24: in function `Fire'
[string "@Interface/AddOns/Cell/Core_Cata.lua"]:84: in function `UpdateLayout'
[string "@Interface/AddOns/Cell/Core_Cata.lua"]:115: in function `onEventFunc'
[string "@Interface/AddOns/Cell/Libs/CallbackHandler.lua"]:24: in function `Fire'
[string "@Interface/AddOns/Cell/Core_Cata.lua"]:584: in function `GROUP_ROSTER_UPDATE'
[string "@Interface/AddOns/Cell/Core_Cata.lua"]:712: in function `?'
[string "@Interface/AddOns/Cell/Core_Cata.lua"]:776: in function <Interface/AddOns/Cell/Core_Cata.lua:775>

Locals: self = CellSoloFramePlayerNameText {
 0 = <userdata>
 shadow = true
 UpdateVehicleNamePosition = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1172
 UpdateTextWidth = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1197
 UpdatePreviewColor = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1207
 vehicle = CellSoloFramePlayerNameText_Vehicle {
 }
 SetPoint = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1082
 UpdatePixelPerfect = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1234
 _SetPoint = <function> defined =[C]:-1
 SetFont = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1047
 points = <table> {
 }
 width = <table> {
 }
 showGroupNumber = false
 ShowGroupNumber = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1219
 UpdateName = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1110
 UpdateVehicleName = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1168
 vehicleEnabled = true
 configs = <table> {
 }
 name = CellSoloFramePlayerNameText_Name {
 }
 SetColor = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1215
}
name = nil
(*temporary) = nil
(*temporary) = <table> {
 IterateSharedUnitButtons = <function> defined @Interface/AddOns/Cell/Utils.lua:928
 Sort = <function> defined @Interface/AddOns/Cell/Utils.lua:614
 GetFontItems = <function> defined @Interface/AddOns/Cell/Utils.lua:1555
 RemoveElementsExceptKeys = <function> defined @Interface/AddOns/Cell/Utils.lua:592
 GetDefaultSnippet = <function> defined @Interface/AddOns/Cell/Modules/About/CodeSnippets.lua:405
 GetSortedClasses = <function> defined @Interface/AddOns/Cell/Utils.lua:94
 GetInstanceAndBossId = <function> defined @Interface/AddOns/Cell/Modules/RaidDebuffs/RaidDebuffs_Classic.lua:2057
 CheckTableRemoved = <function> defined @Interface/AddOns/Cell/Utils.lua:742
 FitWidth = <function> defined @Interface/AddOns/Cell/Utils.lua:494
 HandleUnitButton = <function> defined @Interface/AddOns/Cell/Utils.lua:981
 ShowExportFrame = <function> defined @Interface/AddOns/Cell/Modules/About/ImportExport.lua:489
 IsFriend = <function> defined @Interface/AddOns/Cell/Utils.lua:1445
 GetFont = <function> defined @Interface/AddOns/Cell/Utils.lua:1539
 ShowCodeSnippets = <function> defined @Interface/AddOns/Cell/Modules/About/CodeSnippets.lua:379
 ShowClickCastingExportFrame = <function> defined @Interface/AddOns/Cell/Modules/ClickCastings/ImportExport.lua:149
 GetDefaultRoleIconEscapeSequence = <function> defined @Interface/AddOns/Cell/Utils.lua:1
Message: Interface/AddOns/Cell/Indicators/Built-in.lua:1127: attempt to call method 'GetNickname' (a nil value)
Time: Tue Oct  8 22:03:58 2024
Count: 1
Stack: Interface/AddOns/Cell/Indicators/Built-in.lua:1127: attempt to call method 'GetNickname' (a nil value)
[string "@Interface/AddOns/Cell/Indicators/Built-in.lua"]:1127: in function `UpdateName'
[string "@Interface/AddOns/Cell/RaidFrames/UnitButton_Cata_Wrath.lua"]:2033: in function <...ace/AddOns/Cell/RaidFrames/UnitButton_Cata_Wrath.lua:2023>
[string "@Interface/AddOns/Cell/RaidFrames/UnitButton_Cata_Wrath.lua"]:2398: in function <...ace/AddOns/Cell/RaidFrames/UnitButton_Cata_Wrath.lua:2394>
[string "@Interface/AddOns/Cell/RaidFrames/UnitButton_Cata_Wrath.lua"]:2802: in function <...ace/AddOns/Cell/RaidFrames/UnitButton_Cata_Wrath.lua:2752>
[string "@Interface/AddOns/Cell/RaidFrames/UnitButton_Cata_Wrath.lua"]:2814: in function <...ace/AddOns/Cell/RaidFrames/UnitButton_Cata_Wrath.lua:2811>

Locals: self = CellSoloFramePlayerNameText {
 0 = <userdata>
 shadow = true
 UpdateVehicleNamePosition = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1172
 UpdateTextWidth = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1197
 UpdatePreviewColor = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1207
 vehicle = CellSoloFramePlayerNameText_Vehicle {
 }
 SetPoint = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1082
 UpdatePixelPerfect = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1234
 _SetPoint = <function> defined =[C]:-1
 SetFont = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1047
 points = <table> {
 }
 width = <table> {
 }
 showGroupNumber = false
 ShowGroupNumber = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1219
 UpdateName = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1110
 UpdateVehicleName = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1168
 vehicleEnabled = true
 configs = <table> {
 }
 name = CellSoloFramePlayerNameText_Name {
 }
 SetColor = <function> defined @Interface/AddOns/Cell/Indicators/Built-in.lua:1215
}
name = nil
(*temporary) = nil
(*temporary) = <table> {
 IterateSharedUnitButtons = <function> defined @Interface/AddOns/Cell/Utils.lua:928
 Sort = <function> defined @Interface/AddOns/Cell/Utils.lua:614
 GetFontItems = <function> defined @Interface/AddOns/Cell/Utils.lua:1555
 RemoveElementsExceptKeys = <function> defined @Interface/AddOns/Cell/Utils.lua:592
 GetDefaultSnippet = <function> defined @Interface/AddOns/Cell/Modules/About/CodeSnippets.lua:405
 GetSortedClasses = <function> defined @Interface/AddOns/Cell/Utils.lua:94
 GetInstanceAndBossId = <function> defined @Interface/AddOns/Cell/Modules/RaidDebuffs/RaidDebuffs_Classic.lua:2057
 CheckTableRemoved = <function> defined @Interface/AddOns/Cell/Utils.lua:742
 FitWidth = <function> defined @Interface/AddOns/Cell/Utils.lua:494
 HandleUnitButton = <function> defined @Interface/AddOns/Cell/Utils.lua:981
 ShowExportFrame = <function> defined @Interface/AddOns/Cell/Modules/About/ImportExport.lua:489
 IsFriend = <function> defined @Interface/AddOns/Cell/Utils.lua:1445
 GetFont = <function> defined @Interface/AddOns/Cell/Utils.lua:1539
 ShowCodeSnippets = <function> defined @Interface/AddOns/Cell/Modules/About/CodeSnippets.lua:379
 ShowClickCastingExportFrame = <function> defined @Interface/AddOns/Cell/Modules/ClickCastings/ImportExport.lua:149
 GetDefaultRoleIconEscapeSequence = <function> defined @Interface/AddOns/Cell/Utils.lua:1730
 MoveClickCastings = <function> defined @Interface/AddOns/Cell/Modules/ClickCastings/ClickCastings.lua:1642
 Copy = <function> defined @Interface/AddOns/Cell/Utils.lua:540
 GetRaidInfoBySubgroupIndex = <function> defined @Interface/AddOns/Cell/Utils.lua:1303
 ShowQuickAssistTab = <function> defined @Interface/AddOns/Cell/Modules/Utilities/Utilities.lua:123
 GetUnitButtonByName = <function> defined @Interf
commented

Upon opening options:

Message: .../AddOns/Cell/Modules/ClickCastings/ClickCastings.lua:1624: bad argument #1 to 'pairs' (table expected, got nil)
Time: Tue Oct  8 22:05:35 2024
Count: 1
Stack: .../AddOns/Cell/Modules/ClickCastings/ClickCastings.lua:1624: bad argument #1 to 'pairs' (table expected, got nil)
[string "=[C]"]: in function `pairs'
[string "@Interface/AddOns/Cell/Modules/ClickCastings/ClickCastings.lua"]:1624: in function <.../AddOns/Cell/Modules/ClickCastings/ClickCastings.lua:1617>
[string "@Interface/AddOns/Cell/Modules/ClickCastings/ClickCastings.lua"]:1720: in function <.../AddOns/Cell/Modules/ClickCastings/ClickCastings.lua:1710>
[string "=[C]"]: ?
[string "=[C]"]: in function `Show'
[string "@Interface/AddOns/Cell/Modules/ClickCastings/ClickCastings.lua"]:1703: in function `onEventFunc'
[string "@Interface/AddOns/Cell/Libs/CallbackHandler.lua"]:24: in function `Fire'
[string "@Interface/AddOns/Cell/Modules/OptionsFrame.lua"]:95: in function <Interface/AddOns/Cell/Modules/OptionsFrame.lua:92>
[string "@Interface/AddOns/Cell/Widgets/Widgets.lua"]:731: in function <Interface/AddOns/Cell/Widgets/Widgets.lua:729>

Locals: (*temporary) = nil
(*temporary) = "table expected, got nil"
 = <function> defined =[C]:-1
commented

Not sure if this is related, but when you are in Spec mode for click casting it breaks Cell