Point Blank Sniper

Point Blank Sniper

99.1k Downloads

Lua error

zeenk opened this issue ยท 4 comments

commented

Got this lua error when I clicked on view all for this dagger, it only had bidding available.
Didn't get any errors second time I clicked on the view all button tho so not sure what the issue was.

2022-11-14_05-56-54

2x ...izzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:720: attempt to index local 'itemKeyInfo' (a nil value)
[string "@Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua"]:720: in function `SelectBrowseResult'
[string "@Interface/AddOns/PointBlankSniper/Source/Buy/Main.lua"]:130: in function `ViewAll'
[string "*Main.xml:55_OnClick"]:1: in function <[string "*Main.xml:55_OnClick"]:1>

Locals:
self = AuctionHouseFrame {
 0 = <userdata>
 CommoditiesBuyFrame = Frame {
 }
 GetBidStatus = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:932
 SendBrowseQuery = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:817
 ItemSellFrame = Frame {
 }
 UpdateMoneyFrame = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:511
 AuctionsTab = AuctionHouseFrameAuctionsTab {
 }
 GetTitleText = <function> defined @Interface/SharedXML/PortraitFrame.lua:28
 SetDisplayMode = <function> defined =[C]:-1
 SelectBrowseResult = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:717
 SetSortOrder = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:735
 UpdateTitle = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:670
 OnShow = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:416
 ClearMaxWidthCaches = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:505
 AuctionatorConfigFrame = AuctionatorConfigFrame {
 }
 AuctionatorSellingFrame = AuctionatorSellingFrame {
 }
 TitleContainer = Frame {
 }
 AuctionatorCancellingFrame = AuctionatorCancellingFrame {
 }
 GetMaxBidWidth = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:361
 GetBrowseResultsFrame = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:687
 GetMaxPriceWidth = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:922
 SetBrowseSortOrder = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:757
 isDisplayingFavorites = false
 SetPostItem = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:638
 SetTitle = <function> defined @Interface/SharedXML/PortraitFrame.lua:36
 selectedTab = 1
 HasRegistrantsForEvent = <function> defined @Interface/SharedXML/CallbackRegistry.lua:59
 AuctionatorShoppingFrame = AuctionatorShoppingFrame {
 }
 GetItemSellList = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:691
 tabsForDisplayMode = <table> {
 }
 numTabs = 3
 GetMaxUnitPriceWidth = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:361
 CommoditiesSellFrame = Frame {
 }
 GetCallbacksByEvent = <function> defined @Interface/SharedXML/CallbackRegistry.lua:54
 AuctionsFrame = AuctionHouseFrameAuctionsFrame {
 }
 UnregisterEvents = <function> defined @Interface/SharedXML/CallbackRegistry.lua:165
 GetSortOrderState = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:731
 SetPortraitAtlasRaw = <function> defined @Interface/SharedXML/PortraitFrame.lua:83
 GetCategorySearchContext = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:711
 WoWTokenResults = Frame {
 }
 GetSortsForContext = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:767
 GetMaxBuyoutPriceWidthForAllAuctions = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:353
 GetMaxBidPriceWidthForAllAuctions = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:353
 SetTitleFormatted = <function> defined @Interface/SharedXML/PortraitFrame.lua:40
 NineSlice = Frame {
 }
 OnLoad = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:384
 ItemBuyFrame = Frame {
 }
 GetBrowseSortOrderState = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/Blizzard_AuctionHouseFrame.lua:762
 Event = <table> {
 }
 SetPortraitTextureSizeAndOffset = <function> defined @Interface/SharedXML/PortraitFrame.lua:95
 GetMaxBidPriceWidthForAllBids = <function> defined @Interface/AddOns/Blizzard_AuctionHouseUI/B
commented

Got a new lua error today

3x PointBlankSniper/Source/Buy/Main.lua:166: attempt to call field 'SendSearchQuery' (a nil value)
[string "@PointBlankSniper/Source/Buy/Main.lua"]:166: in function `callback'
[string "@Auctionator/Source_Mainline/AH/Mixins/ItemKeyLoader.lua"]:21: in function `Get'
[string "@Auctionator/Source_Mainline/AH/Wrappers.lua"]:82: in function `GetItemKeyInfo'
[string "@PointBlankSniper/Source/Buy/Main.lua"]:152: in function `ReceiveEvent'
[string "@Auctionator/Source/Utilities/EventBusMixin.lua"]:77: in function `Fire'
[string "@PointBlankSniper/Source/Tab/ResultsRow.lua"]:12: in function `OnClick'
[string "@Auctionator/Source/Components/ResultsListing/Mixins/AuctionatorCell.lua"]:22: in function <...Components/ResultsListing/Mixins/AuctionatorCell.lua:20>

Locals:
itemKeyInfo = <table> {
 itemName = "Slippers of the Encroaching Tide"
 isCommodity = false
 isEquipment = true
 iconFileID = 2280670
 isPet = false
 appearanceLink = "|cffff80ff|Htransmogappearance:101759|h[]|h|r"
 itemID = 165509
 battlePetSpeciesID = 0
 quality = 4
}
sortingOrder = <table> {
 reverseSort = false
 sortOrder = 4
}
(*temporary) = nil
(*temporary) = <table> {
 itemLevel = 78
 itemSuffix = 0
 itemID = 165509
 battlePetSpeciesID = 0
}
(*temporary) = <table> {
 1 = <table> {
 }
}
(*temporary) = false
(*temporary) = "attempt to call field 'SendSearchQuery' (a nil value)"
self = Frame {
 0 = <userdata>
 Price = FontString {
 }
 layoutType = "SimplePanelTemplate"
 buyCommodity = false
 ViewAll = <function> defined @PointBlankSniper/Source/Buy/Main.lua:129
 ReceiveEvent = <function> defined @PointBlankSniper/Source/Buy/Main.lua:136
 BuyButton = Button {
 }
 OnLoad = <function> defined @PointBlankSniper/Source/Buy/Main.lua:9
 OnHide = <function> defined @PointBlankSniper/Source/Buy/Main.lua:16
 expectedItemKey = <table> {
 }
 BuyNow = <function> defined @PointBlankSniper/Source/Buy/Main.lua:117
 gotResult = false
 NormalSearch = Button {
 }
 info = <table> {
 }
 Reset = <function> defined @PointBlankSniper/Source/Buy/Main.lua:26
 expectedPrice = 9997200
 OnEvent = <function> defined @PointBlankSniper/Source/Buy/Main.lua:36
 Icon = Frame {
 }
 UpdateBuyState = <function> defined @PointBlankSniper/Source/Buy/Main.lua:94
}
details = <table> {
 itemKey = <table> {
 }
 price = 9997200
}
PURCHASE_ITEM_EVENTS = <table> {
 1 = "ITEM_SEARCH_RESULTS_UPDATED"
 2 = "COMMODITY_SEARCH_RESULTS_UPDATED"
 3 = "COMMODITY_PRICE_UPDATED"
}
commented

Go back to a release version of Auctionator for now. I was working on an improvement to searching that broke what PBS was using, it'll be fixed in a later update

commented

Fixed in the latest alpha
PointBlankSniper-5.18-1-g4c69a4a.zip

commented

Looks like some item data that the Blizzard AH expected to be cached wasn't cached. This is tied up with the same issue that makes the buy button occasionally not load - and another occasional scanning issue in Auctionator. Fixing the Auctionator issue should result in the pbs issue being fixed alongside it.