Closed jamiecash closed 9 months ago
I got an almost identical situation, Minecraft Bedrock Dedicated Server on Windows 11. It took me a bit to figure out how to enable the beta API but I figured it out and can let you know how I did it if you'd like.
"
[2023-12-29 08:21:58:417 ERROR] [Scripting] InternalError: interrupted at delete (server/modules/history.js:205)
at delete (server/sessions.js:228)
at
[2023-12-29 08:21:58:423 ERROR] [Scripting] [Watchdog] 3005.370 ms script hang detected in behavior pack 'WorldEdit Bedrock Edition 0.8.4'
[2023-12-29 08:21:58:439 ERROR] [Scripting] ReferenceError: Native function [IPlayerSpawnAfterEventSignal::subscribe] does not have required privileges. at
@jamiecash I just found out I left out a comma in my "world_resource_packs.json", would you double check yours?
This error similarly happens on my Bedrock dedicated server, running on UnRaid. Works just fine, until about 10 minutes after disconnection.
[2024-02-21 04:26:44:617 INFO] Player disconnected: NullHarp5037, xuid: 2535411248540962, pfid: ceb3fdd09ead57b
[2024-02-21 04:32:07:369 INFO] Running AutoCompaction...
[2024-02-21 04:36:47:781 ERROR] [Scripting] InternalError: interrupted at deleteHistoryRegions (server/modules/history.js:215)
at delete (server/modules/history.js:206)
at delete (server/sessions.js:228)
at
[2024-02-21 04:36:47:781 ERROR] [Scripting] [Watchdog] 3001.135 ms script hang detected in behavior pack 'WorldEdit Bedrock Edition 0.8.5'
[2024-02-21 04:36:47:781 ERROR] [Scripting] ReferenceError: Native function [IPlayerSpawnAfterEventSignal::subscribe] does not have required privileges. at
EDIT Being that I run the dedicated server that I'm getting this error on, I did some investigating based on the symptoms of the error/hangup. By modifying the "ticksToDeleteSession" time in the behavior_packs/WorldEditB/scripts/config.js to a larger number, it extends the time that elapses before this part runs, and by modifying it to 1 Day instead of 10 minutes (used a tick calculator, and someone generally logs into my server within 14-18 hours max) it has successfully retained functionality past the 10 minute interval of no-player activity.
What would be the repercussions of leaving this as is, extending the time further, or commenting this line out entirely?
Is there an existing issue for this?
Current behaviour
When installed on a bedrock server under AMP, 10 minutes after leaving the game, when the delete history function runs, the server displays the following errors:
The worldedit commands no longer work after these errors.
Expected behaviour
The commands to continue to work after the player leaves the game and re-joins after more than 10 minutes.
Steps to reproduce
Content logs
No response
Minecraft version
1.20
Device and operating system
Server: Ubuntu. Client: Android
Additional info
No response