Headless Server tries to return to main menu on failing to start game #4960
Labels
Category: Crash
Requests, Issues and Changes targeting unexpected terminations, segfaults, etc.
Status: Needs Investigation
Requires to be debugged or checked for feasibility, etc.
Topic: Stabilization
Requests, Issues and Changes related to improving stablity and reducing flakyness
Type: Bug
Issues reporting and PRs fixing problems
What you were trying to do
Start a headless server and override its default configuration.
./gradlew server --args="--override-default-config=override.cfg"
What actually happened
The server failed to start the game and crashed.
How to reproduce
./gradlew server
and notice that the server starts successfully--homedir
results in server not finding modules #4958:./gradlew server --args="--override-default-config=override.cfg"
[main] WARN o.t.e.c.m.loadProcesses.RegisterMods - Missing at least one required module (or dependency) from the following list: [BiomesAPI, Thirst, StructureTemplates, Furnishings, CoreRendering, AnotherWorld, Health, CoreSampleGameplay, Inventory, Explosives, CoreWorlds, CoreAdvancedAssets, Drops, StructuralResources, AnotherWorldPlants, engine, ClimateConditions, AlterationEffects, Fluid, CoreAssets, PlantPack, GrowingFlora]
org.terasology.engine.rendering.nui.internal.TerasologyCanvasImpl.<init>(TerasologyCanvasImpl.java:42)
Log details
Full logs at https://pastebin.com/EN0hZTha
Additional Info
The current assumption is that on failing to start a game, the server attempts to go back to the main menu.
Since #4907, the headless server does not have a
NuiManager
anymore which is why it runs into an NPE at this point.Note, that for reproducing this, you might need to take additional actions due to #4956 and #4957 or find a different way to provoke the game start failure in case #4958 has been fixed.
The text was updated successfully, but these errors were encountered: