Unable to join the server: free(): invalid next size (normal)
petrodcas opened this issue · 2 comments
Everytime a player tries to join the server, the following message is shown in the log, making the server inaccesible:
free(): invalid next size (normal)
Looks like a C++ sort of problem, so I'm guessing it is a server related thing and not docker, but since I'm unsure, I'm bringing it up.
Everytime this happens, the only solution I find is deleting the world and starting a new one.
Just in case is relevant:
- Architecture: ARM64
- CPU: 16 threads
- RAM: 16GB
- Operating system: "Ubuntu 22.04.3 LTS"
- Full log:
DEBU[0000] Using /data to match uid and gid DEBU[0000] Resolved 1000 from environment variable UID DEBU[0000] Resolved 1000 from environment variable GID Looking up latest version... Setting allow list Starting Bedrock server... NO LOG FILE! - setting up server logging... [2024-01-14 23:49:14:025 INFO] Starting Server [2024-01-14 23:49:14:025 INFO] Version: 1.20.51.01 [2024-01-14 23:49:14:025 INFO] Session ID: ae4cdfb6-fe11-4add-b22f-7ea3127ef83d [2024-01-14 23:49:14:025 INFO] Build ID: 20414424 [2024-01-14 23:49:14:026 INFO] Branch: r/20_u5 [2024-01-14 23:49:14:026 INFO] Commit ID: 62ad6027dc354090f841dd996363408bb43fdfd4 [2024-01-14 23:49:14:026 INFO] Configuration: Publish [2024-01-14 23:49:14:031 INFO] Level Name: L@s Matapuercos [2024-01-14 23:49:14:040 INFO] No CDN config file found for dedicated server [2024-01-14 23:49:14:041 INFO] Game mode: 0 Survival [2024-01-14 23:49:14:041 INFO] Difficulty: 2 NORMAL [2024-01-14 23:49:14:052 INFO] Content logging to console is enabled. [2024-01-14 23:49:16:294 INFO] Content logging to disk is enabled. Writing log to: ContentLog__Sunday__2024_January_14__23_49_16 [2024-01-14 23:49:16:301 INFO] Opening level 'worlds/L@s Matapuercos/db' [2024-01-14 23:49:25:486 INFO] IPv4 supported, port: 19132: Used for gameplay and LAN discovery [2024-01-14 23:49:25:486 INFO] IPv6 not supported [2024-01-14 23:49:25:608 INFO] Server started. [2024-01-14 23:49:25:612 INFO] ================ TELEMETRY MESSAGE =================== [2024-01-14 23:49:25:612 INFO] Server Telemetry is currently not enabled. [2024-01-14 23:49:25:612 INFO] Enabling this telemetry helps us improve the game. [2024-01-14 23:49:25:612 INFO] [2024-01-14 23:49:25:612 INFO] To enable this feature, add the line 'emit-server-telemetry=true' [2024-01-14 23:49:25:612 INFO] to the server.properties file in the handheld/src-server directory [2024-01-14 23:49:25:612 INFO] ====================================================== [2024-01-14 23:51:57:146 INFO] Player connected: KezoTheCabra, xuid: xxxxxxxxxxxxxxxxxx free(): invalid next size (normal) DEBU[0327] Forwarding signal signal=terminated DEBU[0327] Sending message on stdin due to SIGTERM message=stop DEBU[0000] Using /data to match uid and gid DEBU[0000] Resolved 1000 from environment variable UID DEBU[0000] Resolved 1000 from environment variable GID Looking up latest version... Setting allow list Starting Bedrock server... NO LOG FILE! - setting up server logging... [2024-01-14 23:54:53:829 INFO] Starting Server [2024-01-14 23:54:53:829 INFO] Version: 1.20.51.01 [2024-01-14 23:54:53:829 INFO] Session ID: 5e3ebb29-6d27-49e9-b9d3-e4ae522e8dc4 [2024-01-14 23:54:53:829 INFO] Build ID: 20414424 [2024-01-14 23:54:53:829 INFO] Branch: r/20_u5 [2024-01-14 23:54:53:829 INFO] Commit ID: 62ad6027dc354090f841dd996363408bb43fdfd4 [2024-01-14 23:54:53:829 INFO] Configuration: Publish [2024-01-14 23:54:53:836 INFO] Level Name: L@s Matapuercos [2024-01-14 23:54:53:845 INFO] No CDN config file found for dedicated server [2024-01-14 23:54:53:845 INFO] Game mode: 0 Survival [2024-01-14 23:54:53:845 INFO] Difficulty: 2 NORMAL [2024-01-14 23:54:53:858 INFO] Content logging to console is enabled. [2024-01-14 23:54:54:073 INFO] Content logging to disk is enabled. Writing log to: ContentLog__Sunday__2024_January_14__23_54_54 [2024-01-14 23:54:54:080 INFO] Opening level 'worlds/L@s Matapuercos/db' [2024-01-14 23:55:01:388 INFO] IPv4 supported, port: 19132: Used for gameplay and LAN discovery [2024-01-14 23:55:01:388 INFO] IPv6 not supported [2024-01-14 23:55:01:613 INFO] Server started. [2024-01-14 23:55:01:626 INFO] ================ TELEMETRY MESSAGE =================== [2024-01-14 23:55:01:626 INFO] Server Telemetry is currently not enabled. [2024-01-14 23:55:01:626 INFO] Enabling this telemetry helps us improve the game. [2024-01-14 23:55:01:626 INFO] [2024-01-14 23:55:01:626 INFO] To enable this feature, add the line 'emit-server-telemetry=true' [2024-01-14 23:55:01:626 INFO] to the server.properties file in the handheld/src-server directory [2024-01-14 23:55:01:626 INFO] ====================================================== [2024-01-14 23:55:28:027 INFO] Player connected: KezoTheCabra, xuid: xxxxxxxxxxxxxxxxxx free(): invalid next size (normal)
- Docker compose file:
version: "3" services: minecraft-server: container_name: minecraft-server image: itzg/minecraft-bedrock-server:latest tty: true stdin_open: true ports: - "192.168.1.127:19132:19132/udp" - "192.168.1.127:19132:19132/tcp" environment: EULA: TRUE VERSION: LATEST UID: 1000 GID: 1000 SERVER_NAME: 'L@s Matapuercos' SERVER_PORT: 19132 GAMEMODE: "survival" DIFFICULTY: "normal" LEVEL_NAME: 'L@s Matapuercos' ONLINE_MODE: TRUE ALLOW_LIST_USERS: "KezoTheCabra" volumes: - ./minecraft-bedrock-server/losmatapuercos:/data' restart: always
Definitely unrelated to docker. You may want to search Mojang's issue tracker.
Otherwise try https://docker-minecraft-server.readthedocs.io/en/latest/misc/examples/#bedrock-compatible-server
Thanks for the answer!
I'll keep on looking through that path.
A new error showed up after deleting the docker volumes, which was:
libc++abi: terminating due to uncaught exception of type std::__1::system_error: Operation not permitted
So definitely a server error.