Skip to content

Loading game after start new game from menu make editor crashΒ #116

@Rcurreli

Description

@Rcurreli

Hi, I'm experiencing a crash in the editor that might be related to other issues. This happens ONLY in the editor under specific conditions:

1)Start a new game from the menu map (using afterlevelload)
2)Save the game at the start of the main map
3)Load the saved game (which loads the main map again)

After SPUD calls WorldPackage = LoadPackage(nullptr, *LevelName, LOAD_None); at line 566 in SpudSubsystem.cpp, the game crashes every time with the following assertion failure:

Assertion failed: ActiveDataLayerNames.IsEmpty() && LoadedDataLayerNames.IsEmpty() [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\WorldPartition\DataLayer\WorldDataLayers.cpp] [Line: 165]

The crash occurs only after starting a new game from the menu map.
If I start directly from the main map or load a previous save directly from the menu map, it works fine.
Also starting a new game from the main map (making play from here) and then loading works without issues.

When starting the new map, I noticed some data layers are activated momentarily before they are unloaded and the game starts normally. All data layers have their start runtime state set to unload, even in the editor. I don t know if could be this the cause, of course not happening in shipping build.

This issue is not blocking, but understanding the cause would help in testing the normal use case in the editor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions