mojira.dev
BDS-10926

Bedrock Server (Ubuntu) crash on Village::getBedPOICount

Steps to reproduce:

  1. Download world at https://drive.google.com/file/d/17cezewkfLQDhh9zkjxpr6vBb2TCgn_FM/view?usp=sharing and extract it

  2. Set it up to be served by a vanilla install of Bedrock server (Ubuntu) v1.16.201, all default settings

  3. Join the server from a Win10 client v1.16.201

  4. Teleport to coordinates 438, 63, 84 (or walk east from the world spawn to reach that point)

  5. Stand there doing nothing for about 20 seconds

Result:

Server crashes with the following message in the console:

 

[2020-12-30 22:43:28 INFO] Starting Server
[2020-12-30 22:43:28 INFO] Version 1.16.201.2
[2020-12-30 22:43:28 INFO] Session ID a70105f4-b251-4bfa-b2ec-c934e67568fa
[2020-12-30 22:43:28 INFO] Level Name: Bedrock level
[2020-12-30 22:43:28 INFO] Game mode: 0 Survival
[2020-12-30 22:43:28 INFO] Difficulty: 1 EASY
[INFO] opening worlds/Bedrock level/db
[INFO] IPv4 supported, port: 19132
[INFO] IPv6 supported, port: 19133
[INFO] IPv4 supported, port: 40149
[INFO] IPv6 supported, port: 41515
[INFO] Server started.
[INFO] Player connected: DroppedHornet19, xuid: 2535444430021753
teleport PlayerName 357 5 84             
Teleported PlayerName to 357.50, 5.00, 84.50
[INFO] Package: com.mojang.minecraft.dedicatedserver
Version: 1.16.201.2
OS: Linux
Server start: 2020-12-30 22:43:28 EST
Dmp timestamp: 2020-12-30 22:44:43 EST
Upload Date: 2020-12-30 22:44:43 EST
Session ID: a70105f4-b251-4bfa-b2ec-c934e67568fa
Commit hash:  
Build id: development
CrashReporter Key: a53a4d64-3972-3525-ac57-bc08e0cd8f32
Crash
[INFO]  at std::__shared_count<[__gnu_cxx::_Lock_policy]2>::__shared_count[std::__weak_count<[__gnu_cxx::_Lock_policy]2> const&, std::nothrow_t] (UnknownFile:?)
        at std::__shared_ptr<POIInstance, [__gnu_cxx::_Lock_policy]2>::__shared_ptr[std::__weak_ptr<POIInstance, [__gnu_cxx::_Lock_policy]2> const&, std::nothrow_t] (UnknownFile:?)
        at std::shared_ptr<POIInstance>::shared_ptr[std::weak_ptr<POIInstance> const&, std::nothrow_t] (UnknownFile:?)
        at std::weak_ptr<POIInstance>::lock[] const (UnknownFile:?)
        at Village::getBedPOICount[] const (UnknownFile:?)
        at Village::tick[Tick, BlockSource&] (UnknownFile:?)
        at VillageManager::tickVillages[Tick const&, Vec3 const&, BlockSource&] (UnknownFile:?)
        at ServerPlayer::tickWorld[Tick const&] (UnknownFile:?)
        at std::function<bool [Player&]>::operator[][Player&] const (UnknownFile:?)
        at Level::forEachPlayer[std::function<bool [Player&]>] (UnknownFile:?)
        at Level::tick[] (UnknownFile:?)
        at ServerLevel::tick[] (UnknownFile:?)
        at GameSession::tick[] (UnknownFile:?)
        at Minecraft::tickSimtime[int, int] (UnknownFile:?)
        at Minecraft::update[] (UnknownFile:?)
        at ServerInstance::_update[] (UnknownFile:?)
        at clone (UnknownFile:?)
a7b6cfa0-6993-4e94-89f1-e63874399b2a

Using the same world file on a Windows bedrock server works fine. Only the Ubuntu server seems to crash.

 

Related issues

Comments

migrated

I have the same issue, using dedicated Bedrock server on Linux, all players report getting disconnected after several minutes of playing, and the server console shows the same error. Seems to occur when invoking the Village:getBedPOICount function. This started earlier this week when the server was on version 1.16.200 – today I tried updating the server to 1.16.201.2 and the issue still persists.

[INFO] Package: com.mojang.minecraft.dedicatedserver
Version: 1.16.201.2
OS: Linux
Server start: 2020-12-31 11:42:33 JST
Dmp timestamp: 2020-12-31 20:27:31 JST
Upload Date: 2020-12-31 20:27:31 JST
Session ID: 6b0ceb56-2e05-4fd7-9603-a77bf7513b84
Commit hash:
Build id: development
CrashReporter Key: 8c4937c1-64cb-3532-a8dc-1deb28f67293

