Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetPassThroughButtons Lua Error #1490

Open
3 of 4 tasks
KatyPurry opened this issue Mar 10, 2025 · 2 comments
Open
3 of 4 tasks

SetPassThroughButtons Lua Error #1490

KatyPurry opened this issue Mar 10, 2025 · 2 comments

Comments

@KatyPurry
Copy link
Contributor

KatyPurry commented Mar 10, 2025

Troubleshooting Steps

Hello,

I have LUA errors with ElvUI. They appear when I'm in combat and open the map. I carried out several tests. I deactivated all my addons that used “SetPassThroughButtons”, leaving only ElvUI activated. To be sure I tested with /edebug on. Same result.

Image

Describe the expected behavior and what actually happened?

No response

Reproducing the issue.

No response

Lua Errors

First error (ususally 7-10) : 

Message: ...zzard_ScriptErrorFrame/Blizzard_ScriptErrorFrame.lua:116: attempt to concatenate local 'stack' (a nil value)
Time: Mon Mar 10 14:22:40 2025
Count: 46
Stack:
[Interface/AddOns/Blizzard_ScriptErrorFrame/Blizzard_ScriptErrorFrame.lua]:116: in function <...zzard_ScriptErrorFrame/Blizzard_ScriptErrorFrame.lua:115>
[C]: in function 'OnError'
[Interface/AddOns/ElvUI/Core/Modules/Misc/DebugTools.lua]:106: in function <...erface/AddOns/ElvUI/Core/Modules/Misc/DebugTools.lua:104>
[tail call]: ?
[Interface/AddOns/ElvUI_Libraries/Core/CallbackHandler-1.0/CallbackHandler-1.0.lua]:109: in function <...ies/Core/CallbackHandler-1.0/CallbackHandler-1.0.lua:109>
[C]: ?
[Interface/AddOns/ElvUI_Libraries/Core/CallbackHandler-1.0/CallbackHandler-1.0.lua]:19: in function <...ies/Core/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
[Interface/AddOns/ElvUI_Libraries/Core/CallbackHandler-1.0/CallbackHandler-1.0.lua]:54: in function 'Fire'
[Interface/AddOns/ElvUI_Libraries/Core/Ace3/AceEvent-3.0/AceEvent-3.0.lua]:120: in function <...UI_Libraries/Core/Ace3/AceEvent-3.0/AceEvent-3.0.lua:119>
[C]: in function 'SetPassThroughButtons'
[Interface/AddOns/Blizzard_MapCanvas/MapCanvas_DataProviderBase.lua]:280: in function 'CheckMouseButtonPassthrough'
[Interface/AddOns/Blizzard_MapCanvas/Blizzard_MapCanvas.lua]:302: in function 'AcquirePin'
...[C]: in function 'Show'
[Interface/AddOns/Blizzard_UIParentPanelManager/Mainline/UIParentPanelManager.lua]:493: in function 'SetUIPanel'
[Interface/AddOns/Blizzard_UIParentPanelManager/Mainline/UIParentPanelManager.lua]:336: in function 'ShowUIPanel'
[Interface/AddOns/Blizzard_UIParentPanelManager/Mainline/UIParentPanelManager.lua]:174: in function <...ParentPanelManager/Mainline/UIParentPanelManager.lua:169>
[C]: in function 'SetAttribute'
[Interface/AddOns/Blizzard_UIParentPanelManager/Mainline/UIParentPanelManager.lua]:893: in function 'ShowUIPanel'
[Interface/AddOns/Blizzard_WorldMap/QuestLogOwnerMixin.lua]:115: in function 'SetDisplayState'
[Interface/AddOns/Blizzard_WorldMap/QuestLogOwnerMixin.lua]:51: in function 'HandleUserActionToggleSelf'
[Interface/AddOns/Blizzard_WorldMap/Blizzard_WorldMap.lua]:550: in function 'ToggleWorldMap'
[TOGGLEWORLDMAP]:1: in function <[string "TOGGLEWORLDMAP"]:1>

Locals:
self = ScriptErrorsFrame {
 index = 1
 order = <table> {
 }
 ScrollFrame = ScrollFrame {
 }
 PreviousError = Button {
 }
 IndexLabel = FontString {
 }
 messageCount = 127
 count = <table> {
 }
 Close = Button {
 }
 NextError = Button {
 }
 DragArea = Frame {
 }
 warnType = <table> {
 }
 locals = <table> {
 }
 messageLimit = 1000
 Reload = Button {
 }
 Title = FontString {
 }
 messages = <table> {
 }
 times = <table> {
 }
 seen = <table> {
 }
}
msg = "ADDON_ACTION_BLOCKED : ElvUI a tenté d'appeler la fonction protégée 'Frame:SetPassThroughButtons()'."
warnType = false
keepHidden = false
stack = nil
locals = nil
(*temporary) = "ADDON_ACTION_BLOCKED : ElvUI a tenté d'appeler la fonction protégée 'Frame:SetPassThroughButtons()'."
(*temporary) = "
"
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to concatenate local 'stack' (a nil value)"

Verification Steps

  • I have read the Changelog and verified ElvUI is up to date by checking /estatus
  • I have verified my issue doesn't exist in the Default UI or the Issue Tracker.
  • I have not read any of these steps, please close my issue when you see it.
  • I have done the Troubleshooting Steps and included the requested screenshots, which show the issue and status panel.
@ChrisKader
Copy link

This is because ScriptErrorsFrameMixin:OnError(msg, warnType, keepHidden, stack, locals) requires a "stack" param be passed to it.

@ChrisKader
Copy link

ChrisKader commented Mar 14, 2025

---@meta

---@class ScriptErrorsFrameMixin
---@field OnLoad fun(self)
---@field OnShow fun(self)
---@field DisplayMessageInternal fun(self, msg: string, warnType: 0|false, keepHidden: boolean?, locals: string?, stack: string|number, msgKey: string?)
---@field DisplayMessage fun(self, msg: string, warnType:0|false, keepHidden: boolean?, messageType:0|1, stack: string|number, local: string?)
---@field OnError fun(self, msg: string, warnType:0|false, keepHidden: boolean?, stack: string|number, local: string?)
---@field OnWarning fun(self, msg: string, warnType:0|false, keepHidden: boolean?, stack: string|number, local: string?)
---@field UpdateTitle fun(self, messageType)
---@field GetEditBox fun(self): EditBox
---@field Update fun(self)
---@field UpdateButtons fun(self)
---@field GetCount fun(self): number
---@field ChangeDisplayedIndex fun(self, delta)
---@field ShowPrevious fun(self)
---@field ShowNext fun(self)

---@class ScriptErrorsFrame : ScriptErrorsFrameMixin, Frame
---@field ScrollFrame ScrollFrame
---@field DragArea Frame
---@field Reload Button
---@field PreviousError Button
---@field NextError Button
---@field Close Button
---@field firstButton Button
---@field lastButton Button
---@field index number
---@field seen table<string, number>
---@field order table<number>
---@field count table<number, number>
---@field messages table<number, string>
---@field times table<number, string>
---@field locals table<number, string>
---@field warnType table<number, string|false>
---@field messageCount number
---@field messageLimit number
ScriptErrorsFrame = {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants