SIsilicon / WorldEdit-BE

A Minecraft Bedrock addon port of the famous WorldEdit mod for Minecraft: Java Edition.
GNU General Public License v3.0
264 stars 34 forks source link

Scripting Error #272

Open captaindopesauce opened 2 weeks ago

captaindopesauce commented 2 weeks ago

Is there an existing issue for this?

Current behaviour

World Edit addon is inoperable on the server side, server console show several, rapid errors. Server still shows world edit items but they have no function. This started on randomly on 1.21.0, but still on 1.21.1. Attempted to use a different server with the same error patterns.

Expected behaviour

Normal Function

Steps to reproduce

No response

Content logs

Server Logs

2024-06-21 17:16:42,375 DEBG 'webui-script' stderr output:

2024/06/21 17:16:42 Basic Authentication Succeeded: 192.168.1.163:56892

2024-06-21 17:16:42,376 DEBG 'webui-script' stderr output: 2024/06/21 17:16:42 192.168.1.163:56892 200 GET /

2024-06-21 17:16:42,477 DEBG 'webui-script' stderr output: 2024/06/21 17:16:42 Basic Authentication Succeeded: 192.168.1.163:56892

2024-06-21 17:16:42,478 DEBG 'webui-script' stderr output: 2024/06/21 17:16:42 192.168.1.163:56892 200 GET /css/index.css

2024-06-21 17:16:42,489 DEBG 'webui-script' stderr output: 2024/06/21 17:16:42 Basic Authentication Succeeded: 192.168.1.163:56896 2024/06/21 17:16:42 Basic Authentication Succeeded: 192.168.1.163:56897

2024-06-21 17:16:42,489 DEBG 'webui-script' stderr output: 2024/06/21 17:16:42 192.168.1.163:56896 200 GET /css/xterm_customize.css

2024-06-21 17:16:42,489 DEBG 'webui-script' stderr output: 2024/06/21 17:16:42 192.168.1.163:56897 200 GET /css/xterm.css 2024/06/21 17:16:42 Basic Authentication Succeeded: 192.168.1.163:56892 2024/06/21 17:16:42 192.168.1.163:56892 200 GET /auth_token.js

2024-06-21 17:16:42,492 DEBG 'webui-script' stderr output: 2024/06/21 17:16:42 Basic Authentication Succeeded: 192.168.1.163:56895 2024/06/21 17:16:42 192.168.1.163:56895 200 GET /config.js

2024-06-21 17:16:42,492 DEBG 'webui-script' stderr output: 2024/06/21 17:16:42 Basic Authentication Succeeded: 192.168.1.163:56894

2024-06-21 17:16:42,528 DEBG 'webui-script' stderr output: 2024/06/21 17:16:42 192.168.1.163:56894 200 GET /js/gotty.js

2024-06-21 17:16:43,014 DEBG 'webui-script' stderr output: 2024/06/21 17:16:43 New client connected: 192.168.1.163:56898, connections: 1/0

2024-06-21 17:16:43,084 DEBG 'webui-script' stderr output: 2024/06/21 17:16:43 Basic Authentication Succeeded: 192.168.1.163:56894

2024-06-21 17:16:43,085 DEBG 'webui-script' stderr output: 2024/06/21 17:16:43 192.168.1.163:56894 200 GET /favicon.ico

2024-06-21 17:17:40,187 DEBG 'webui-script' stderr output: 2024/06/21 17:17:40 Connection closed by client: 192.168.1.163:56898, connections: 0/0

2024-06-21 17:28:54,654 DEBG 'webui-script' stderr output: 2024/06/21 17:28:54 Basic Authentication Succeeded: 192.168.1.163:57038

2024-06-21 17:28:54,655 DEBG 'webui-script' stderr output: 2024/06/21 17:28:54 192.168.1.163:57038 200 GET /

2024-06-21 17:28:54,684 DEBG 'webui-script' stderr output: 2024/06/21 17:28:54 Basic Authentication Succeeded: 192.168.1.163:57038 2024/06/21 17:28:54 192.168.1.163:57038 200 GET /css/index.css

2024-06-21 17:28:54,687 DEBG 'webui-script' stderr output: 2024/06/21 17:28:54 Basic Authentication Succeeded: 192.168.1.163:57038

2024-06-21 17:28:54,688 DEBG 'webui-script' stderr output: 2024/06/21 17:28:54 Basic Authentication Succeeded: 192.168.1.163:57039

2024-06-21 17:28:54,688 DEBG 'webui-script' stderr output: 2024/06/21 17:28:54 192.168.1.163:57039 200 GET /css/xterm_customize.css 2024/06/21 17:28:54 192.168.1.163:57038 200 GET /css/xterm.css

2024-06-21 17:28:54,695 DEBG 'webui-script' stderr output: 2024/06/21 17:28:54 Basic Authentication Succeeded: 192.168.1.163:57039 2024/06/21 17:28:54 192.168.1.163:57039 200 GET /auth_token.js

2024-06-21 17:28:54,695 DEBG 'webui-script' stderr output: 2024/06/21 17:28:54 Basic Authentication Succeeded: 192.168.1.163:57038 2024/06/21 17:28:54 192.168.1.163:57038 200 GET /config.js

2024-06-21 17:28:54,696 DEBG 'webui-script' stderr output: 2024/06/21 17:28:54 Basic Authentication Succeeded: 192.168.1.163:57040

2024-06-21 17:28:54,729 DEBG 'webui-script' stderr output: 2024/06/21 17:28:54 192.168.1.163:57040 200 GET /js/gotty.js

2024-06-21 17:28:55,166 DEBG 'webui-script' stderr output: 2024/06/21 17:28:55 New client connected: 192.168.1.163:57041, connections: 1/0

2024-06-21 17:28:55,231 DEBG 'webui-script' stderr output: 2024/06/21 17:28:55 Basic Authentication Succeeded: 192.168.1.163:57040

2024-06-21 17:28:55,233 DEBG 'webui-script' stderr output: 2024/06/21 17:28:55 192.168.1.163:57040 200 GET /favicon.ico

Console response (minimal due to console limits)

at PlayerSession (server/sessions.js:76)

at getSession (server/sessions.js:256) at makeBuilder (server/index.js:72) at (server/index.js:41) at (library/classes/eventEmitter.js:60) at forEach (native) at emit (library/classes/eventEmitter.js:59) at (library/Minecraft.js:148)

[2024-06-21 17:17:56:345 ERROR] [Scripting] SyntaxError: unexpected end of string at :1 at parse (native) at Database (library/classes/databaseBuilder.js:12) at PlayerSession (server/sessions.js:76) at getSession (server/sessions.js:256) at makeBuilder (server/index.js:72) at (server/index.js:41) at (library/classes/eventEmitter.js:60) at forEach (native) at emit (library/classes/eventEmitter.js:59) at (library/Minecraft.js:148)

[2024-06-21 17:17:56:394 ERROR] [Scripting] SyntaxError: unexpected end of string at :1 at parse (native) at Database (library/classes/databaseBuilder.js:12) at PlayerSession (server/sessions.js:76) at getSession (server/sessions.js:256) at makeBuilder (server/index.js:72) at (server/index.js:41) at (library/classes/eventEmitter.js:60) at forEach (native) at emit (library/classes/eventEmitter.js:59) at (library/Minecraft.js:148)

[2024-06-21 17:17:56:444 ERROR] [Scripting] SyntaxError: unexpected end of string at :1 at parse (native) at Database (library/classes/databaseBuilder.js:12) at PlayerSession (server/sessions.js:76) at getSession (server/sessions.js:256) at makeBuilder (server/index.js:72) at (server/index.js:41) at (library/classes/eventEmitter.js:60) at forEach (native) at emit (library/classes/eventEmitter.js:59) at (library/Minecraft.js:148)

Minecraft version

1.21.1

Device and operating system

Windows 11

Additional info

https://github.com/SIsilicon/WorldEdit-BE/assets/95725141/f387428b-a780-4075-bb70-d4660ac1842f

Linked is a video showing the original console window seeming to load correctly with the server, then producing the rapid errors.

SIsilicon commented 1 week ago

Hmm it seems to be when the game attempts to load any created gradients. Has anyone ever made any gradients in the world the server is loading?

captaindopesauce commented 1 week ago

I did, as kind of a test to see how exactly it operated, additionally I set I believe one brush as a gradient.

Even though the addon is currently failing, the generated gradients themselves that I have used are still present. The only thing that I have NOT tried is to backup the world, clear the server entirely and reinstall, then reupload as I would/did in the very beginning - theoretically if the fault is happening in created/stored gradients, then it should erase those by default with a new installation correct?

captaindopesauce commented 1 week ago

So it seems like something has become corrupt with my world with whatever error is causing this. Making new worlds and adding world edit seems to be fine, even moving the files and installing a NEW world on my server works fine - but as soon as I restore my world DB files, it seems to break it. Unfortunately, my server is active, and my backups only save the 10 most recent world changes so going back at this point is not an option. Have you seen this happen before?