AtlasLootClassic

AtlasLootClassic

37M Downloads

Lua error when viewing item tooltip

bloodtalonx opened this issue ยท 4 comments

commented

AtlasLoot version
3.1.0

Lua error

Message: ...erface/AddOns/AtlasLootClassic/Addons/Favourites.lua:835: attempt to index local 'listData' (a nil value)
Time: Sun Jan 22 12:22:21 2023
Count: 7
Stack: ...erface/AddOns/AtlasLootClassic/Addons/Favourites.lua:835: attempt to index local 'listData' (a nil value)
[string "@Interface/AddOns/RCLootCouncil_Classic/RCLootCouncil/Core/ErrorHandler.lua"]:146: in function <...tCouncil_Classic/RCLootCouncil/Core/ErrorHandler.lua:144>
[string "=[C]"]: ?
[string "@Interface/AddOns/AtlasLootClassic/Addons/Favourites.lua"]:835: in function `GetFavouriteItemText'
[string "@Interface/AddOns/AtlasLootClassic/Addons/Favourites.lua"]:349: in function <...erface/AddOns/AtlasLootClassic/Addons/Favourites.lua:327>
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: in function `SetBagItem'
[string "@Interface/AddOns/ArkInventory/Core/ArkInventoryTooltip.lua"]:308: in function <...ace/AddOns/ArkInventory/Core/ArkInventoryTooltip.lua:300>
[string "@Interface/AddOns/ArkInventory/Core/ArkInventoryTooltip.lua"]:457: in function `TooltipSet'
[string "@Interface/AddOns/ArkInventory/Core/ArkInventory.lua"]:8857: in function `Frame_Item_OnEnter'
[string "*ArkInventory.xml:484_OnEnter"]:1: in function <[string "*ArkInventory.xml:484_OnEnter"]:1>

Locals: private = <table> {
 ThrowError = <function> defined @Interface/AddOns/RCLootCouncil_Classic/RCLootCouncil/Core/ErrorHandler.lua:46
 DoesErrorExist = <function> defined @Interface/AddOns/RCLootCouncil_Classic/RCLootCouncil/Core/ErrorHandler.lua:87
 ClearOldErrors = <function> defined @Interface/AddOns/RCLootCouncil_Classic/RCLootCouncil/Core/ErrorHandler.lua:107
 SanitizeLine = <function> defined @Interface/AddOns/RCLootCouncil_Classic/RCLootCouncil/Core/ErrorHandler.lua:83
 MAX_STACK_DEPTH = 10
 log = <table> {
 }
 ErrorHandler = <function> defined @Interface/AddOns/RCLootCouncil_Classic/RCLootCouncil/Core/ErrorHandler.lua:116
 IncrementErrorCount = <function> defined @Interface/AddOns/RCLootCouncil_Classic/RCLootCouncil/Core/ErrorHandler.lua:77
 NewError = <function> defined @Interface/AddOns/RCLootCouncil_Classic/RCLootCouncil/Core/ErrorHandler.lua:50
 IsRCLootCouncilError = <function> defined @Interface/AddOns/RCLootCouncil_Classic/RCLootCouncil/Core/ErrorHandler.lua:94
}
orig_errorhandler = <function> defined @Interface/SharedXML/SharedBasicControls.lua:360

Describe the bug
When I move my cursor over certain items in my bags or equipped or even try to open a tooltip from chat, I get the Lua error. After closing the error, it will recur if I open the tooltip. The tooltip does display, but does not include any Favorites list mentions like it did prior to the latest patch.

To Reproduce
(unsure if this will reproduce, but should reproduce what I believe is the issue)

  1. Right-click on AtlasLoot icon to open AtlasLoot Favorites list.
  2. Click on Settings button.
  3. Create a new list.
  4. (Unknown?) Set it as a global list
  5. Add item from your bag to the favorite list (example itemid 40822)
  6. Hover over the item icon to display the item tooltip.
  7. Lua error appears.

Expected behavior
The tooltip for the item should display and show the list(s) that the item is included in, if any.

Screenshots
image
image
image

Additional context

commented

what happens if you disable all of your rclootcouncil addons and arkinventory addons? your error shows those addons are involved

commented

When I disable RCLootcouncil and ArkInventory, I still receive the tooltip error. Here is the modified error message. Looks like there are actually 3 error messages that appeared:

Error #1:
Message: ...erface/AddOns/AtlasLootClassic/Addons/Favourites.lua:835: attempt to index local 'listData' (a nil value)
Time: Sun Jan 22 23:48:47 2023
Count: 2
Stack: ...erface/AddOns/AtlasLootClassic/Addons/Favourites.lua:835: attempt to index local 'listData' (a nil value)
[string "=[C]"]: ?
[string "@Interface/AddOns/AtlasLootClassic/Addons/Favourites.lua"]:835: in function GetFavouriteItemText' [string "@Interface/AddOns/AtlasLootClassic/Addons/Favourites.lua"]:355: in function <...erface/AddOns/AtlasLootClassic/Addons/Favourites.lua:327> [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: in function SetBagItem'
[string "@Interface/FrameXML/ContainerFrame_Shared.lua"]:1362: in function `ContainerFrameItemButton_OnEnter'
[string "*ContainerFrame.xml:184_OnEnter"]:1: in function <[string "*ContainerFrame.xml:184_OnEnter"]:1>

Locals:

Error #2:
Message: ...erface/AddOns/AtlasLootClassic/Addons/Favourites.lua:835: attempt to index local 'listData' (a nil value)
Time: Sun Jan 22 23:48:45 2023
Count: 1
Stack: ...erface/AddOns/AtlasLootClassic/Addons/Favourites.lua:835: attempt to index local 'listData' (a nil value)
[string "=[C]"]: ?
[string "@Interface/AddOns/AtlasLootClassic/Addons/Favourites.lua"]:835: in function GetFavouriteItemText' [string "@Interface/AddOns/AtlasLootClassic/Addons/Favourites.lua"]:349: in function <...erface/AddOns/AtlasLootClassic/Addons/Favourites.lua:327> [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: in function SetBagItem'
[string "@Interface/FrameXML/ContainerFrame_Shared.lua"]:1362: in function `ContainerFrameItemButton_OnEnter'
[string "*ContainerFrame.xml:184_OnEnter"]:1: in function <[string "*ContainerFrame.xml:184_OnEnter"]:1>

Locals: 

Error #3:
Message: ...erface/AddOns/AtlasLootClassic/Addons/Favourites.lua:835: attempt to index local 'listData' (a nil value)
Time: Sun Jan 22 23:48:47 2023
Count: 12
Stack: ...erface/AddOns/AtlasLootClassic/Addons/Favourites.lua:835: attempt to index local 'listData' (a nil value)
[string "=[C]"]: ?
[string "@Interface/AddOns/AtlasLootClassic/Addons/Favourites.lua"]:835: in function GetFavouriteItemText' [string "@Interface/AddOns/AtlasLootClassic/Addons/Favourites.lua"]:349: in function <...erface/AddOns/AtlasLootClassic/Addons/Favourites.lua:327> [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: in function SetBagItem'
[string "@Interface/FrameXML/ContainerFrame_Shared.lua"]:1362: in function `UpdateTooltip'
[string "@Interface/FrameXML/GameTooltip.lua"]:431: in function <Interface/FrameXML/GameTooltip.lua:410>
[string "=[C]"]: ?

Locals: 

commented

alright, will have to leave this for the author or authorized addon writer to fix. was hoping this was an error that came from the changes that came with the patch (such as container related API that got moved to C_Container) but doesn't seem to be the case on cursory glance. i'm just a regular guy

commented

Looks like another duplicate of the tooltip issue in #311 which should be fixed by #312