CharacterNotes.lua:1582: bad argument #1 to 'UnitExists' (Usage: local result = UnitExists([unit]). Secret values are only allow #22


  • Defect
Open
Assigned to talryn
  • argium created this issue Mar 16, 2026

    Currently in a delve. On my BM hunter. Not sure if it's triggering off NPCs or myself or my pets.

     

    25x CharacterNotes/CharacterNotes.lua:1582: bad argument #1 to 'UnitExists' (Usage: local result = UnitExists([unit]). Secret values are only allowed during untainted execution for this argument.)
    [CharacterNotes/CharacterNotes.lua]:1582: in function 'OnTooltipSetUnit'
    [CharacterNotes/CharacterNotes.lua]:1460: in function <CharacterNotes/CharacterNotes.lua:1459>
    [tail call]: ?
    [C]: in function 'securecallfunction'
    [Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua]:67: in function <...lizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:62>
    [Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua]:87: in function <...lizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:83>
    [Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua]:123: in function <...lizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:113>
    [C]: in function 'SetAttribute'
    [Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua]:148: in function <...lizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:141>
    [Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua]:298: in function <...lizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:245>
    [C]: in function 'securecallfunction'
    [Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua]:242: in function 'ProcessInfo'
    [Blizzard_GameTooltip/Mainline/GameTooltip.lua]:997: in function 'SetWorldCursor'
    [Blizzard_UIParent/Mainline/UIParent.lua]:1271: in function <...rfaceBlizzard_UIParent/Mainline/UIParent.lua:1191>

     

    Locals:
    self = <table> {
    modules = <table> {
    }
    optionsCategoryId = 17
    optionsFrame = <table> {
    }
    options = <table> {
    }
    db = <table> {
    }
    defaultModuleState = true
    baseName = "CharacterNotes"
    hooks = <table> {
    }
    enabledState = true
    notesFrame = CharacterNotesWindow {
    }
    defaultModuleLibraries = <table> {
    }
    name = "CharacterNotes"
    orderedModules = <table> {
    }
    }
    tooltip = GameTooltip {
    ItemTooltip = Frame {
    }
    BottomOverlay = Texture {
    }
    NineSlice = Frame {
    }
    suppressAutomaticCompareItem = false
    textLeft1Font = "GameTooltipHeaderText"
    TopOverlay = Texture {
    }
    TextLeft1 = GameTooltipTextLeft1 {
    }
    supportsItemComparison = true
    supportsDataRefresh = true
    CIMI_tooltipWritten = false
    processingInfo = <table> {
    }
    infoList = <table> {
    }
    shouldRefreshData = false
    progressBarPool = <table> {
    }
    waitingForData = false
    shoppingTooltips = <table> {
    }
    updateTooltipTimer = 0.170000
    StatusBar = GameTooltipStatusBar {
    }
    TextRight1 = GameTooltipTextRight1 {
    }
    widgetContainer = Frame {
    }
    textLeft2Font = "GameTooltipText"
    layoutType = "TooltipDefaultLayout"
    textRight1Font = "GameTooltipHeaderText"
    textRight2Font = "GameTooltipText"
    TextRight2 = GameTooltipTextRight2 {
    }
    TextLeft2 = GameTooltipTextLeft2 {
    }
    }
    main = nil
    name = <no value>
    unitid = <no value>
    note = nil
    rating = nil
    nameFound = nil
    _G = <table> {
    PDS_StatTooltip_SPEED_ 000002E5E17F3E40Texture3 = PDS_StatTooltip_SPEED_ 000002E5E17F3E40Texture3 {
    }
    ERR_OUT_OF_CHI = "Not enough chi"
    DH_HAVOC_CORE_ABILITY_2 = "Strong melee attack that consumes Fury. If it critical strikes, some Fury is refunded."
    MultiCastActionButton6Cooldown = MultiCastActionButton6Cooldown {
    }
    SettingsSliderOptionsMixin = <table> {
    }
    UNIT_NAMES_COMBATLOG_TOOLTIP = "Color unit names."
    HUD_EDIT_MODE_SETTING_ACTION_BAR_HIDE_BAR_ART = "Hide Bar Art"
    LE_GAME_ERR_CHAT_RAID_RESTRICTED_TRIAL = 799
    SPELL_FAILED_CUSTOM_ERROR_71 = "This partygoer wants to dance with you."
    LE_GAME_ERR_PET_SPELL_TARGETS_DEAD = 435
    ERROR_CLUB_TICKET_COUNT_AT_MAX_COMMUNITY = "Can't create any more invite links for this community."
    RecruitAFriendFrame = RecruitAFriendFrame {
    }
    TutorialFrameLeft19 = TutorialFrameLeft19 {
    }
    MultiCastActionButton2Cooldown = MultiCastActionButton2Cooldown {
    }
    ERR_TRADE_EQUIPPED_BAG = "You can't trade equipped bags."
    PVP_RANK_6_1 = "Corporal"
    MultiBarLeftButton7 = MultiBarLeftButton7 {
    }
    OPTION_TOOLTIP_SHOW_MULTIBAR4 = "Attached to the left side of Right Action Bar 1 by default"
    PDS_StatTooltip_SPEED_ 000002E5007419B0Texture11 = PDS_StatTooltip_SPEED_ 000002E5007419B0Texture11 {
    }
    LE_GAME_ERR_INVALID_FOLLOW_PVP_COMBAT = 389
    MerchantItem1AltCurrencyFrameItem1Text = MerchantItem1AltCurrencyFrameItem1Text {
    }
    PROFESSIONS_COLUMN_REAGENTS_NONE = "None"
    OPTION_TOOLTIP_ACTION_BUTTON_USE_KEY_DOWN = "Action button keybinds will respond on key down, rather than on key up."
    BINDING_NAME_NAMEPLATES = "Show Enemy Nameplates"
    CHAT_HEADER_SUFFIX = ": "
    COVENANT_MISSIONS_HEALTH = "Health"
    MAIL_LETTER_TOOLTIP = "Click to make a permanent
    copy of this letter."
    PVPReadyDialogBottomArt = PVPReadyDialogBottomArt {
    }
    MultiBar6Button4Flash = MultiBar6Button4Flash {
    }
    MANA = "Mana"
    CHAT_CONFIG_OTHER_COMBAT = <table> {
    }
    ClassNameplateBarPaladinFrameRune5 = ClassNameplateBarPaladinFrameRune5 {
    }
    TutorialFrameRight19 = TutorialFrameRight19 {
    }
    BN_UNABLE_TO_RESOLVE_NAME = "Unable to whisper '%s'. Blizzard services may be unavailable."
    AddonListClearButton = AddonListClearButton {
    }
    PDS_StatTooltip_MASTERY_ 000002E67770EAA0Texture6 = PDS_StatTooltip_MASTERY_ 000002E67770EAA0Texture6 {
    }
    PDS_StatTooltip_HASTE_ 000002E6464300D0Texture17 = PDS_StatTooltip_HASTE_ 000002E6464300D0Texture17 {
    }
    LE_GAME_ERR_ONLY_ONE_QUIVER = 36
    INT_SPELL_DURATION_HOURS = "%d |4hour:hrs;"
    SLASH_LibQTip1 = "/qtip"
    PDS_StatTooltip_AGILITY_ 000002E69C922310Texture13 = PDS_StatTooltip_AGILITY_ 000002E69C922310Texture13 {
    }
    LOSS_OF_CONTROL_DISPLAY_FEAR = "Feared"
    POWERBAR_PREDICTION_COLOR_MAELSTROM_CODE = "|cff003366"
    PDS_StatTooltip_SPEED_ 000002E5015DA590Texture
  • Talryn posted a comment Mar 16, 2026

    I believe this should be fixed in the new release today.  If you still get errors or see any others, please let me know.

  • Talryn self-assigned this issue Mar 16, 2026
  • andfos posted a comment Mar 18, 2026

    Seeing something similar, I think, with version 12.0.4; it happens in M0 and raids.

     

    325x CharacterNotes/CharacterNotes.lua:1594: bad argument #1 to 'UnitExists' (Usage: local result = UnitExists([unit]). Secret values are only allowed during untainted execution for this argument.)
    [CharacterNotes/CharacterNotes.lua]:1594: in function 'OnTooltipSetUnit'
    [CharacterNotes/CharacterNotes.lua]:1460: in function <CharacterNotes/CharacterNotes.lua:1459>
    [tail call]: ?
    [C]: in function 'securecallfunction'
    [Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua]:67: in function <...lizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:62>
    [Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua]:87: in function <...lizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:83>
    [Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua]:123: in function <...lizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:113>
    [C]: in function 'SetAttribute'
    [Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua]:148: in function <...lizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:141>
    [Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua]:298: in function <...lizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:245>
    [C]: in function 'securecallfunction'
    [Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua]:242: in function 'ProcessInfo'
    [Blizzard_GameTooltip/Mainline/GameTooltip.lua]:997: in function 'SetWorldCursor'
    [Blizzard_UIParent/Mainline/UIParent.lua]:1271: in function <...rfaceBlizzard_UIParent/Mainline/UIParent.lua:1191>
    [C]: ?

  • argium posted a comment Mar 19, 2026

    Errors have not completely gone away for me either. 

  • Talryn posted a comment Mar 19, 2026

    Thanks for letting me know.  I added another check that hopefully fixes that error in 12.0.5.  Please let me know if it fixes it.  I'm traveling and cannot test it properly at the moment.

  • Talryn added a tag Defect Mar 19, 2026
  • argium posted a comment Mar 30, 2026

    One more:

     

    1x [ADDON_ACTION_BLOCKED] AddOn 'CharacterNotes' tried to call the protected function 'MultiBarBottomLeft:ShowBase()'.
    [!BugGrabber/BugGrabber.lua]:540: in function '?'
    [!BugGrabber/BugGrabber.lua]:524: in function <!BugGrabber/BugGrabber.lua:524>
    [C]: in function 'ShowBase'
    [Blizzard_ActionBar/Shared/ActionBar.lua]:361: in function 'UpdateVisibility'
    [Blizzard_ActionBar/Shared/ActionBar.lua]:320: in function 'ShowOverride'
    [Blizzard_ActionBar/Shared/ActionBar.lua]:310: in function 'SetShown'
    [Blizzard_ActionBar/Shared/MultiActionBars.lua]:87: in function <Blizzard_ActionBar/Shared/MultiActionBars.lua:80>
    [Blizzard_ActionBar/Shared/MultiActionBars.lua]:99: in function 'MultiActionBar_Update'
    [Blizzard_ActionBarController/ActionBarController.lua]:230: in function 'ValidateActionBarTransition'
    [Blizzard_ActionBarController/ActionBarController.lua]:175: in function 'ActionBarController_UpdateAll'
    [Blizzard_ActionBarController/ActionBarController.lua]:66: in function <...Blizzard_ActionBarController/ActionBarController.lua:55>

     


    Edited Mar 30, 2026
  • Talryn posted a comment Apr 5, 2026

    The error with MultiBarBottomLeft:ShowBase() doesn't look like anything Character Notes touches.  It is probably from another addon.  Many addons use shared libraries and when an error occurs it will blame just the first addon loaded that uses that library.  It is probably the Ace 3 libraries that are common.

     

    You may need to turn off all addons but Character Notes to verify it.  If there is no error you would need to try the same with other addons.  Character Notes doesn't use or change action bar buttons though.


To post a comment, please login or register a new account.