ElvUI WindTools

ElvUI WindTools

5M Downloads

bug: Error when updating Minimap Buttons layout (frame is nil)

c3aus3scu opened this issue · 5 comments

commented

提交前请检查以下项目

  • 我已在提交此问题前将 ElvUI 更新至最新版本
  • 我已在提交此问题前将 ElvUI_WindTools 更新至最新版本
  • 我已在此前使用 /wtdebug on 测试过该问题

ElvUI 版本

13.97

ElvUI_WindTools 版本

3.99-7

描述错误

After logging into the game, I immediately get an error sound from BugSack during the loading screen. I did not interact with the Minimap or Minimap Buttons module at all.

The error seems to come from the Minimap Buttons layout update, where a frame variable is nil when ClearAllPoints() is called.

Error log from BugSack:

3x ...rfaceElvUI_WindTools/Core/Functions/Core.lua:504: attempt to index local 'frame' (a nil value)
[ElvUI_WindTools/Core/Functions/Core.lua]:504: in function 'CallMethod'
[ElvUI_WindTools/Modules/Maps/MinimapButtons.lua]:519: in function 'UpdateLayout'
[ElvUI_WindTools/Modules/Maps/MinimapButtons.lua]:644: in function <...dOns/ElvUI_WindTools/Modules/Maps/MinimapButtons.lua:637>
[ElvUI/Core/General/Math.lua]:311: in function <ElvUI/Core/General/Math.lua:311>

Locals:
frame = nil
methodKey = "ClearAllPoints"
internalMethodKey = "__ClearAllPoints"
(*temporary) = "ClearAllPoints"
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'frame' (a nil value)"

复现步骤

Launch the game with ElvUI and WindTools enabled.

Log into any character.

During the loading screen, BugSack plays the error sound.

Once in game, the error shown above is displayed.

预期行为

No Lua errors should occur on login. The UI should load normally without BugSack reporting any issues.

commented

Can you tell which addon cause this error?
The related logic not changed in this version, it seems another addon's minimap icon behavior is not regular, need some special code to handle it.

commented

Can you tell which addon cause this error? The related logic not changed in this version, it seems another addon's minimap icon behavior is not regular, need some special code to handle it.

Thanks for your reply. From what I can see, this error seems to be caused by another addon that adds a minimap button. WindTools is trying to access a frame that doesn’t exist, likely because the other addon’s minimap icon is not standard or has been removed.

commented

Can you tell which addon cause this error? The related logic not changed in this version, it seems another addon's minimap icon behavior is not regular, need some special code to handle it.

Thanks for your reply. From what I can see, this error seems to be caused by another addon that adds a minimap button. WindTools is trying to access a frame that doesn’t exist, likely because the other addon’s minimap icon is not standard or has been removed.

True, so can you disable/enable some addon in your addon list, and put the addon name here?

commented

after I disabled BasicMinimap I don't receive anymore the error.

Image
commented

Now the module will disabled if BasicMinimap loaded.
13e2a7e