Demoplay asserts

In the editor if we follow the following steps in the ThirdPersonExample we get an assert:

  • Play in editor
  • Start recording a replay by typing “demorec test” in the console
  • Walk around for a bit
  • Stop recording by typing “demostop” in the console
  • Play the recorded demo by typing “demoplay test”

We build our engine from 4.20.3 source.
Tried the same steps in 4.20.0 where it asserts and 4.19.2 where it doesn’t assert.

What I’ve found out is:
The assert happens in a call to UWorld::GetMatineeActors from APlayerController::InitInputSystem.
Because IsGameWorld() does not return true, the WorldType is editor which seems to indicate that we’re trying to initialize an actor in the wrong UWorld.

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://epicsupport.force.com/unrealengine/s/

Thanks