Crash when unloading level

hello,

I loaded some levels (world composition)
re-imported the landscapes
checked out the files to save the levels
saved the levels
attempted to unloaded the levels
crash

>	UE4Editor-Engine.dll!TGraphTask<`FLandscapeEditToolRenderData::Update'::`2'::EURCMacro_UpdateEditToolRenderData>::ExecuteTask(TArray<FBaseGraphTask *,FDefaultAllocator> & NewTasks, ENamedThreads::Type CurrentThread) Line 633	C++
 	UE4Editor-Core.dll!FTaskThread::ProcessTasks(int QueueIndex, bool bAllowStall) Line 329	C++
 	UE4Editor-Core.dll!FTaskThread::ProcessTasksUntilQuit(int QueueIndex) Line 173	C++
 	UE4Editor-RenderCore.dll!RenderingThreadMain(FEvent * TaskGraphBoundSyncEvent) Line 220	C++
 	UE4Editor-RenderCore.dll!FRenderingThread::Run() Line 339	C++
 	UE4Editor-Core.dll!FRunnableThreadWin::Run() Line 66	C++
 	UE4Editor-Core.dll!FRunnableThreadWin::GuardedRun() Line 46	C++

hope that helps

Hi ,

Can you post your logs and dxdiag here so we can have a look? Thank you!

i can give you better than that, its 100% reprorate

create a level in world composition add one or more sub levels.
make sure all these levels are loaded
make one of the levels the current edited level.
make sure all of them are visible *eye icon turned on)
now load a heightmap with the landscape tool.
save everything and close your project (not sure if this step is necessary)
reload your project, open the levels
load all sub levels
make sure they are visible (eye icon turned on)
go on the level that has the landscape in it.
go on the manage landscape tool
re-import landscape from a different file
save everything
now with the tool still visible in the tool panel
click on the sublevels and unload them all
this sometimes will crash the editor

FIX : unselect the landscape tool before unloading the levels and it wont ever crash. Tried this several times and it never crashed after that. While with the other it is 50% crashes.

let me know if you can reproduce this :slight_smile:

Hi ,

I was able to reproduce this and have entered a bug report with this conversation and my own findings attached. Thank you!

This was fixed in this commit
https://github.com/EpicGames/UnrealEngine/commit/822c8e481a958b60be3c62a5f081935f0d1b0945

Unfortunately this will be a part of 4.5 release, too late for 4.4.

excellent, you guys rock :slight_smile: