After save level, error: WorldSettings != nullptr

Hello.

Steps of reproducing:

  1. Creating blueprints TPS sample game.
  2. Compiling dedicated server (Shipping version).
  3. Opening compiled UE 4.16 Editor.
  4. Open the World Settings Window (from the editor menu). The world settings persist and could be chargeable.
  5. Press Play (1 client and Selected Viewport mode - it important).
  6. Connecting to dedicated server. It works. The server/game works.
  7. Pressing Esc to stop the game.
  8. The World Settings Window is empty - settings and properties disappear.
  9. Pressing Save Level. See following fatal error:

Assertion failed: WorldSettings != nullptr
[File:UnrealEngine-4.16\Engine\Source\Runtime\Engine\Private\Level.cpp][Line:
1643]
/Game/Maps/UEDPIE_0_ThirdPersonExampleMap.ThirdPersonExampleMap:PersistentLevel

If I don’t connect to dedicated server and stop the game the world settings won’t disappear.

Thank you.

I am also interrested in a solution here.

This issue also happends when with the following steps :

  • Open the project in the editor, open the wanted map
  • Launch a server through command line using UE4Editor.exe [ProjectName].uproject [MapName]?listen -game
  • Launch PIE from editor (I tried VR mode and New Editor Window, got the bug in both cases)
  • Connect to the server using open 127.0.0.1
  • It works fine up to this point
  • Close PIE, kill server with Alt+F4
  • Try saving the map in the editor. It crashes with the same error message.