[4.8.0] Editor crashes in non-debug mode

I recently switched to 4.8 and I am running into a major problem. If I start the editor it just crashes


MachineId:1323F92941C2F97934E8D0A29C770B5F
EpicAccountId:0d2b19b83f54447d9d01ddc1dff30dfb

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

""

UE4Editor_Engine!UWorld::SpawnActor() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\engine\private\levelactor.cpp:233]
UE4Editor_Shooter_3367
UE4Editor_CoreUObject!UClass::CreateDefaultObject() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\coreuobject\private\uobject\class.cpp:2587]
UE4Editor_CoreUObject!UObjectLoadAllCompiledInDefaultProperties() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\coreuobject\private\uobject\uobjectbase.cpp:706]
UE4Editor_CoreUObject!ProcessNewlyLoadedUObjects() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\coreuobject\private\uobject\uobjectbase.cpp:797]
UE4Editor_CoreUObject!TBaseStaticDelegateInstance<void __cdecl(void)>::ExecuteIfSafe() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\public\delegates\delegateinstancesimpl_variadics.inl:921]
UE4Editor_Core!TBaseMulticastDelegate<void>::Broadcast() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\public\delegates\delegatesignatureimpl_variadics.inl:1031]
UE4Editor_Core!FModuleManager::LoadModuleWithFailureReason() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\modules\modulemanager.cpp:431]
UE4Editor_Projects!FModuleDescriptor::LoadModulesForPhase() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\projects\private\moduledescriptor.cpp:370]
UE4Editor_Projects!FProjectManager::LoadModulesForProject() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\projects\private\projectmanager.cpp:52]
UE4Editor!FEngineLoop::LoadStartupModules() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\launch\private\launchengineloop.cpp:1922]
UE4Editor!FEngineLoop::PreInit() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\launch\private\launchengineloop.cpp:1444]
UE4Editor!GuardedMain() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\launch\private\launch.cpp:110]
UE4Editor!GuardedMainWrapper() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor!WinMain() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\launch\private\windows\launchwindows.cpp:200]

Usually this wasn’t a problem because I could just run the editor in debug mode an see where the error is coming from.

The problem is that there is no error if I start the editor in debug mode from Visual Studio. Every thing is working as expected and I can even compile and hot reload inside the editor. I have no idea what I should do and the error message is very vague.

Any ideas?

There are two things that I would check. The top line in your callstack (levelactor.cpp:233) is


check( CurrentLevel );

If you aren’t familiar with checks in UE4 you can think of them like asserts. Has CurrentLevel been set?

The other thing that’s suspicious is that it’s failing on the first line of the function. It’s possible that there was a NULL or invalid ptr to UWorld and this is why SpawnActor is failing.

Either one of these points to some type of initialization problem. Have you looked in the log for errors?


[2015.06.15-15.24.57:516]  0]Log file open, 06/15/15 17:24:57
[2015.06.15-15.24.57:516]  0]LogInit:Display: Running engine for game: Shooter
[2015.06.15-15.24.57:516]  0]LogInit:Display: RandInit(449609731) SRandInit(449609731).
[2015.06.15-15.24.57:516]  0]LogTaskGraph: Started task graph with 4 named threads and 7 total threads.
[2015.06.15-15.24.57:516]  0]LogStats: Stats thread started
[2015.06.15-15.24.57:516]  0]LogInit: Version: 4.8.0-2579680+++depot+UE4-Releases+4.8
[2015.06.15-15.24.57:516]  0]LogInit: API Version: 2579680
[2015.06.15-15.24.57:516]  0]LogInit: Compiled (64-bit): Jun  8 2015 03:34:53
[2015.06.15-15.24.57:517]  0]LogInit: Compiled with Visual C++: 18.00.21005.01
[2015.06.15-15.24.57:517]  0]LogInit: Build Configuration: Development
[2015.06.15-15.24.57:517]  0]LogInit: Branch Name: ++depot+UE4-Releases+4.8
[2015.06.15-15.24.57:517]  0]LogInit: Command line:  
[2015.06.15-15.24.57:517]  0]LogInit: Base directory: D:/Epic Games/4.8/Engine/Binaries/Win64/
[2015.06.15-15.24.57:517]  0]LogInit: Rocket: 1
[2015.06.15-15.24.57:562]  0]LogInit: Using libcurl 7.41.0
[2015.06.15-15.24.57:562]  0]LogInit:  - built for x86_64-pc-win32
[2015.06.15-15.24.57:562]  0]LogInit:  - supports SSL with WinSSL
[2015.06.15-15.24.57:562]  0]LogInit:  - other features:
[2015.06.15-15.24.57:562]  0]LogInit:      CURL_VERSION_SSL
[2015.06.15-15.24.57:562]  0]LogInit:      CURL_VERSION_IPV6
[2015.06.15-15.24.57:562]  0]LogInit:      CURL_VERSION_ASYNCHDNS
[2015.06.15-15.24.57:562]  0]LogInit:      CURL_VERSION_LARGEFILE
[2015.06.15-15.24.57:562]  0]LogInit:      CURL_VERSION_IDN
[2015.06.15-15.24.57:563]  0]LogInit:  CurlRequestOptions (configurable via config and command line):
[2015.06.15-15.24.57:563]  0]LogInit:  - bVerifyPeer = true  - Libcurl will verify peer certificate
[2015.06.15-15.24.57:563]  0]LogInit:  - bUseHttpProxy = false  - Libcurl will NOT use HTTP proxy
[2015.06.15-15.24.57:563]  0]LogInit:  - bDontReuseConnections = false  - Libcurl will reuse connections
[2015.06.15-15.24.57:563]  0]LogInit:  - CertBundlePath = nullptr  - Libcurl will use whatever was configured at build time.
[2015.06.15-15.24.57:595]  0]LogOnline:Warning: No default platform service specified for OnlineSubsystem
[2015.06.15-15.24.57:829]  0]LogInit: Presizing for 0 objects not considered by GC, pre-allocating 0 bytes.
[2015.06.15-15.24.58:109]  0]LogInit: Object subsystem initialized
[2015.06.15-15.24.58:269]  0]LogConsoleResponse:Warning: Skipping Unknown console variable: 'TranslucentSortAxis = (X=0.000000,Y=-1.000000,Z=0.000000)'
[2015.06.15-15.24.58:269]  0]LogConsoleResponse:Warning:   Found in ini file 'E:/unreal/Shooter/Saved/Config/Windows/Engine.ini', in section '[/Script/Engine.RendererSettings]'
[2015.06.15-15.24.58:269]  0]LogConsoleResponse:Warning: Skipping Unknown console variable: 'UIScaleRule = ShortestSide'
[2015.06.15-15.24.58:269]  0]LogConsoleResponse:Warning:   Found in ini file 'E:/unreal/Shooter/Saved/Config/Windows/Engine.ini', in section '[/Script/Engine.RendererSettings]'
[2015.06.15-15.24.58:269]  0]LogConsoleResponse:Warning: Skipping Unknown console variable: 'UIScaleCurve = (EditorCurveData=(Keys=),ExternalCurve=None)'
[2015.06.15-15.24.58:269]  0]LogConsoleResponse:Warning:   Found in ini file 'E:/unreal/Shooter/Saved/Config/Windows/Engine.ini', in section '[/Script/Engine.RendererSettings]'
[2015.06.15-15.24.58:505]  0]LogInit: Selected Device Profile: [Windows]
[2015.06.15-15.24.58:505]  0]LogInit: Applying CVar settings loaded from the selected device profile: [Windows]
[2015.06.15-15.24.58:580]  0]LogInit: Computer: MAIK-PC
[2015.06.15-15.24.58:580]  0]LogInit: User: maik
[2015.06.15-15.24.58:580]  0]LogInit: CPU Page size=4096, Cores=4
[2015.06.15-15.24.58:580]  0]LogInit: High frequency timer resolution =3.020517 MHz
[2015.06.15-15.24.58:583]  0]LogMemory: Memory total: Physical=8.0GB (8GB approx)
[2015.06.15-15.24.58:583]  0]LogMemory: Platform Memory Stats for Windows
[2015.06.15-15.24.58:583]  0]LogMemory: Process Physical Memory: 50.77 MB used, 50.77 MB peak
[2015.06.15-15.24.58:583]  0]LogMemory: Process Virtual Memory: 23.55 MB used, 23.55 MB peak
[2015.06.15-15.24.58:583]  0]LogMemory: Physical Memory: 3067.63 MB used, 8173.93 MB total
[2015.06.15-15.24.58:583]  0]LogMemory: Virtual Memory: 283.34 MB used, 8388608.00 MB total
[2015.06.15-15.24.59:910]  0]LogTextLocalizationManager: The requested culture ('en_US') has no localization data; parent culture's ('en') localization data will be used.
[2015.06.15-15.25.00:293]  0]LogTextLocalizationManager:Warning: Loaded localization resources contain conflicting entries for (Namespace:ContentBrowser, Key:ImportAssetToolTip):
Localization Resource: (D:/Epic Games/4.8/Engine/Content/Localization/Editor/en/Editor.locres) Source String Hash: (-630476809) Localized String: (Import to {0}...)
Localization Resource: (D:/Epic Games/4.8/Engine/Content/Localization/Editor/en/Editor.locres) Source String Hash: (1271782899) Localized String: (Imports an asset from file to this folder.)
[2015.06.15-15.25.01:488]  0]LogD3D11RHI: Found D3D11 adapter 0: NVIDIA GeForce GTX 760 (Feature Level 11_0)
[2015.06.15-15.25.01:488]  0]LogD3D11RHI: Adapter has 1990MB of dedicated video memory, 0MB of dedicated system memory, and 2048MB of shared system memory, 2 output[s]
[2015.06.15-15.25.01:488]  0]LogD3D11RHI: Chosen D3D11 Adapter Id = 0
[2015.06.15-15.25.01:498]  0]LogRHI: Texture pool is 1361 MB (70% of 1945 MB)
[2015.06.15-15.25.01:505]  0]LogD3D11RHI: Async texture creation enabled
[2015.06.15-15.25.01:918]  0]LogShaderCompilers:Display: Using Local Shader Compiler.
[2015.06.15-15.25.04:866]  0]LogTemp:Display: Loaded TP DesktopTargetPlatform
[2015.06.15-15.25.04:882]  0]LogTemp:Display: Loaded TP WindowsClientTargetPlatform
[2015.06.15-15.25.04:898]  0]LogTemp:Display: Loaded TP WindowsNoEditorTargetPlatform
[2015.06.15-15.25.04:915]  0]LogTemp:Display: Loaded TP WindowsServerTargetPlatform
[2015.06.15-15.25.04:933]  0]LogTemp:Display: Loaded TP WindowsTargetPlatform
[2015.06.15-15.25.04:947]  0]LogTemp:Display: Loaded TP AndroidTargetPlatform
[2015.06.15-15.25.04:961]  0]LogTemp:Display: Loaded TP Android_ASTCTargetPlatform
[2015.06.15-15.25.04:976]  0]LogTemp:Display: Loaded TP Android_ATCTargetPlatform
[2015.06.15-15.25.05:005]  0]LogTemp:Display: Loaded TP Android_DXTTargetPlatform
[2015.06.15-15.25.05:019]  0]LogTemp:Display: Loaded TP Android_ETC1TargetPlatform
[2015.06.15-15.25.05:033]  0]LogTemp:Display: Loaded TP Android_ETC2TargetPlatform
[2015.06.15-15.25.05:050]  0]LogTemp:Display: Loaded TP Android_PVRTCTargetPlatform
[2015.06.15-15.25.05:178]  0]LogTemp:Display: Loaded TP IOSTargetPlatform
[2015.06.15-15.25.05:192]  0]LogTemp:Display: Loaded TP LinuxNoEditorTargetPlatform
[2015.06.15-15.25.05:205]  0]LogTemp:Display: Loaded TP LinuxServerTargetPlatform
[2015.06.15-15.25.05:222]  0]LogTemp:Display: Loaded TP LinuxTargetPlatform
[2015.06.15-15.25.05:222]  0]LogTargetPlatformManager:Display: Building Assets For Windows
[2015.06.15-15.25.06:121]  0]LogDerivedDataCache:Display: Max Cache Size: 512 MB
[2015.06.15-15.25.06:341]  0]LogDerivedDataCache: Loaded boot cache 0.22s 53MB C:/Users/maik/AppData/Local/UnrealEngine/4.8/DerivedDataCache/Boot.ddc.
[2015.06.15-15.25.06:341]  0]LogDerivedDataCache:Display: Loaded Boot cache: C:/Users/maik/AppData/Local/UnrealEngine/4.8/DerivedDataCache/Boot.ddc
[2015.06.15-15.25.06:341]  0]LogDerivedDataCache: FDerivedDataBackendGraph:  Pak pak cache file E:/unreal/Shooter/DerivedDataCache/DDC.ddp not found, will not use a pak cache.
[2015.06.15-15.25.06:341]  0]LogDerivedDataCache: Unable to find inner node Pak for hierarchical cache Hierarchy.
[2015.06.15-15.25.06:341]  0]LogDerivedDataCache: FDerivedDataBackendGraph:  CompressedPak pak cache file E:/unreal/Shooter/DerivedDataCache/Compressed.ddp not found, will not use a pak cache.
[2015.06.15-15.25.06:341]  0]LogDerivedDataCache: Unable to find inner node CompressedPak for hierarchical cache Hierarchy.
[2015.06.15-15.25.06:592]  0]LogDerivedDataCache:Display: Pak cache opened for reading ../../../Engine/DerivedDataCache/Compressed.ddp.
[2015.06.15-15.25.06:603]  0]LogDerivedDataCache: Using Local data cache path C:/Users/maik/AppData/Local/UnrealEngine/Common/DerivedDataCache: Writable
[2015.06.15-15.25.13:252]  0]LogInit: Selected Device Profile: [Windows]
[2015.06.15-15.25.13:442]  0]ImportText (ComponentSweepMultiTests): Missing closing parenthesis: (RootShapeAsset="/Engine/BasicShapes/Cube.Cube",ShapeType="TriggerCapsule",HitResult=(Time=0.50,Location=(X=-100.000015,Y=0.0,Z=100.000015),ImpactPoint=(X=-50.0,Y=0.0,Z=50.0),Normal=(X=-1.0,Y=-0.0,Z=0.0),ImpactNormal=(X=0.0,Y=0.0,Z=1.0),TraceStart=(X=-200.0,Y=0.0,Z=200.0),TraceEnd=(X=0.0,Y=0.0,Z=0.0))
[2015.06.15-15.25.13:442]  0]ImportText (LineTraceSingleByChannelTests): Missing closing parenthesis: (RootShapeAsset="/Engine/BasicShapes/Cube.Cube",HitResult=(Time=0.50,Location=(X=-100.000015,Y=0.0,Z=100.000015),ImpactPoint=(X=-50.0,Y=0.0,Z=50.0),Normal=(X=-1.0,Y=-0.0,Z=0.0),ImpactNormal=(X=0.0,Y=0.0,Z=1.0),TraceStart=(X=-200.0,Y=0.0,Z=200.0),TraceEnd=(X=0.0,Y=0.0,Z=0.0))
[2015.06.15-15.25.13:742]  0]LogMeshUtilities: No automatic mesh reduction module available
[2015.06.15-15.25.13:742]  0]LogMeshUtilities: No automatic mesh merging module available
[2015.06.15-15.25.14:233]  0]LogEnum:Warning: Enum Text 3 for Enum EViewModeIndex failed to resolve to any value
[2015.06.15-15.25.17:333]  0]LogInit: WinSock: version 1.1 (2.2), MaxSocks=32767, MaxUdp=65467
[2015.06.15-15.25.24:816]  0]UdpMessaging: Initializing bridge on interface 0.0.0.0:0 to multicast group 230.0.0.1:6666.

The log doesn’t seem to tell me anything related to the error, but I think you are right with your ‘check( CurrentLevel )’ guess because I changed the level name at some point.

I only changed the default map in DefaultEditor.ini and DefaultGame.ini

It’s working now, I have no idea what happened. I deleted the intermediate folder and forced a full rebuild which solved the problem.