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 when loading save of level different than current one #70

Open
SkacikPL opened this issue Jul 14, 2021 · 1 comment
Open

Crash when loading save of level different than current one #70

SkacikPL opened this issue Jul 14, 2021 · 1 comment
Assignees
Labels
Bug Something isn't working To Be Reproduced Has not been reproduced

Comments

@SkacikPL
Copy link

SkacikPL commented Jul 14, 2021

Describe the bug
Whenever a save is loaded from a different level than one in saved game the engine will crash with following assertion:
Assertion failed: IsInGameThread() [File:L:/4.25 Source/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectGlobals.cpp] [Line: 1066] Unable to load /Game/Weapons/Axe. Objects and Packages can only be loaded from the game thread.
Object that "fails" to load will be any actor class from list of actors to be serialized.

To Reproduce
Steps to reproduce the behavior:

  1. Save the game while in level A
  2. Go to level B
  3. Load save made in level A
  4. The game will crash after the save has finished loading

Environment (please complete the following information):

  • Engine Version: 4.25.4
  • Plugin Version: 1.4
  • OS: W10x64 21H1

Additional context
The issue seems to start occurring randomly, initial couple of tests seemed working and after couple of game module rebuilds (nothing relevant to serialized actors) the crashing started to occur.
I assume this has something to do with relevant serialized classes being not loaded into memory at the time of loading and as such first object requesting them to be loaded is save manager.
The issue will occur as long as Multithreaded Files is set to Async Load (or Async Load and Save), using other options will prevent the crash however the extension will only load associated level, other saved data like player position/rotation and whatever else is chosen to be serialized is not restored. Attempting to reload save again or even loading appropriate level manually and trying to load save will break the level without crashing the game (player controller doesn't seem to possess any pawn). This is also inconsistent as attempting to load save twice (once from different level and second time once it's loaded) does seem to work in editor but not in packaged builds.
Saves made in this mode will only load properly in same "level session" and once level has been changed/reloaded above behavior will occur.
Vindicta.log

@SkacikPL SkacikPL added Bug Something isn't working To Be Reproduced Has not been reproduced labels Jul 14, 2021
@RobertPotter
Copy link

Hello, did you ever resolve this? I'm encountering exactly the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working To Be Reproduced Has not been reproduced
Projects
None yet
Development

No branches or pull requests

3 participants