O Item Level (OiLvL)

Addons
6,025,788 Downloads Last Updated: Feb 8, 2021 Game Version: 9.0.2

lua errors for nil values (still not fixed in v6.1.14, v6.1.15)

#44 By  Adrian_G2

Created Aug 15, 2016 Updated Aug 16, 2016

Open
Assigned to  olzenkhaw0192
New
Defect

What steps will reproduce the problem?
1. log on a bank alt that only wears a shirt and some cosmetic doodads
2. get lua errors (very often.. pretty much can reproduce them 80..90% of the time)

What is the expected output? What do you see instead?
https://wow.curseforge.com/addons/o-item-level/tickets/43-random-lua-error-attempt-to-compare-number-with-nil/
doesn't quite look fixed

What version of the product are you using?
  Oilvl, v6.1.14

Do you have an error log of what happened? - got 2 error logs here.. one made with BugSack and one with Swatter.. i think i can reproduce them quite frequenlty, 80..90% of the time

2x Oilvl\Oilvl-v6.1.14 Legion release.lua:4931: attempt to compare number with nil
Oilvl\Oilvl-v6.1.14 Legion release.lua:4931: in function `OTgathertil'
Oilvl\Oilvl-v6.1.14 Legion release.lua:5036: in function `oilvlSaveItemLevel'
Oilvl\Oilvl-v6.1.14 Legion release.lua:5125: in function `?'
Oilvl\Oilvl-v6.1.14 Legion release.lua:5456: in function <Oilvl\Oilvl.lua:5455>

Locals:
guid = nil
unitid = "player"
totalIlvl = 0
avgIlvl = nil
iter_min = 0
iter_max = nil
itemLevel = nil
equipType = nil
twoHander = nil
mia = 16
count = 0
missenchant = ""
missgem = ""
missHenchant = ""
missHgem = ""
_ = nil
_ = nil
_ = nil
_ = nil
_ = nil
armorname = nil
_ = nil
cgear = <table> {
}
oname = "_MY_NAME_HERE_"
orealm = "_My_realm_here_"
oname2 = "_MY_NAME_HERE_"
oname3 = "_MY_NAME_HERE_"
orealm3 = "_My_realm_here_"
altsw = false
cachesw = false
(for index) = 1
(for limit) = 100
(for step) = 1
i = 1
(*temporary) = "_My_realm_here_"
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = ""
(*temporary) = ""
(*temporary) = ""
(*temporary) = ""
(*temporary) = "100"
(*temporary) = "256"
(*temporary) = ""
(*temporary) = ""
(*temporary) = ""
(*temporary) = "::"
(*temporary) = "::"
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to compare number with nil"
OTCurrent3 = 1
oilvlframedata = <table> {
mg = <table> {
}
role = <table> {
}
name = <table> {
}
guid = <table> {
}
gear = <table> {
}
spec = <table> {
}
me = <table> {
}
ilvl = <table> {
}
}
SHIRT = 4
ItemUpgradeInfo = <table> {
IsBoe = <function> defined @Oilvl\libs\LibItemUpgradeInfo-1.0\Core.lua:295
GetUpgradeID = <function> defined @Oilvl\libs\LibItemUpgradeInfo-1.0\Core.lua:137
GetItemLevelUpgrade = <function> defined @Oilvl\libs\LibItemUpgradeInfo-1.0\Core.lua:188
GetUpgradedItemLevel = <function> defined @Oilvl\libs\LibItemUpgradeInfo-1.0\Core.lua:257
_CheckUpgradeTable = <function> defined @Oilvl\libs\LibItemUpgradeInfo-1.0\Core.lua:479
GetCacheStats = <function> defined @Oilvl\libs\LibItemUpgradeInfo-1.0\Core.lua:406
GetItemUpgradeInfo = <function> defined @Oilvl\libs\LibItemUpgradeInfo-1.0\Core.lua:210
GetItemID = <function> defined @Oilvl\libs\LibItemUpgradeInfo-1.0\Core.lua:382
GetCurrentUpgrade = <function> defined @Oilvl\libs\LibItemUpgradeInfo-1.0\Core.lua:159
GetMaximumUpgrade = <function> defined @Oilvl\libs\LibItemUpgradeInfo-1.0\Core.lua:173
itemcache = <table> {
}
IsBoa = <function> defined @Oilvl\libs\LibItemUpgradeInfo-1.0\Core.lua:309
GetHeirloomTrueLevel = <function> defined @Oilvl\libs\LibItemUpgradeInfo-1.0\Core.lua:235
IsBop = <function> defined @Oilvl\libs\LibItemUpgradeInfo-1.0\Core.lua:281
IsHeirloom = <function> defined @Oilvl\libs\LibItemUpgradeInfo-1.0\Core.lua:334
GetCachingGetItemInfo = <function> defined @Oilvl\libs\LibItemUpgradeInfo-1.0\Core.lua:403
}
WEP = 16
oenchantItem = <table> {
0 = <table> {
}
2 = <table> {
}
4 = <table> {
}
8 = <table> {
}
16 = <table> {
}
17 = <table> {
}
9 = <table> {
}
5 = <table> {
}
10 = <table> {
}
11 = <table> {
}
3 = <table> {
}
6 = <table> {
}
12 = <table> {
}
13 = <table> {
}
7 = <table> {
}
14 = <table> {
}
15 = <table> {
}
1 = <table> {
}
}
enchantID = <table> {
1 = 5275
2 = 5276
3 = 5383
4 = 5310
5 = 5311
6 = 5312
7 = 5313
8 = 5314
9 = 5317
10 = 5318
11 = 5319
12 = 5320
13 = 5321
14 = 5324
15 = 5325
16 = 5326
17 = 5327
18 = 5328
19 = 5330
20 = 5334
21 = 5335
22 = 5336
23 = 5337
24 = 5384
25 = 3366
26 = 3367
27 = 3368
28 = 3370
29 = 3847
30 = 3595
}
pvpsw = false
round = <function> defined @Oilvl\Oilvl.lua:272
cfg = <table> {
oilvlframeY = 197.25012207031
oilvldp = 1
oilvlme = false
oilvlbf = false
oilvlhm = false
oilvlcache = <table> {
}
oilvlaltclickroll = true
oilvlge = true
frame = OiLvLConfig {
}
oilvlms = false
oilvlalpha = 1
oilvlme2 = false
oilvlscale = 0.8
oilvlhfc = true
oilvlcharilvl = true
oilvlminimapicon = false
oilvlgears = <table> {
}
oilvlframeX = -20.500005722046
oilvlun = true
oilvlrpdetails = true
oilvlframeP = "BOTTOM"
oilvlcachesw = true
}

Date: 2016-08-15 21:12:41
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\Oilvl\Oilvl.lua line 4931:
   attempt to compare number with nil
Debug:
   [C]: ?
   Oilvl\Oilvl.lua:4931: OTgathertil()
   Oilvl\Oilvl.lua:5036: oilvlSaveItemLevel()
   Oilvl\Oilvl.lua:5125: ?()
   Oilvl\Oilvl.lua:5456:
      Oilvl\Oilvl.lua:5455
Locals:

AddOns:
  Swatter, v7.0.5661 (TasmanianThylacine)
  AckisRecipeList, v7.0.3.6
  AddonUsage, v2.0.9
  AdvancedInterfaceOptions, v1.0.5
  Altoholic, vr171
  Armory, vr767
  ArmoryGuildBank, vr767
  AskMrRobot, v39
  AucAdvanced, v7.0.5661 (TasmanianThylacine)
  auccheapsearcher, vv20160811r2
  AucFilterOutlier, v7.0.5661.5459(/embedded)
  AucMatchUndercut, v7.0.5661.5585(/embedded)
  AucScanData, v7.0.5661 (TasmanianThylacine)
  AucStatSales, v7.0.5661.5598(/embedded)
  AucStatTheUndermineJournal, v3.3.0
  AucStatWOWEcon, v7.0.5661.5613(/embedded)
  AucUtilAHWindowControl, v7.0.5661.5575(/embedded)
  AucUtilAppraiser, v7.0.5661.5653(/embedded)
  AucUtilAskPrice, v7.0.5661.5599(/embedded)
  AucUtilAutoMagic, v7.0.5661.5587(/embedded)
  AucUtilCompactUI, v7.0.5661.5629(/embedded)
  AucUtilEasyBuyout, v7.0.5661.5576(/embedded)
  AucUtilFixAH, v7.0.5661 (TasmanianThylacine)
  AucUtilItemSuggest, v7.0.5661.5651(/embedded)
  AucUtilPriceLevel, v7.0.5661.5633(/embedded)
  AucUtilScanButton, v7.0.5661.5631(/embedded)
  AucUtilScanFinish, v7.0.5661.5588(/embedded)
  AucUtilScanProgress, v7.0.5661.4979(/embedded)
  AucUtilScanStart, v7.0.5661.5347(/embedded)
  AucUtilSearchUI, v7.0.5661.5657(/embedded)
  AucUtilSimpleAuction, v7.0.5661.5654(/embedded)
  AucUtilVendMarkup, v7.0.5661.4828(/embedded)
  Babylonian, v5.1.DEV.332(/embedded)
  BadPet, vv1.0.5
  BeanCounter, v7.0.5661 (TasmanianThylacine)
  CaerdonWardrobe, vv0.31.0
  CanIMogIt, v7.0.3.20
  Configator, v5.1.DEV.406(/embedded)
  DataStore, vr59
  DataStoreAchievements, vr42
  DataStoreAgenda, vr23
  DataStoreCharacters, vr36
  DataStoreContainers, vr53
  DataStoreCrafts, vr73
  DataStoreCurrencies, vr31
  DataStoreGarrisons, vr16
  DataStoreInventory, vr46
  DataStoreMails, vr46
  DataStorePets, vr39
  DataStoreQuests, vr36
  DataStoreReputations, vr37
  DataStoreSpells, vr27
  DataStoreStats, vr26
  DataStoreTalents, vr54
  DBMCore, v
  DBMDefaultSkin, v
  DBMLDB, v
  DBMSpellTimers, v
  DBMStatusBarTimers, v
  DBMVPVEM, v6.2.4
  DBMWorldEvents, v
  DebugLib, v5.1.DEV.337(/embedded)
  Enchantrix, v7.0.5661 (TasmanianThylacine)
  ExRT, v3740
  GTFO, v4.38.5
  HandyNotes, vv1.4.8
  HandyNotesLegionTreasures, v1
  HandyNotesTreasureHunter, v1
  HereBeDragons10, v1.11-release
  Informant, v7.0.5661 (TasmanianThylacine)
  IskarAssist, v
  LibExtraTip, v5.12.DEV.409(/embedded)
  LibPeriodicTable31, vv3.3.0.523
  LibSharedMedia30, v3.0-95
  MasterPlanA, vA
  Oilvl, v6.1.14
  Pawn, v2.0.7
  Postal, vv3.5.8
  SavedInstances, v7.0.2
  Scrap, v13.3
  ScrapOptions, v
  ScrapSpotlight, v13.3
  SexyMap, v2.4.29
  SilverDragon, vv3.2.5
  Skada, vr647
  SlideBar, v7.0.5661 (TasmanianThylacine)
  Stubby, v7.0.5661 (TasmanianThylacine)
  TheUndermineJournal, v4.4.20160813
  TipHelper, v5.12.DEV.405(/embedded)
  TomTom, vv70000-1.1.0
  TradeSkillMaster, vv3.4.29
  TradeSkillMasterAccounting, vv3.0.16
  TradeSkillMasterAuctionDB, vv3.1.12
  TradeSkillMasterAuctioning, vv3.0.12
  TradeSkillMasterCrafting, vv3.1.11
  TradeSkillMasterShopping, vv3.3.7
  WeakAuras, v2.2.1.1
  BlizRuntimeLib_enUS v7.0.3.70000 <none>
  (ck=c0f)

Please provide any additional information below.

Adrian_G2   added the tags
New
Defect
  Aug 15, 2016
Adrian_G2   removed a tag
Fixed
  Aug 15, 2016
Adrian_G2   added a tag
Bad Fix
  Aug 15, 2016
olzenkhaw0192   removed a tag
Bad Fix
  Aug 16, 2016
olzenkhaw0192   added a tag
Fixed
  Aug 16, 2016

To post a comment, please login or register a new account.