Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash during Settlement Generation #188

Open
a-ivanov opened this issue Jul 19, 2024 · 1 comment
Open

Crash during Settlement Generation #188

a-ivanov opened this issue Jul 19, 2024 · 1 comment
Labels
Category: Gameplay Content Requests, Issues and Changes targeting gameplay mechanics and content Good First Issue Good for learners that are new to Terasology Status: Needs Investigation Requires to be checked for feasibility, reproducability, etc. Topic: Stabilization Requests, Issues and Changes related to improving stablity and reducing flakyness Type: Bug Issues reporting and PRs fixing problems

Comments

@a-ivanov
Copy link

Playing MetalRenegades in Singleplayer. Just travelled around the world, no interaction whatsoever. Then the game suddenly crashed:

java.lang.NullPointerException: Cannot read field "builtUpRadius" because "parcels" is null
	at org.terasology.dynamicCities.settlements.SettlementEntityManager.checkOutsideAllSettlements(SettlementEntityManager.java:262)
	at org.terasology.metalrenegades.combat.system.AnimalSpawnSystem.isValidSpawnPosition(AnimalSpawnSystem.java:52)
	at org.terasology.wildAnimals.system.WildAnimalsSpawnSystem.findFlockAnimalSpawnPositions(WildAnimalsSpawnSystem.java:161)
	at org.terasology.wildAnimals.system.WildAnimalsSpawnSystem.tryFlockAnimalSpawn(WildAnimalsSpawnSystem.java:127)
	at org.terasology.wildAnimals.system.WildAnimalsSpawnSystem.onChunkGenerated(WildAnimalsSpawnSystem.java:117)
	at org.terasology.wildAnimals.system.WildAnimalsSpawnSystemMethodAccess.invoke(Unknown Source)
	at org.terasology.engine.entitySystem.event.internal.EventSystemImpl$ByteCodeEventHandlerInfo.invoke(EventSystemImpl.java:399)
	at org.terasology.engine.entitySystem.event.internal.EventSystemImpl.sendStandardEvent(EventSystemImpl.java:264)
	at org.terasology.engine.entitySystem.event.internal.EventSystemImpl.send(EventSystemImpl.java:255)
	at org.terasology.engine.core.bootstrap.eventSystem.AbstractEventSystemDecorator.send(AbstractEventSystemDecorator.java:67)
	at org.terasology.engine.network.NetworkEventSystemDecorator.send(NetworkEventSystemDecorator.java:54)
	at org.terasology.engine.core.bootstrap.eventSystem.AbstractEventSystemDecorator.send(AbstractEventSystemDecorator.java:67)
	at org.terasology.engine.recording.RecordingEventSystemDecorator.send(RecordingEventSystemDecorator.java:32)
	at org.terasology.engine.entitySystem.entity.internal.BaseEntityRef.send(BaseEntityRef.java:188)
	at org.terasology.engine.world.chunks.localChunkProvider.LocalChunkProvider.processReadyChunk(LocalChunkProvider.java:213)
	at org.terasology.engine.world.chunks.localChunkProvider.LocalChunkProvider.update(LocalChunkProvider.java:239)
	at org.terasology.engine.rendering.world.RenderableWorldImpl.update(RenderableWorldImpl.java:176)
	at org.terasology.engine.rendering.world.WorldRendererImpl.preRenderUpdate(WorldRendererImpl.java:285)
	at org.terasology.engine.rendering.world.WorldRendererImpl.render(WorldRendererImpl.java:325)
	at org.terasology.engine.core.modes.StateIngame.render(StateIngame.java:222)
	at org.terasology.engine.core.subsystem.lwjgl.LwjglGraphics.postUpdate(LwjglGraphics.java:79)
	at org.terasology.engine.core.TerasologyEngine.tick(TerasologyEngine.java:522)
	at org.terasology.engine.core.TerasologyEngine.mainLoop(TerasologyEngine.java:473)
	at org.terasology.engine.core.TerasologyEngine.runMain(TerasologyEngine.java:449)
	at org.terasology.engine.core.TerasologyEngine.run(TerasologyEngine.java:415)
	at org.terasology.engine.Terasology.call(Terasology.java:189)
	at org.terasology.engine.Terasology.call(Terasology.java:69)
	at picocli.CommandLine.executeUserObject(CommandLine.java:1933)
	at picocli.CommandLine.access$1200(CommandLine.java:145)
	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2332)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2326)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2291)
	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2159)
	at picocli.CommandLine.execute(CommandLine.java:2058)
@jdrueckert jdrueckert added Type: Bug Issues reporting and PRs fixing problems Category: Gameplay Content Requests, Issues and Changes targeting gameplay mechanics and content Status: Needs Investigation Requires to be checked for feasibility, reproducability, etc. Topic: Stabilization Requests, Issues and Changes related to improving stablity and reducing flakyness Good First Issue Good for learners that are new to Terasology labels Jul 26, 2024
@jdrueckert
Copy link
Member

Hi @a-ivanov
Thanks for reporting that!
When you travel through a MetalRenegades world, settlements will be spawned for you to explore.
Looks like there's a bug in the settlement generation.

Right now we're still busy with reviving our engine, so I don't know yet when we'll get to investigating this, but it's great that you found and reported it 💚 This way it can be picked up by any interested party meanwhile or we can pick it up once we get back to gameplay/module work

@jdrueckert jdrueckert changed the title Crash on travelling around the world Bug in Settlement Generation Jul 26, 2024
@jdrueckert jdrueckert changed the title Bug in Settlement Generation Crash during Settlement Generation Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Gameplay Content Requests, Issues and Changes targeting gameplay mechanics and content Good First Issue Good for learners that are new to Terasology Status: Needs Investigation Requires to be checked for feasibility, reproducability, etc. Topic: Stabilization Requests, Issues and Changes related to improving stablity and reducing flakyness Type: Bug Issues reporting and PRs fixing problems
Projects
None yet
Development

No branches or pull requests

2 participants