Description

This JIRA is being entered as a result of it being one of the top crashes in 4.13.0.

Error message:

Access violation - code c0000005 (first/second chance not available)

Source Context:

 2004       	FLevelEditorViewportInstanceSettings ViewportInstanceSettings;
 2005       	ViewportInstanceSettings.ViewportType = LevelViewportClient->ViewportType;
 2006       	ViewportInstanceSettings.PerspViewModeIndex = LevelViewportClient->GetPerspViewMode();
 2007       	ViewportInstanceSettings.OrthoViewModeIndex = LevelViewportClient->GetOrthoViewMode();
 2008       	ViewportInstanceSettings.EditorShowFlagsString = EditorShowFlagsToSave.ToString();
 2009       	ViewportInstanceSettings.GameShowFlagsString = GameShowFlagsToSave.ToString();
 2010       	ViewportInstanceSettings.BufferVisualizationMode = LevelViewportClient->CurrentBufferVisualizationMode;
 2011       	ViewportInstanceSettings.ExposureSettings = LevelViewportClient->ExposureSettings;
 2012       	ViewportInstanceSettings.FOVAngle = LevelViewportClient->FOVAngle;
 2013       	ViewportInstanceSettings.bIsRealtime = LevelViewportClient->IsRealtime();
 2014       	ViewportInstanceSettings.bShowStats = LevelViewportClient->ShouldShowStats();
 2015       	ViewportInstanceSettings.FarViewPlane = LevelViewportClient->GetFarClipPlaneOverride();
 2016       	ViewportInstanceSettings.bShowFullToolbar = bShowFullToolbar;
 2017       
 2018 ***** 	if (GetDefault<ULevelEditorViewportSettings>()->bSaveEngineStats)
 2019       	{
 2020       		const TArray<FString>* EnabledStats = NULL;
 2021       
 2022       		// If the selected viewport is currently hosting a PIE session, we need to make sure we copy to stats from the active viewport
 2023       		// Note: This happens if you close the editor while it's running because SwapStatCommands gets called after the config save when shutting down.
 2024       		if (IsPlayInEditorViewportActive())
 2025       		{
 2026       			EnabledStats = ActiveViewport->GetClient()->GetEnabledStats();
 2027       		}
 2028       		else
 2029       		{
 2030       			EnabledStats = LevelViewportClient->GetEnabledStats();
 2031       		}
 2032       
 2033       		check(EnabledStats);

Most recent user affected CL: 3106830

Logs:
[Link Removed]
[Link Removed]
[Link Removed]


CrashReporter User Descriptions:

  • I Saved my project and then closed the editor by using the 'X' button.
Steps to Reproduce

Repro steps unknown

Callstack
UE4Editor_LevelEditor!SLevelViewport::SaveConfig() [slevelviewport.cpp:2019]
UE4Editor_LevelEditor!FLevelViewportLayout::SaveCommonLayoutString() [levelviewportlayout.cpp:253]
UE4Editor_LevelEditor!FLevelViewportLayout2x2::SaveLayoutString() [levelviewportlayout2x2.cpp:140]
UE4Editor_LevelEditor!FLevelViewportTabContent::SaveConfig() [levelviewporttabcontent.cpp:110]
UE4Editor_LevelEditor!TBaseSPMethodDelegateInstance<1,FLevelViewportTabContent,0,TTypeWrapper<void> __cdecl() [delegateinstancesimpl.h:317]
UE4Editor_LevelEditor!TBaseSPMethodDelegateInstance<1,FLevelViewportTabContent,0,void __cdecl() [delegateinstancesimpl.h:423]
UE4Editor_Slate!SDockingTabStack::GatherPersistentLayout() [sdockingtabstack.cpp:679]
UE4Editor_Slate!SDockingSplitter::GatherPersistentLayout() [sdockingsplitter.cpp:303]
UE4Editor_Slate!SDockingSplitter::GatherPersistentLayout() [sdockingsplitter.cpp:303]
UE4Editor_Slate!SDockingSplitter::GatherPersistentLayout() [sdockingsplitter.cpp:303]
UE4Editor_Slate!SDockingArea::GatherPersistentLayout() [sdockingarea.cpp:293]
UE4Editor_Slate!FTabManager::PersistLayout() [tabmanager.cpp:628]
UE4Editor_Slate!FTabManager::OnTabManagerClosing() [tabmanager.cpp:1501]
UE4Editor_Slate!FGlobalTabmanager::OnTabClosing() [tabmanager.cpp:1958]
UE4Editor_Slate!SDockingTabWell::RemoveAndDestroyTab() [sdockingtabwell.cpp:550]
UE4Editor_Slate!SDockTab::RemoveTabFromParent() [sdocktab.cpp:323]
UE4Editor_LevelEditor!FLevelEditorModule::ShutdownModule() [leveleditor.cpp:284]
UE4Editor_Core!FModuleManager::UnloadModule() [modulemanager.cpp:545]
UE4Editor_Core!FModuleManager::UnloadModulesAtShutdown() [modulemanager.cpp:669]
UE4Editor!FEngineLoop::Exit() [launchengineloop.cpp:2501]
UE4Editor!GuardedMain() [launch.cpp:167]
UE4Editor!GuardedMainWrapper() [launchwindows.cpp:126]
UE4Editor!WinMain() [launchwindows.cpp:202]
UE4Editor!__scrt_common_main_seh() [exe_common.inl:264]
kernel32!BaseThreadInitThunk()
ntdll!RtlUserThreadStart()

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-35605 in the post.

0
Login to Vote

Fixed
ComponentTools
Affects Versions4.13
Target Fix4.16
Fix Commit3358801
Main Commit3133983
Release Commit3390270
CreatedSep 6, 2016
ResolvedMar 22, 2017
UpdatedApr 27, 2018
View Jira Issue