Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-169328

Scripting API: ReferenceError on repeated use of /reload

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.73
    • Confirmed
    • Windows
    • 1098256

      Typing /reload about 140 times causes the following error to appear:

      ReferenceError: Native object bound to prototype does not exist. at Vector (native)

       

      manifest.json of behavior pack included:

      "module_name": "@minecraft/server",
                  "version": "1.1.0-beta"
       
      Scriptfile contained:
      import { world, Vector} from "@minecraft/server";

      // create new Vector
      let vec = new Vector(0, 0, 0)

      // count the reloads
      world.getDimension(`overworld`).runCommandAsync(`scoreboard objectives add reload dummy`)
      world.getDimension(`overworld`).runCommandAsync(`scoreboard objectives setdisplay sidebar reload`)
      world.getDimension(`overworld`).runCommandAsync(`scoreboard players add @a reload 1`)

       
       
       
       
      Beta APIs were enabled.
       

      Edit:
      First I was able to recreate this bug consistently at the 140-reloads mark, however now as I am uploading the behavior Pack I am able to consistently recreate this bug across different world seeds at the 145-reloads mark.

      I have no Idea why it happens at 145 now, not 140.

      Leaving and rejoining the world fixes the issue until you type /reload the certain amount of times again.

      To recreate use the behavior pack I provided in a new world which has Beta APIs enabled and type /reload until the error appears.

        1. behavior_pack.mcpack
          7 kB
          BaumV1nn1
        2. pic1.png
          1.58 MB
          BaumV1nn1

            BaumV1nn1 BaumV1nn1
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              CHK: