WeakAuras

WeakAuras

206M Downloads

LUA error, WA Options unusable until reload

MSav93 opened this issue · 5 comments

commented

Describe the bug

Lua Error, then WA Options becomes unusable until reload

Do you have an error log of what happened?

1x ...dOns\WeakAurasOptions\OptionsFrames\OptionsFrame.lua:237: attempt to perform arithmetic on a nil value
[string "@WeakAurasOptions\OptionsFrames\OptionsFrame.lua"]:237: in function <...dOns\WeakAurasOptions\OptionsFrames\OptionsFrame.lua:236>
[string "@WeakAurasOptions\OptionsFrames\OptionsFrame.lua"]:264: in function <...dOns\WeakAurasOptions\OptionsFrames\OptionsFrame.lua:262>

Locals:
(*temporary) = nil
(*temporary) = 1920
(*temporary) = 1920
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to perform arithmetic on a nil value"
frame = WeakAurasOptions {
 0 = <userdata>
 texturePicker = <table> {
 }
 HideTip = <function> defined @WeakAurasOptions\OptionsFrames\OptionsFrame.lua:513
 CenterOnPicked = <function> defined @WeakAurasOptions\OptionsFrames\OptionsFrame.lua:1246
 window = "default"
 OnBackdropLoaded = <function> defined @SharedXML\Backdrop.lua:195
 ClearOptions = <function> defined @WeakAurasOptions\OptionsFrames\OptionsFrame.lua:830
 GetBackdropColor = <function> defined @SharedXML\Backdrop.lua:433
 EnsureOptions = <function> defined @WeakAurasOptions\OptionsFrames\OptionsFrame.lua:895
 PickDisplayMultiple = <function> defined @WeakAurasOptions\OptionsFrames\OptionsFrame.lua:1262
 RightEdge = <unnamed> {
 }
 importexport = <table> {
 }
 ClearBackdrop = <function> defined @SharedXML\Backdrop.lua:325
 importThumbnail = <unnamed> {
 }
 ShowTip = <function> defined @WeakAurasOptions\OptionsFrames\OptionsFrame.lua:506
 PixelSnapDisabled = true
 ClearPick = <function> defined @WeakAurasOptions\OptionsFrames\OptionsFrame.lua:979
 SetupTextureCoordinates = <function> defined @SharedXML\Backdrop.lua:257
 TopRightCorner = <unnamed> {
 }
 iconPicker = <table> {
 }
 GetEdgeSize = <function> defined @SharedXML\Backdrop.lua:231
 UpdateFrameVisible = <function> defined @WeakAurasOptions\OptionsFrames\OptionsFrame.lua:275
 TopEdge = <unnamed> {
 }
 mover = <unnamed> {
 }
 bottomLeftResizer = <unnamed> {
 }
 BottomRightCorner = <unnamed> {
 }
 SetBackdropColor = <function> defined @SharedXML\Backdrop.lua:442
 LeftEdge = <unnamed> {
 }
 unloadedButton = <table> {
 }
 buttonsContainer = <table> {
 }
 tipFrame = <table> {
 }
 toolbarContainer = <table> {
 }
 codereview = <table> {
 }
 SetBackdropBorderColor = <function> defined @SharedXML\Backdrop.lua:465
 container = <table> {
 }
 loadProgress = <unnamed> {
 }
 BottomEdge = <unnamed> {
 }
 SetBackdrop = <function> defined @SharedXML\Backdrop.lua:372
 texteditor = <table> {
 }
 GetBackdropBorderColor = <function> defined @SharedXML\Backdrop.lua:452
 GetBackdrop = <function> defined @SharedXML\Backdrop.lua:390
 backdropInfo = <table> {
 }
 moversizer = <unnamed> {
 }
 SetBorderBlendMode = <function> defined @SharedXML\Backdrop.lua:309
 pickedDisplay = "Castle Nathria (wago.io/slraid1)"
 PickDisplay = <function> defined @WeakAurasOptions\OptionsFrames\OptionsFrame.lua:1189
 loadProgressNum = 696
 tipFrameIsVisible = true
 SetLoadProgressVisible = <function> defined @WeakAurasOptions\OptionsFrames\OptionsFrame.lua:635
 FillOptions = <function> defined @WeakAurasOptions\OptionsFrames\OptionsFrame.lua:924
 addonsButton = <table> {
 }
 Center = <unnamed> {
 }
 OnBackdropSizeChanged = <function> defined @SharedXML\Backdrop.lua:225
 loadProgessVisible = false
 filterInput = WeakAurasFilterInput {
 }
 GetPickedDisplay = <function> defined @WeakAurasOptions\OptionsFrames\OptionsFrame.lua:1305
 buttonsScroll = <table> {
 }
 PickDisplayBatch = <function> defined @WeakAurasOptions\OptionsFrames\OptionsFrame.lua:1286
 BottomLeftCorner = <unnamed> {
 }
 PickOption = <function> defined @WeakAurasOptions\OptionsFrames\OptionsFrame.lua:1163
 modelPicker = <table> {
 }
 loadedButton = <table> {
 }
 TopLeftCorner = <unnamed> {
 }
 NewAura = <function> defined @WeakAurasOptions\OptionsFrames\OptionsFrame.lua:1034
 bottomRightResizer = <unnamed> {
 }
 ClearPicks = <function> defined @WeakAurasOptions\OptionsFrames\OptionsFrame.lua:998
 ApplyBackdrop = <function> defined @SharedXML\Backdrop.lua:337
 Up

To Reproduce

I can't reliably reproduce error so I've outline the actions I was taking at the time

Steps to reproduce the behavior:

  1. Open WA Options
  2. Select a large WA group (Nathria auras)
  3. Try and move WA options
  4. See error

Note: The above actions were performed quite quickly so it may have something to do with a specific timing e.g. moving the options window while the aura group is "loading"

Screenshots

image
image

Did you try having WeakAuras as the only enabled addon and everything else (especially something like ElvUI) disabled?
Yes, couldn't reproduce but it seems to happen very intermittently so can't be sure whether it's another addon or I was just unlucky when trying to reproduce

Which version of WeakAuras are you using?

3.1.4

Are you on World of Warcraft Classic or Retail?

  • Classic
  • Retail

Was it working in a previous version? If yes, which was the last good one?

Had same error yesterday with 3.1.3 and I think I've experienced this error in during BFA but not 100% sure of that.

Additional Info

commented
  • What is your first error in bugsack (you'r showing 2nd)
  • Can you include your savedvariables file as asked ?
commented

1st error is this

1x [ADDON_ACTION_BLOCKED] AddOn 'ExRT' tried to call the protected function 'ExRTMarksBar:Hide()'.
[string "@!BugGrabber\BugGrabber.lua"]:519: in function <!BugGrabber\BugGrabber.lua:519>
[string "=[C]"]: in function `Hide'
[string "@ExRT\MarksBar.lua"]:1078: in function `func'
[string "@ExRT\core.lua"]:342: in function <ExRT\core.lua:341>
[string "@SharedXML\C_TimerAugment.lua"]:16: in function <SharedXML\C_TimerAugment.lua:14>

SV: https://drive.google.com/file/d/1dYrtHcCX-qMB1TT03uVbsy5htNBsHa0D/view?usp=sharing

commented

No, never heard of it.

These are the plugins I use:
image

It seems like windtools and ProjectAzilroka are very similar in function so there may be some shared / stolen code 🤷‍♂️

commented

Do you use an elvui plugin called "windtools" ?

commented

I can't reproduce that.

Also from the code, that error looks impossible, the arithmetic there is on the options frame position (which quite obviously can't be nil) and GetScreenWidth(), which can't be nil either.

So my best guess is, that some other addon is overwriting GetScreenWidth() so that it returns nil. I much doubt any addon does that though.

Anyway, we need more information on how to reproduce this.