Crash
[INFO] at std::_shared_count<[__gnu_cxx::_Lock_policy]2>::shared_count[std::_weak_count<[__gnu_cxx::_Lock_policy]2> const&, std::nothrow_t] (UnknownFile:?)
at std::_shared_ptr<POIInstance, [__gnu_cxx::_Lock_policy]2>::shared_ptr[std::_weak_ptr<POIInstance, [__gnu_cxx::_Lock_policy]2> const&, std::nothrow_t] (UnknownFile:?)
at std::shared_ptr<POIInstance>::shared_ptr[std::weak_ptr<POIInstance> const&, std::nothrow_t] (UnknownFile:?)
at std::weak_ptr<POIInstance>::lock[] const (UnknownFile:?)
at Village::getBedPOICount[] const (UnknownFile:?)
at Village::tick[Tick, BlockSource&] (UnknownFile:?)
at VillageManager::tickVillages[Tick const&, Vec3 const&, BlockSource&] (UnknownFile:?)
at ServerPlayer::tickWorld[Tick const&] (UnknownFile:?)
at std::function<bool [Player&]>::operator[][Player&] const (UnknownFile:?)
at Level::forEachPlayer[std::function<bool [Player&]>] (UnknownFile:?)
at Level::tick[] (UnknownFile:?)
at ServerLevel::tick[] (UnknownFile:?)
at GameSession::tick[] (UnknownFile:?)
at Minecraft::tickSimtime[int, int] (UnknownFile:?)
at Minecraft::update[] (UnknownFile:?)
at ServerInstance::_update[] (UnknownFile:?)
at clone (UnknownFile:?)

migrated

I have the same issue, using dedicated Bedrock server on Linux, all players report getting disconnected after several minutes of playing, and the server console shows the same error. Seems to occur when invoking the Village:getBedPOICount function. This started earlier this week when the server was on version 1.16.200 – today I tried updating the server to 1.16.201.2 and the issue still persists.

[INFO] Package: com.mojang.minecraft.dedicatedserver
Version: 1.16.201.2
OS: Linux
Server start: 2020-12-31 11:42:33 JST
Dmp timestamp: 2020-12-31 20:27:31 JST
Upload Date: 2020-12-31 20:27:31 JST
Session ID: 6b0ceb56-2e05-4fd7-9603-a77bf7513b84
Commit hash:
Build id: development
CrashReporter Key: 8c4937c1-64cb-3532-a8dc-1deb28f67293

Crash
[INFO] at std::_shared_count<[__gnu_cxx::_Lock_policy]2>::shared_count[std::_weak_count<[__gnu_cxx::_Lock_policy]2> const&, std::nothrow_t] (UnknownFile:?)
at std::_shared_ptr<POIInstance, [__gnu_cxx::_Lock_policy]2>::shared_ptr[std::_weak_ptr<POIInstance, [__gnu_cxx::_Lock_policy]2> const&, std::nothrow_t] (UnknownFile:?)
at std::shared_ptr<POIInstance>::shared_ptr[std::weak_ptr<POIInstance> const&, std::nothrow_t] (UnknownFile:?)
at std::weak_ptr<POIInstance>::lock[] const (UnknownFile:?)
at Village::getBedPOICount[] const (UnknownFile:?)
at Village::tick[Tick, BlockSource&] (UnknownFile:?)
at VillageManager::tickVillages[Tick const&, Vec3 const&, BlockSource&] (UnknownFile:?)
at ServerPlayer::tickWorld[Tick const&] (UnknownFile:?)
at std::function<bool [Player&]>::operator[][Player&] const (UnknownFile:?)
at Level::forEachPlayer[std::function<bool [Player&]>] (UnknownFile:?)
at Level::tick[] (UnknownFile:?)
at ServerLevel::tick[] (UnknownFile:?)
at GameSession::tick[] (UnknownFile:?)
at Minecraft::tickSimtime[int, int] (UnknownFile:?)
at Minecraft::update[] (UnknownFile:?)
at ServerInstance::_update[] (UnknownFile:?)
at clone (UnknownFile:?)

migrated

UPDATE: 01/10/2021 - Purchased server from hosting service and installed world with same result.  

Link to world: 

https://drive.google.com/drive/folders/1GWotbgZMvZrh9RF2f9Fo_AcRAL2MIUHk?usp=sharing

_________________________________________

I'm experiencing the same issue.  I've been running the server in a TrueNAS VM for more than a year with no issue until now. 

VM Specifications:

TrueNAS 12.0 U1

Ubuntu Server 20.4.1

2GB RAM

Up to 3 threads dedicated of Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz

The problem seems to have began with the MC update to 1.16.200 and persists through 1.16.201

Below is my error log:
 
[INFO] Package: com.mojang.minecraft.dedicatedserver
Version: 1.16.201.2
OS: Linux
Server start: 2020-12-31 05:22:19 UTC
Dmp timestamp: 2020-12-31 16:30:24 UTC
Upload Date: 2020-12-31 16:30:24 UTC
Session ID: eaf95c82-8463-412e-88ca-1fdedd2e915e
Commit hash:
Build id: development
CrashReporter Key: 68016d49-2a9e-352f-b7f1-aa9cbceff174

