Menu

#1317 PetActionBarFrame lua error

Resolved
urnati
None
Retail
Medium
Defect
2026-03-20
2021-09-19
No

When my hunter uses the flight master to take a flight and my pet is present, I get the following error.
This has been happening for many months.

1x FrameXML\PetActionBarFrame.lua:247: attempt to perform arithmetic on a nil value
[string "@FrameXML\PetActionBarFrame.lua"]:247: in function PetActionBar_UpdatePositionValues' [string "@FrameXML\UIParent.lua"]:3333: in functionUIParentManageFramePositions'
[string "@FrameXML\UIParent.lua"]:2653: in function <framexml\uiparent.lua:2640>
[string "=[C]"]: in function SetAttribute' [string "@FrameXML\UIParent.lua"]:3449: in function <FrameXML\UIParent.lua:3447> [string "=[C]"]: ? [string "=[C]"]: in functionUIParent_ManageFramePositions'
[string "@FrameXML\MainMenuBar.lua"]:60: in function `SetPositionForStatusBars'
[string "@FrameXML\MainMenuBar.lua"]:109: in function <framexml\mainmenubar.lua:65></framexml\mainmenubar.lua:65></framexml\uiparent.lua:2640>

Discussion

  • urnati

    urnati - 2021-10-02

    Does this occur when only Titan Panel is enabled?
    Does this occur on any flight in any zone?
    Flew a couple places on my two hunters and do not see this.

    Titan Panel is not listed in the error so it very hard to trace. For some errors WoW has been known to blame random addons in the trace even though they did not cause the error.

    The punt is remove Titan Panel addon folder and its saved variables file. Then reinstall Titan Panel.
    This may help.

    Addon: ../World of Warcraft/retail/Interface/Addons/Titan
    and Titan* for base plugins
    and Titan third party plugins - it is unlikely one of them is causing the error but start fresh

    Saved: ../World of Warcraft/retail/WTF/Account/<your account="">/SavedVariables/Titan.lua
    and Titan.lua.bak</your>

     
  • HonorGoG

    HonorGoG - 2021-10-23
    • status: New --> Pending
    • assigned_to: urnati
    • Priority: Critical --> Medium
     
  • HonorGoG

    HonorGoG - 2021-10-23

    Annoying so medium priority. Critical means the game cannot be played. Assigning to Urnati as he is looking into it.

     
  • Steven Conley

    Steven Conley - 2022-03-26

    I continue to get this error.
    It happens when I have a hunter pet and take a flight.
    It happens for all the flights.
    I only have Titan Panel, Buggrabber, Bugsack enabled.
    I have tried removing the addon and savedvariables forlders and re-installing.

     

    Last edit: Steven Conley 2022-03-26
  • urnati

    urnati - 2022-03-28

    Just tried a couple flights with my pet but no error.
    This toon is BM with 2 pets out. I have several addons other than Titan.
    On Titan I have the base (built-ins) with several addons using LDB display plugins.

    Are you running Titan plugins other than the Titan base plugins?

    Also would you add the current full error so I can trace it? The original is now old and it contains only Blizzard routines. If an addon is referenced, it would be very helpful. Either to us or to help another author.

     
  • Steven Conley

    Steven Conley - 2022-04-18

    Here is what I did: I backed up and deleted the Addons and WTF folders.
    I installed Buggrabber, Bugsack and the Titan addon from Curseforge.
    I was not able to reproduce the error.
    I copied the WTF files for just buggrabber, bugsack and all the titan ones that come with the basic package. I get the following error on several of my accounts but not all:
    I'm going to delete my WTF files and see if I can get this working without the error.

    1x FrameXML\PetActionBarFrame.lua:247: attempt to perform arithmetic on a nil value
    [string "@FrameXML\PetActionBarFrame.lua"]:247: in function PetActionBar_UpdatePositionValues' [string "@FrameXML\UIParent.lua"]:3420: in functionUIParentManageFramePositions'
    [string "@FrameXML\UIParent.lua"]:2739: in function <framexml\uiparent.lua:2726>
    [string "=[C]"]: in function SetAttribute' [string "@FrameXML\UIParent.lua"]:3536: in function <FrameXML\UIParent.lua:3534> [string "=[C]"]: in functionUIParent_ManageFramePositions'
    [string "@FrameXML\MainMenuBar.lua"]:60: in function `SetPositionForStatusBars'
    [string "@FrameXML\MainMenuBar.lua"]:109: in function <framexml\mainmenubar.lua:65></framexml\mainmenubar.lua:65></framexml\uiparent.lua:2726>

    Locals:
    (temporary) = nil
    (
    temporary) = MainMenuBarVehicleLeaveButton {
    0 = <userdata>
    Highlight = <unnamed> {
    }
    }
    (*temporary) = "attempt to perform arithmetic on a nil value"</unnamed></userdata>

     
  • Steven Conley

    Steven Conley - 2022-04-18

    I'm using a global profile. I now have the situation where one hunter is not having the error but another hunter is.

     

    Last edit: Steven Conley 2022-04-18
  • Steven Conley

    Steven Conley - 2022-04-18

    I am also getting the error with a Warlock with it's demon pet out.
    1x FrameXML\PetActionBarFrame.lua:247: attempt to perform arithmetic on a nil value
    [string "@FrameXML\PetActionBarFrame.lua"]:247: in function PetActionBar_UpdatePositionValues' [string "@FrameXML\UIParent.lua"]:3420: in functionUIParentManageFramePositions'
    [string "@FrameXML\UIParent.lua"]:2739: in function <framexml\uiparent.lua:2726>
    [string "=[C]"]: in function SetAttribute' [string "@FrameXML\UIParent.lua"]:3536: in function <FrameXML\UIParent.lua:3534> [string "=[C]"]: in functionUIParent_ManageFramePositions'
    [string "@FrameXML\MainMenuBar.lua"]:60: in function `SetPositionForStatusBars'
    [string "@FrameXML\MainMenuBar.lua"]:109: in function <framexml\mainmenubar.lua:65></framexml\mainmenubar.lua:65></framexml\uiparent.lua:2726>

    Locals:
    (temporary) = nil
    (
    temporary) = MainMenuBarVehicleLeaveButton {
    0 = <userdata>
    Highlight = <unnamed> {
    }
    }
    (*temporary) = "attempt to perform arithmetic on a nil value"</unnamed></userdata>

     
  • urnati

    urnati - 2022-04-18

    Thank you for the additional info and attempting to narrow this down. Sorry for the long reply but this is baffling :).

    It makes sense a hunter and warlock could have the same error. The code is looking at the pet action bar which is shared between those classes.

    The Blizzard UI code referenced is attempting to adjust the pet frame by looking for the 'leave button'. It seems the button is there and shown but cannot get the right side position???

    Are you using a bottom Titan bar on the toons that do and do not get the error?

    • It may give a clue. I use both bars on my hunter and have tried flights with and without bottom bar.
    • I know you said you use global profile but I just want to double check. Global profile should not matter...

    Is there some difference on the flight getting versus not getting the error?

    • Such as the 'leave button' being visible or not (typically a red curved arrow)?
    • Timing in that it takes a bit longer for the flight bar to appear?
    • You have not mentioned vehicles - I assume user controlled vehicles for quests are fine?
    • You have an extra action button? Such as in Draenor zones.
    • Battlegrounds, instances, old content verus Chromie time versus Shadowlands? Again should not matter... But grasping at straws here.
    • On my hunter the UI hides the pet action bar and shows the 'leave button', with and without using a Titan bottom bar.

    Does this occur when taking a boat or zeppelin which causes a reload?

    Soon I'll try your steps with only Titan and Bug*.

     
  • Steven Conley

    Steven Conley - 2022-04-21

    Here are a few answers to your questions.
    I am using the bottom bar on all my toons.
    For the hunters who have the error, if I disable the bottom bar screen adjust, the error goes away.
    I have not been able to figure out why some hunters have the error and other do not.
    The "leave button" is visible with or without the error.
    For a hunter with the error, if I turn off the bottom bar I still get the error. If I reloadui, the error is not there.
    If a hunter is getting the error, he gets it in all the zones I've tried. I tried stormwind, battle for azeroth, Shattrath, also horde and alliance hunters.
    Mounting the Grand expedition yak as a passenger, shows the exit button but did not trigger the error.
    Using a zepplin did not trigger the error.
    Using the hivemind mount while pets were out did not trigger the error.

     

    Last edit: Steven Conley 2022-04-22
  • urnati

    urnati - 2022-04-26

    Thank you for the info. I realized I had not thanked you.

    Hmmm, there are clues but I am stilling about this.
    Would you be willing to edit code (only comment out a couple lines or place text with instructions)? I would try to keep it minimal just to get more info or try a crude fix.

     
  • Steven Conley

    Steven Conley - 2022-04-30

    Yes. I'm familiar with lua and have thousands of lines of code that I've written myself.

     
  • Steven Conley

    Steven Conley - 2022-05-05

    For now, I've just removed the bottom bar and squished everthing onto the top bar. I won't be able to assist with any debugging since it is taking too long between posts (over 6 days for this last one and still counting). I'm not complaining, just being practical.

     
  • urnati

    urnati - 2022-05-06

    I understand! This has been bewildering trying to find some causal or even clues in the code. I have been code diving and running experiments to understand what could be happening.

     
  • urnati

    urnati - 2026-03-20
    • status: Pending --> Resolved
    • Version: --> Retail
     
  • urnati

    urnati - 2026-03-20

    Closing - old and no current complaints.

     

Log in to post a comment.

MongoDB Logo MongoDB