RangeDisplay/RangeDisplay.lua:233: attempt to perform boolean test on a secret value #38


  • Defect
Open
  • Suppression_Curse created this issue Jan 23, 2026

    I'm getting this error in a dungeon when targeting a mob in 12.0.0 with the latest RangeDisplay.

     

    20x RangeDisplay/RangeDisplay.lua:233: attempt to perform boolean test on a secret value
    [RangeDisplay/RangeDisplay.lua]:233: in function 'checkTarget'
    [RangeDisplay/RangeDisplay.lua]:253: in function 'targetChanged'
    [RangeDisplay/RangeDisplay.lua]:799: in function <RangeDisplay/RangeDisplay.lua:798>
    [C]: ?
    [Masque/Libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua]:19: in function <...que/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
    [Masque/Libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua]:54: in function 'Fire'
    [Bartender4/libs/AceEvent-3.0-4/AceEvent-3.0.lua]:120: in function <Bartender4/libs/AceEvent-3.0/AceEvent-3.0.lua:119>
    [C]: in function 'CameraOrSelectOrMoveStop'
    [CAMERAORSELECTORMOVE]:4: in function <[string "CAMERAORSELECTORMOVE"]:1>

    Locals:
    ud = <table> {
    lastMaxRange = 28
    sounds = <table> {
    }
    rangeFrameText = RangeDisplayFrameText_playertarget {
    }
    locked = true
    useSound = false
    lastMinRange = 8
    name = "Target"
    lastUpdate = 0.087000
    unit = "playertarget"
    isMoving = false
    db = <table> {
    }
    opts = Frame {
    }
    rangeFrame = RangeDisplayFrame_playertarget {
    }
    event = "PLAYER_TARGET_CHANGED"
    mainFrame = RangeDisplayMainFrame_playertarget {
    }
    }
    unit = "playertarget"
    (*temporary) = <no value>
    (*temporary) = "playertarget"
    (*temporary) = "player"
    (*temporary) = "attempt to perform boolean test on a secret value"
    mute = true
  • Suppression_Curse added a tag Defect Jan 23, 2026
  • 40PE posted a comment Jan 24, 2026

    Hi,

     

    Same error:

     

    469x RangeDisplay/RangeDisplay.lua:233: attempt to perform boolean test on a secret value
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    ...[C]: ?
    [RangeDisplay/RangeDisplay.lua]:233: in function 'checkTarget'
    [RangeDisplay/RangeDisplay.lua]:253: in function 'targetChanged'
    [RangeDisplay/RangeDisplay.lua]:799: in function <RangeDisplay/RangeDisplay.lua:798>
    [C]: ?
    [Masque/Libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua]:19: in function <...que/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
    [Masque/Libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua]:54: in function 'Fire'
    [ElvUI_Libraries/Game/Shared/Ace3/AceEvent-3.0-4/AceEvent-3.0.lua]:120: in function <...aries/Game/Shared/Ace3/AceEvent-3.0/AceEvent-3.0.lua:119>
    [C]: in function 'CameraOrSelectOrMoveStop'
    [CAMERAORSELECTORMOVE]:4: in function <[string "CAMERAORSELECTORMOVE"]:1>

    Locals:
    currentStackHeight = 12
    errorCallStackHeight = 444
    errorStackOffset = 443
    debugStackLevel = -431
    stack = "[tail call]: ?
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    [tail call]: ?
    ...[C]: ?
    [RangeDisplay/RangeDisplay.lua]:233: in function 'checkTarget'
    [RangeDisplay/RangeDisplay.lua]:253: in function 'targetChanged'
    [RangeDisplay/RangeDisplay.lua]:799: in function <RangeDisplay/RangeDisplay.lua:798>
    [C]: ?
    [Masque/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua]:19: in function <...que/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
    [Masque/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua]:54: in function 'Fire'
    [ElvUI_Libraries/Game/Shared/Ace3/AceEvent-3.0/AceEvent-3.0.lua]:120: in function <...aries/Game/Shared/Ace3/AceEvent-3.0/AceEvent-3.0.lua:119>
    [C]: in function 'CameraOrSelectOrMoveStop'
    [CAMERAORSELECTORMOVE]:4: in function <[string "CAMERAORSELECTORMOVE"]:1>
    "

  • 40PE posted a comment Jan 27, 2026

    Had to turn off Rangedisplay in delves, had too many errors like this:

     

    105x RangeDisplay/RangeDisplay.lua:233: attempt to perform boolean test on a secret value
    [RangeDisplay/RangeDisplay.lua]:233: in function 'checkTarget'
    [RangeDisplay/RangeDisplay.lua]:253: in function 'targetChanged'
    [RangeDisplay/RangeDisplay.lua]:799: in function <RangeDisplay/RangeDisplay.lua:798>
    [C]: ?
    [AdvancedInterfaceOptions/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua]:19: in function <...ons/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
    [AdvancedInterfaceOptions/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua]:54: in function 'Fire'
    [CombatMode/Libs/AceEvent-3.0-4/AceEvent-3.0.lua]:120: in function <CombatMode/Libs/AceEvent-3.0/AceEvent-3.0.lua:119>
    [C]: in function 'CameraOrSelectOrMoveStop'
    [CAMERAORSELECTORMOVE]:4: in function <[string "CAMERAORSELECTORMOVE"]:1>

    Locals:
    ud = <table> {
    lastMaxRange = 3
    sounds = <table> {
    }
    rangeFrameText = RangeDisplayFrameText_playertarget {
    }
    locked = true
    useSound = false
    lastMinRange = 2
    name = "Target"
    lastUpdate = 0.021000
    unit = "playertarget"
    isMoving = false
    opts = Frame {
    }
    db = <table> {
    }
    optsId = 24
    rangeFrame = RangeDisplayFrame_playertarget {
    }
    event = "PLAYER_TARGET_CHANGED"
    mainFrame = RangeDisplayMainFrame_playertarget {
    }
    }
    unit = "playertarget"
    (*temporary) = <no value>
    (*temporary) = "playertarget"
    (*temporary) = "player"
    (*temporary) = "attempt to perform boolean test on a secret value"
    mute = false

  • Adrenaliinz posted a comment Feb 3, 2026

    Yeah, same error here too. 

     

     

    711x RangeDisplay/RangeDisplay.lua:233: attempt to perform boolean test on a secret value
    [RangeDisplay/RangeDisplay.lua]:233: in function 'checkTarget'
    [RangeDisplay/RangeDisplay.lua]:253: in function 'targetChanged'
    [RangeDisplay/RangeDisplay.lua]:799: in function <RangeDisplay/RangeDisplay.lua:798>
    [C]: ?
    [Accountant/Libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua]:19: in function <...ant/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
    [Accountant/Libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua]:54: in function 'Fire'
    [Bagnon/legacy/AceEvent-3.0-4/AceEvent-3.0.lua]:120: in function <...eBagnon/legacy/AceEvent-3.0/AceEvent-3.0.lua:119>
    [C]: in function 'TargetNearestEnemy'
    [TARGETNEARESTENEMY]:2: in function <[string "TARGETNEARESTENEMY"]:1>
    
    Locals:
    ud = <table> {
     lastMaxRange = 80
     sounds = <table> {
     }
     rangeFrameText = RangeDisplayFrameText_playertarget {
     }
     locked = true
     useSound = false
     lastMinRange = 70
     name = "Target"
     lastUpdate = 0.074000
     unit = "playertarget"
     isMoving = false
     opts = Frame {
     }
     db = <table> {
     }
     optsId = 40
     rangeFrame = RangeDisplayFrame_playertarget {
     }
     event = "PLAYER_TARGET_CHANGED"
     mainFrame = RangeDisplayMainFrame_playertarget {
     }
    }
    unit = "playertarget"
    (*temporary) = <no value>
    (*temporary) = "playertarget"
    (*temporary) = "player"
    (*temporary) = "attempt to perform boolean test on a secret value"
    mute = false
    

     

  • Adrenaliinz posted a comment Feb 7, 2026

    UPDATE:

    Addon updated - v6.3.0 - contains this fix

    Just download or update it via your addon manager of choice :)

    Thanks to the author for the quick reaction.

     _____________

     

     

    FAN FIX (unofficial, use at your own risk):

    - Just resolved it. So far no further errors on prepatch for me. Tested in dungeons too.

    - Additionally, I've submitted a pull request on github for the author to review, test and if he's confident in the fix to push it officially. Here's a link to it:  https://github.com/mitchnull/RangeDisplay/pull/9

     

     

    If you wanna try my custom fix, follow these steps:

    1. Find and open the file `RangeDisplay.lua` inside the RangeDisplay addon folder. (You can use any text editor, I use vscode or notepad++ for these things)

    2. On line 231 - Find the function `local function = checkTarget(ud)`

    3. Replace the whole function with this code: https://pastebin.com/3nKf7FJt#3Df72Zqx

    4. Lastly, open the `RangeDisplay.toc` file and make sure 120000,120001 versions are listed on the #Interface line

     

     

    That's it. This is an UNOFFICIAL fix that I made, because I wanted to stop getting errors and still have the addon work for me. 

    You are using this at your own risk if you choose to give it a try, like with all fan fixes. :)

     

    Hope the Author confirms everything's good and publishes an official update, either with mine or any other fix that prevents errors and restores functionality to the addon. 

     

    Have a good one! o/

     

     


    Edited Feb 7, 2026

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