Crash
[INFO] at std::_shared_count<[__gnu_cxx::_Lock_policy]2>::shared_count[std::_weak_count<[__gnu_cxx::_Lock_policy]2> const&, std::nothrow_t] (UnknownFile:?)
at std::_shared_ptr<POIInstance, [__gnu_cxx::_Lock_policy]2>::shared_ptr[std::_weak_ptr<POIInstance, [__gnu_cxx::_Lock_policy]2> const&, std::nothrow_t] (UnknownFile:?)
at std::shared_ptr<POIInstance>::shared_ptr[std::weak_ptr<POIInstance> const&, std::nothrow_t] (UnknownFile:?)
at std::weak_ptr<POIInstance>::lock[] const (UnknownFile:?)
at Village::getBedPOICount[] const (UnknownFile:?)
at Village::tick[Tick, BlockSource&] (UnknownFile:?)
at VillageManager::tickVillages[Tick const&, Vec3 const&, BlockSource&] (UnknownFile:?)
at ServerPlayer::tickWorld[Tick const&] (UnknownFile:?)
at std::function<bool [Player&]>::operator[][Player&] const (UnknownFile:?)
at Level::forEachPlayer[std::function<bool [Player&]>] (UnknownFile:?)
at Level::tick[] (UnknownFile:?)
at ServerLevel::tick[] (UnknownFile:?)
at GameSession::tick[] (UnknownFile:?)
at Minecraft::tickSimtime[int, int] (UnknownFile:?)
at Minecraft::update[] (UnknownFile:?)
at ServerInstance::_update[] (UnknownFile:?)
at clone (UnknownFile:?)
455df768-9ce8-41e6-99c7-357a6df1e25c

 
 

migrated

UPDATE: 01/10/2021 - Purchased server from hosting service and installed world with same result.  

Link to world: 

https://drive.google.com/drive/folders/1GWotbgZMvZrh9RF2f9Fo_AcRAL2MIUHk?usp=sharing

_________________________________________

I'm experiencing the same issue.  I've been running the server in a TrueNAS VM for more than a year with no issue until now. 

VM Specifications:

TrueNAS 12.0 U1

Ubuntu Server 20.4.1

2GB RAM

Up to 3 threads dedicated of Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz

The problem seems to have began with the MC update to 1.16.200 and persists through 1.16.201

Below is my error log:
 
[INFO] Package: com.mojang.minecraft.dedicatedserver
Version: 1.16.201.2
OS: Linux
Server start: 2020-12-31 05:22:19 UTC
Dmp timestamp: 2020-12-31 16:30:24 UTC
Upload Date: 2020-12-31 16:30:24 UTC
Session ID: eaf95c82-8463-412e-88ca-1fdedd2e915e
Commit hash:
Build id: development
CrashReporter Key: 68016d49-2a9e-352f-b7f1-aa9cbceff174

Crash
[INFO] at std::_shared_count<[__gnu_cxx::_Lock_policy]2>::shared_count[std::_weak_count<[__gnu_cxx::_Lock_policy]2> const&, std::nothrow_t] (UnknownFile:?)
at std::_shared_ptr<POIInstance, [__gnu_cxx::_Lock_policy]2>::shared_ptr[std::_weak_ptr<POIInstance, [__gnu_cxx::_Lock_policy]2> const&, std::nothrow_t] (UnknownFile:?)
at std::shared_ptr<POIInstance>::shared_ptr[std::weak_ptr<POIInstance> const&, std::nothrow_t] (UnknownFile:?)
at std::weak_ptr<POIInstance>::lock[] const (UnknownFile:?)
at Village::getBedPOICount[] const (UnknownFile:?)
at Village::tick[Tick, BlockSource&] (UnknownFile:?)
at VillageManager::tickVillages[Tick const&, Vec3 const&, BlockSource&] (UnknownFile:?)
at ServerPlayer::tickWorld[Tick const&] (UnknownFile:?)
at std::function<bool [Player&]>::operator[][Player&] const (UnknownFile:?)
at Level::forEachPlayer[std::function<bool [Player&]>] (UnknownFile:?)
at Level::tick[] (UnknownFile:?)
at ServerLevel::tick[] (UnknownFile:?)
at GameSession::tick[] (UnknownFile:?)
at Minecraft::tickSimtime[int, int] (UnknownFile:?)
at Minecraft::update[] (UnknownFile:?)
at ServerInstance::_update[] (UnknownFile:?)
at clone (UnknownFile:?)
455df768-9ce8-41e6-99c7-357a6df1e25c

 
 

migrated

This is the same as (or very similar to) BDS-10777.

migrated

This is the same as (or very similar to) BDS-10777.

migrated

Same issue as [BDS-11039] (reported before I saw this issue)

migrated

Same issue as BDS-11039 (reported before I saw this issue)

[Mojang] Mega_Spud (Jay)

Thank you for your report!
We're actually already tracking this issue at BDS-10666, so we will resolve and link this ticket as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

[Mojang] Mega_Spud (Jay)

Thank you for your report!
We're actually already tracking this issue at BDS-10666, so we will resolve and link this ticket as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

migrated

(Unassigned)

Unconfirmed

Retrieved