WeakAuras

WeakAuras

200M Downloads

"attempt to perform arithmetic on local 'currentValue' (a nil value)" in xpcall function of GenericTrigger.lua

readi2play opened this issue · 8 comments

commented

Description

Background
I created a DF reputation and renown overview aura group containing three combined auras for each faction in DF (so a total of 33 auras for 11 factions, 12 auras throwing the error mentioned below)

I use a combination of a default Trigger1 and an additional simple TSU Trigger2 based on some CustomOptions.

Everything works fine, except for the four main factions IF (and only IF) the character logged in is already on maximum Renown and aiming for paragon chest.

What I've expected
Everything works quite fine

What happened instead
Each aura referenced to one of the four main factions throws an error everytime the aura is loaded while the faction in question is already on maximum renown.

WeakAuras Version

5.4.4

World of Warcraft Flavor

Retail (Default)

Tested with only WeakAuras

  • Yes
  • No

Lua Error

3x Lua error in aura 'expedition_fill': Trigger 1
WeakAuras Version: 5.4.4
Aura Version: 2.6.1
[string ""]:43: attempt to perform arithmetic on local 'currentValue' (a nil value)
[string ""]:43: in function <[string ""]:2>
[string "=[C]"]: in function `xpcall'
[string "@WeakAuras/GenericTrigger.lua"]:647: in function <WeakAuras/GenericTrigger.lua:563>
[string "@WeakAuras/GenericTrigger.lua"]:948: in function `ScanWithFakeEvent'
[string "@WeakAuras/GenericTrigger.lua"]:1291: in function `LoadDisplays'
[string "@WeakAuras/WeakAuras.lua"]:1890: in function `LoadDisplays'
[string "@WeakAuras/WeakAuras.lua"]:1674: in function <WeakAuras/WeakAuras.lua:1524>
[string "@WeakAuras/WeakAuras.lua"]:1717: in function `ScanForLoads'
[string "@WeakAuras/WeakAuras.lua"]:1793: in function <WeakAuras/WeakAuras.lua:1789>

Reproduction Steps

  1. import the aura
  2. get maximum renown on at least one of the four main factions
  3. get the aura loaded

Last Good Version

Screenshots

Trigger 1 which dynamic info is used
image

Trigger 2 which only defines visibility based on some custom options
image

Trigger 2 Custom Code (nothin very special here, just some display options)
image

Trigger Combination
image
image

Export String

!WA:2!TNvZUTrYryZiRyBg7yl61)7KmMXRGCSeTxTE1MyKGfKuu20H6NDOwlly7q2Zmn50RgoD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6c1dsLAVJFhqs7HiLvR(EK3ME)Ypt)VB6zYz6GYr3x9w)wfG4yWKYTHWb7N2paKB)jo6UFtYJmmTLnNYQ1wDMH79rD40OTAsvObf2e6ClWjVW4ZdroWcpYy1v5XBfFw1dxhf2ex9IYXFf8P1GnTTCXKMUbFZUdfvK6r5p6HF2)8CNZ4yh7yVDJuraz7iGuWJIC2uVxJ6DFH9AGw(qbFURfuCacTx0SvOxajT6XMR9cQpg2ZZ102djexu(1Pla7dARAinMeoKII3dKTVon7CG(5JpvcCUeuB3DdIooXACetLPywSs(fxb24w9U2wKwm46o7OZk0Pp38m82XNIXkAz6Vk)W5KNQU8ktkpBkzMjK3iQr0JDn3cJ03TRR7o(KDzIp729pmkn1bmlF8HXa5omkDZdywUZHXaF6HrPzpmkDR9hkVw0IsdC7)C91FZ1vIV7orzNQAx72FdO4L6ok2DvGyDLUwazYrVSxOsPLMF3OdMUGk1x)VIOArZsLwQNUwauLdsdgRRWd5hOgJv5LQwE(sSjgs0JpBkBUYQASq(i(z5DCG0KNnOKZZwHUfMRBUigo(8ZIKQ(9hB1IW5uU7UngCC1OuNXGF6kWEn0vAKFMLa3cshmNn3C5(OoQxKu5FUzjo7o8)brnvjJzdjo926l(8YfQm3unkN3e5XCrJjpZFJnXWzPpUVCizMHgygxmcozVYmVuvfXSF9bO4IQua2ThvDsX4dOwSYYf)LRvUAPDuBnOTGiDpIpmnrBVmzpOPnUK(eI1zxM00hqq8)bmT0sk3xTEomKgLTnEgH5NK7E5UxMn)hp5F9d
commented

Please create aminimal example that doesn't use custom code, that reproduces the problem.

commented

I already did, the trigger causing the error is the default Faction reputation trigger (Trigger 1), not the TSU trigger (Trigger 2)

commented

Try deleting all custom code, so that the aura is minimal.

commented

I created a second aura with not a single line of custom code:

!WA:2!DrvWUTTrq0k4cua62IebdJ0EYi11T9qmstv8TEGuIcrnYYkuSY5GbKwQDO4wtT7IDx6iLJQff9So3t6sV0tc9liOFaecf9diFc6lOZskBvyDGAxoVzN38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4
[string ""]:43: attempt to perform arithmetic on local 'currentValue' (a nil value)
[string ""]:43: in function <[string ""]:2>
[string "=[C]"]: in function `xpcall'
[string "@WeakAuras/GenericTrigger.lua"]:647: in function <WeakAuras/GenericTrigger.lua:563>
[string "@WeakAuras/GenericTrigger.lua"]:948: in function `ScanWithFakeEvent'
[string "@WeakAuras/GenericTrigger.lua"]:1291: in function `LoadDisplays'
[string "@WeakAuras/WeakAuras.lua"]:1890: in function `LoadDisplays'
[string "@WeakAuras/WeakAuras.lua"]:1674: in function <WeakAuras/WeakAuras.lua:1524>
[string "@WeakAuras/WeakAuras.lua"]:1717: in function `ScanForLoads'
[string "@WeakAuras/WeakAuras.lua"]:1793: in function <WeakAuras/WeakAuras.lua:1789>
commented

I cannot reproduce that with the minimal_faction_test aura on a character with max reputation in dragon flight expedition.

Can you add the output of /dump C_Reputation.GetFactionParagonInfo(2507) ?
The error message indicates that these values are somehow wrong for you.

commented

Sure, I have this issue on several characters in the meanwhile.

[12:07:36] Dump: value=C_Reputation.GetFactionParagonInfo(2507)
[12:07:36] [1]=25945,
[12:07:36] [2]=7500,
[12:07:36] [3]=66156,
[12:07:36] [4]=false,
[12:07:36] [5]=false

this is from my main character "Tiripserutan-Die Aldor" do you need additional info from another character?

commented

If that's the return values, there should not be an error.

I have found Stanzilla/WoWUIBugs#206, which indicates that the api might return incorrect values while in a loading screen. But that isn't sufficient for me to reproduce the problem.

We need to have clear instructions on how to reproduce the problem.

What exactly were you doing when "Sure, I have this issue on several characters in the meanwhile.".
If it only happends occasionally, then just importing the aura is obviously not enough to reproduce, and you should figure out the exact steps to reproduce.

commented

"the api might return incorrect values while in a loading screen" this might be a hint at least

A reliable way to reproduce the error is to

  1. import the aura while Expedition is on maximum renown
  2. enter a dungeon (doesn't matter which) > this will unload the aura because of the loading conditions
  3. leave the dungeon > this will cause the aura to be loaded AND to throw the error

Other load screens like using a portal, hearthstone or something like that doesn't seem to cuase the error (at least not reliable for me) while entering and leaving a dungeon does so and highly reliable.