Can anyone understand this LUA error?

Buggrabber and Bugsack grabbed this LUA error, but it makes no mention of a mod causing it, so idk who to report it to or which mod or setting to change or disable to stop this happening or if it’s a bug with the Single-Button Assistant, since that’s what I’m doing when this happens right after I enter combat…

2146x …ceBlizzard_ActionBar/Shared/ActionButton.lua:847: bad argument #1 to ‘SetCooldown’ (Usage: self:SetCooldown(start, duration [, modRate]). Secret values are only allowed during untainted execution for this argument.)
[Blizzard_ActionBar/Shared/ActionButton.lua]:847: in function <…ceBlizzard_ActionBar/Shared/ActionButton.lua:845>
[Blizzard_ActionBar/Shared/ActionButton.lua]:865: in function ‘ActionButton_ApplyCooldown’
[Blizzard_ActionBar/Shared/ActionButton.lua]:842: in function ‘ActionButton_UpdateCooldown’
[Blizzard_ActionBar/Shared/ActionButton.lua]:1003: in function ‘OnEvent’
[Blizzard_ActionBar/Shared/ActionButton.lua]:223: in function <…ceBlizzard_ActionBar/Shared/ActionButton.lua:220>

Locals:
cooldown=Cooldown ActionButtonTemplate.xml:130
start=
duration=
enable=true
modRate=

The Cooldown is being given a secret start time by an addon probably using the ActionButtonTemplate.

You could first try searching your addons for ActionButtonTemplate and try removing any that use it.

Otherwise, you just have to do the "remove several addons at a time until the error goes away and the replace one-at-a-time until you find the addon causing the problem (starting with action bar/button addons).

My actionbars are the default Blizzard ones. I have Elvui, but I have the action bars section of the mod disabled and am using the Blizzard ones.

I have no idea how to search my addons for ActionButtonTemplate :S I only know how to search for them by the mod’s name.

The ActionButtonTemplate can be used for buttons other than just the Actionbar buttons.
Any addon that creates buttons that look like the actionbar buttons may be using the template (possibly even other ElvUI modules). Beyond that I can’t help much other than suggesting you do the “move addons to another folder until you find the one causing the error” approach.

Disabling them rather than moving them before logging in may work.

The real annoying part is that I can have no issue for an hour or more, and then suddenly it happens and once it happens once it then starts happening repeatedly. So any testing would take hours with one mod and then hours with 2 mods and then so on for 30 or 40 mods :frowning:

Does nothing in that LUA error say what bar/icon/skill this error is from? Normally mod would be called out like “tainted by elvui” or the like.

It happens when I enter combat and start using the Single-Button Assistant, but since I’m using that button for the whole time with no error up until then, it doesn’t make sense that with nothing changing, an error that didn’t exist suddenly does for no reason I can tell.

It’s like 1 + 1 = 2 for the whole time, until suddenly 1 + 1 = 50 for some odd reason.

There is really nothing to be done, apart from some variation of what Fizzlemizz suggested.

Make sure that is the only lua error you are getting. If there is another one before it, even if it doesn’t recur like the one you posted above, it could reveal the origin.

Doing the command /edebug on will disable everything except Elvui. If the error still happens, then you can post a report there.

/edebug off will take Elvui out of debug mode.

1 Like

Nothing in the the error you posted points to anything other than Blizz. code.
Blizz. code doesn’t generate secret values for itself.

Oh? I thought the whole point was that mods were trying to access stuff Blizzard didn’t want them to aka secret stuff LOL

That’s what the error is saying. An addon using the ActionButtonTemplate is trying to pass a secret value (returned from a call to a Blizz. function to get a starttime) into the buttons Cooldown widget.

A Blizz. button using the same template making the same call/return wouldn’t error.

Tbh, I wasn’t sure if to think the “Hide Single-Button Assistant Arrow” mod might be the cause since it hasn’t been updated in a month, but its LUA file makes no mention of ActionButtonTemplate. This only started happening in 12.0.5, so I think Blizzard changed something that one of these mods is using.

The template could be used in an addons XML file(s) if it uses them to create frames rather than creating them in lua.

If an action from the “Hide Single-Button Assistant Arrow" addon is causing taint, that could produce an error “later on”.