map / level crashes when i try to save

hi

i have an unsaved level / map
one of 2 in the game
it crashes the editor when i try to save it
how do i debug that

thanks

Hey there @barbrian0723! If the engine is crashing when you attempt to save a level, it’s possible that this could be caused by an object being corrupted and trying to write it to the level or the external actors location for it. The best place to start would be to take a look at the crash context it produces on crash which may give us a hint.

hi
need to look again at the crash report
what i can remember from it was something like map or landscape
i have deleted a large nav mesh and replaced it with multiple smaller ones
it has yet to crash again
will keep an eye on it
maybe it was that

hi

had a crash again

this is what i took from the crash report as the most important

Assertion failed: LandscapeSubsystem != nullptr [File:D:\build++UE5\Sync\Engine\Source\Runtime\Landscape\Private\LandscapeEditLayers.cpp] [Line: 8185]

what exactly is the problem do you know

thanks

Looks like there was an issue with the landscape itself, possibly just one of the edit layers themselves. This could stem from a plugin like the water plugin that utilizes edit layers and landscape brushes or changes you made manually. Were you working with the landscape when this issue occurred?

i surely worked with the landscape directly or indirectly
indirectly in the sense of placing actors etc on the map
and also navmesh
when you create a navmesh it starts to build navigation
and then it marks the landscape as unsaved
and i find that when i try to save that landscape then it fails and crashes
seems best thing to do is to rebuild the level

i have verified the package as well
initially there was a problem but even now that it is fixed the issue described above persists

the script script/engine.world seems to corrupt / crash

If possible, back up your project as is somewhere safe. Then in your landscape, export your edit layer that you want to keep, then delete the landscape itself entirely. Save and close the engine. Open the project and create a new landscape, apply your last layer as a heightmap. Does it still crash?

1 Like

the landscape is not sophisticated yet
so it was easy to simply delete and create a new one
so far it has not crashed since

1 Like

Great to hear! I’d recommend keeping backups or even better source control like Git or Perforce for the project in case something like the landscape ends up corrupted, as you can likely save lots of grief.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.