mojira.dev
MCPE-63387

mcstructure files saved with entities crash game when loaded in world

Loading structures in game with structure_template_feature works great if no entities are included in the structure_block save.

However, If the Include Entities switch is turned on structures will crash the game when loaded.

I am including as an example a test structure saved twice. Once with Include Entities On, Then with Include Entities Off. (this is the only difference)

Entities in the structure include cows, sheep, rabbits, villager and an armor stand. I have done multiple tests and it does not matter which entities are in the structure. Any entity makes it crash the game.

If more examples are needed or you want to play around with variations this site creates add-ons from mcstructure files real quick. https://bedrockdownloads.com/structures.aspx

 

Linked issues

Attachments

Comments 23

Did you create those structure files from that site? https://bedrockdownloads.com/structures.aspx

Because they tell you right on the front page that you can't save entities with it...

yep, this is the bug it is referring to on that site.

this is still an issue that crashes beta 1.15.0.53. I do have some additional information to provide based upon testing.

I was successful in loading these structures in some worlds without crashing right away. ultimately the game would crash while flying around though.

I was also able to create a void world by overriding the standard biomes and structures with entities load perfectly without crashing... 

based upon the tests above and others conducted with different game modes to eliminate entities and such i concluded that it is not the structure file that makes it crash.

It would seem the game crashes when a structure (having entities) is loaded in a chunk that already contains entities. If the chunk does not have entities the structure loads just fine.

hope it helps

 

 

 

 

Can not do any structure loading until this is fixed. 😞

Looks like new structures were added to game using the old nbt method.  where does fixing the mcstructures fit in roadmap ?

13 more comments

Beta  1.16.200.56 Using test_house_entities.mcpack attached..

  • Still Crashes game on Windows 10

  • Still works fine on Android

Wow just realized its been 9 months.

Beta  1.16.200.57 Using test_house_entities.mcpack attached..

  • Still Crashes game on Windows 10

  • Still works fine on Android

Beta  1.16.210.50 Using test_house_entities.mcpack attached..

  • Still Crashes game on Windows 10

  • Still works fine on Android

Crash report if this helps.

11.12 00:07:27 [Server] INFO terminate called after throwing an instance of 'std::bad_function_call'
11.12 00:07:27 [Server] INFO what(): bad_function_call
11.12 00:07:27 [Server] INFO [INFO] Package: com.mojang.minecraft.dedicatedserver
11.12 00:07:27 [Server] INFO Version: 1.16.200.2
11.12 00:07:27 [Server] INFO OS: Linux
11.12 00:07:27 [Server] INFO Server start: 2020-12-10 19:07:13 UTC
11.12 00:07:27 [Server] INFO Dmp timestamp: 2020-12-11 06:07:27 UTC
11.12 00:07:27 [Server] INFO Upload Date: 2020-12-11 06:07:27 UTC
11.12 00:07:27 [Server] INFO Session ID: 78f25228-5e28-4737-bb3e-2828da9d04f2
11.12 00:07:27 [Server] INFO Commit hash:
11.12 00:07:27 [Server] INFO Build id: development
11.12 00:07:27 [Server] INFO CrashReporter Key: 8c4937c1-64cb-3532-a8dc-1deb28f67293
11.12 00:07:27 [Server] INFO Crash
11.12 00:07:27 [Server] INFO [INFO] at gsignal (UnknownFile:?)
11.12 00:07:27 [Server] INFO at abort (UnknownFile:?)
11.12 00:07:27 [Server] INFO at std::function<EventResult [gsl::not_null<ActorEventListener*>]>::operator[][gsl::not_null<ActorEventListener*>] const (UnknownFile:?)
11.12 00:07:27 [Server] INFO at EventCoordinator<ActorEventListener>::processEvent[std::function<EventResult [gsl::not_null<ActorEventListener*>]>] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at ActorEventCoordinator::sendActorEquippedArmor[Actor&, ItemInstance const&, ArmorSlot] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at Actor::setArmor[ArmorSlot, ItemStack const&] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at Mob::_loadArmor[ListTag const*] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at Mob::readAdditionalSaveData[CompoundTag const&, DataLoadHelper&] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at VillagerBase::readAdditionalSaveData[CompoundTag const&, DataLoadHelper&] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at Actor::load[CompoundTag const&, DataLoadHelper&] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at ActorFactory::loadEntity[CompoundTag*, DataLoadHelper&, DimensionHeightRange const&, LevelChunk const*] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at StructureTemplate::_placeEntitiesInWorld[BlockSource&, DataLoadHelper&, bool] const (UnknownFile:?)
11.12 00:07:27 [Server] INFO at StructureTemplate::placeInWorld[BlockSource&, BlockPalette const&, BlockPos const&, StructureSettings const&, StructureTelemetryServerData*, bool] const (UnknownFile:?)
11.12 00:07:27 [Server] INFO at WorldBlockTarget::placeStructure[BlockPos const&, StructureTemplate&, StructureSettings&] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at StructureTemplateFeature::place[IBlockWorldGenAPI&, BlockPos const&, Random&, RenderParams&] const (UnknownFile:?)
11.12 00:07:27 [Server] INFO at BiomeDecorationSystem::decorate[LevelChunk&, BlockSource&, Random&, gsl::span<BiomeDecorationFeature, -1l>] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at BiomeDecorationSystem::decorate[Biome&, LevelChunk&, BlockSource&, Random&] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at OverworldGenerator::postProcess[ChunkViewSource&] (UnknownFile:?)
11.12 00:07:28 [Multicraft] Server shut down (running)
11.12 00:07:28 [Multicraft] Restarting crashed server in 300 seconds
11.12 00:07:28 [Multicraft] Looks like a crash, check the server console. Return value: 1
11.12 00:07:28 [Multicraft] Server stopped

This will be my last test and entry. After 10 months, with not the slightest progress, I am giving up on reporting and following these bugs.. good luck.

Beta  1.16.210.53 Using test_house_entities.mcpack attached..

  • Still Crashes game on Windows 10

  • Still works fine on Android

 

Zephira

(Unassigned)

423534

Confirmed

Multiple

Windows 10

1.16.210.53 Beta, 1.16.210.51 Beta, 1.16.210.50 Beta, 1.16.30.57 RTX Beta, 1.16.200.57 Beta, ..., 1.16.50 Hotfix (iOS), 1.16.40 Hotfix, 1.16.100.59 Beta, 1.16.100, 1.16.201 Hotfix

1.16.210.56 Beta, 1.16.210

Retrieved