Mojira Archive
MCPE-169328

Scripting API: ReferenceError on repeated use of /reload

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.

Unresolved

BaumV1nn1

2023-04-07, 02:30 AM

2024-03-25, 09:31 AM

1

0

Confirmed

1098256

Script-API

1.19.73

-