Packaged Game Intermittently Crashing when loading level

Hello,

I’ve been having this problem since 4.17 where my packaged game intermittently crashes because of failing "ensure"s but I have no idea how to debug this and if this is bug with the engine:

Log file open, 02/04/18 22:19:46
LogWindows: Failed to load 'aqProf.dll' (GetLastError=126)
LogWindows: File 'aqProf.dll' does not exist
LogWindows: Failed to load 'VtuneApi.dll' (GetLastError=126)
LogWindows: File 'VtuneApi.dll' does not exist
LogWindows: Failed to load 'VtuneApi32e.dll' (GetLastError=126)
LogWindows: File 'VtuneApi32e.dll' does not exist
LogPlatformFile: Not using cached read wrapper
LogInit: Display: RandInit(-1996447429) SRandInit(-1996447429).
LogTaskGraph: Started task graph with 5 named threads and 14 total threads with 3 sets of task threads.
LogStats: Stats thread started at 0.144299
LogD3D11RHI: Aftermath initialized
LogPluginManager: Mounting plugin VictoryBPLibrary
LogPluginManager: Mounting plugin ApexDestruction
LogPluginManager: Mounting plugin SteamController
LogPluginManager: Mounting plugin RuntimeMeshComponent
LogPluginManager: Mounting plugin Paper2D
LogPluginManager: Mounting plugin LightPropagationVolume
LogPluginManager: Mounting plugin FacialAnimation
LogPluginManager: Mounting plugin CharacterAI
LogPluginManager: Mounting plugin AvfMedia
LogPluginManager: Mounting plugin ImgMedia
LogPluginManager: Mounting plugin MediaCompositing
LogPluginManager: Mounting plugin WmfMedia
LogPluginManager: Mounting plugin TcpMessaging
LogPluginManager: Mounting plugin UdpMessaging
LogPluginManager: Mounting plugin ActorSequence
LogPluginManager: Mounting plugin OnlineSubsystem
LogPluginManager: Mounting plugin OnlineSubsystemNull
LogPluginManager: Mounting plugin OnlineSubsystemUtils
LogPluginManager: Mounting plugin ArchVisCharacter
LogPluginManager: Mounting plugin CableComponent
LogPluginManager: Mounting plugin CustomMeshComponent
LogPluginManager: Mounting plugin ExampleDeviceProfileSelector
LogPluginManager: Mounting plugin ImmediatePhysics
LogPluginManager: Mounting plugin PhysXVehicles
LogPluginManager: Mounting plugin ProceduralMeshComponent
LogPluginManager: Mounting plugin RuntimePhysXCooking
LogPluginManager: Mounting plugin WindowsMoviePlayer
LogInit: Using libcurl 7.47.1
LogInit:  - built for x86_64-pc-win32
LogInit:  - supports SSL with OpenSSL/1.0.2g
LogInit:  - supports HTTP deflate (compression) using libz 1.2.8
LogInit:  - other features:
LogInit:      CURL_VERSION_SSL
LogInit:      CURL_VERSION_LIBZ
LogInit:      CURL_VERSION_IPV6
LogInit:      CURL_VERSION_ASYNCHDNS
LogInit:      CURL_VERSION_LARGEFILE
LogInit:      CURL_VERSION_IDN
LogInit:  CurlRequestOptions (configurable via config and command line):
LogInit:  - bVerifyPeer = false  - Libcurl will NOT verify peer certificate
LogInit:  - bUseHttpProxy = false  - Libcurl will NOT use HTTP proxy
LogInit:  - bDontReuseConnections = false  - Libcurl will reuse connections
LogInit:  - CertBundlePath = nullptr  - Libcurl will use whatever was configured at build time.
LogInit: Build: ++UE4+Release_Version_Ujwal-4.18-CL-0
LogInit: Engine Version: 4.18.3-0+++UE4+Release_Version_Ujwal-4.18
LogInit: Compatible Engine Version: 4.18.0-0+++UE4+Release_Version_Ujwal-4.18
LogInit: Net CL: 0
LogDevObjectVersion: Number of dev versions registered: 16
LogDevObjectVersion:   Dev-Blueprints (B0D832E4-1F89-4F0D-ACCF-7EB736FD4AA2): 10
LogDevObjectVersion:   Dev-Build (E1C64328-A22C-4D53-A36C-8E866417BD8C): 0
LogDevObjectVersion:   Dev-Core (375EC13C-06E4-48FB-B500-84F0262A717E): 2
LogDevObjectVersion:   Dev-Editor (E4B068ED-F494-42E9-A231-DA0B2E46BB41): 20
LogDevObjectVersion:   Dev-Framework (CFFC743F-43B0-4480-9391-14DF171D2073): 30
LogDevObjectVersion:   Dev-Mobile (B02B49B5-BB20-44E9-A304-32B752E40360): 0
LogDevObjectVersion:   Dev-Networking (A4E4105C-59A1-49B5-A7C5-40C4547EDFEE): 0
LogDevObjectVersion:   Dev-Online (39C831C9-5AE6-47DC-9A44-9C173E1C8E7C): 0
LogDevObjectVersion:   Dev-Physics (78F01B33-EBEA-4F98-B9B4-84EACCB95AA2): 0
LogDevObjectVersion:   Dev-Platform (6631380F-2D4D-43E0-8009-CF276956A95A): 0
LogDevObjectVersion:   Dev-Rendering (12F88B9F-8875-4AFC-A67C-D90C383ABD29): 20
LogDevObjectVersion:   Dev-Sequencer (7B5AE74C-D270-4C10-A958-57980B212A5A): 4
LogDevObjectVersion:   Dev-VR (D7296918-1DD6-4BDD-9DE2-64A83CC13884): 0
LogDevObjectVersion:   Dev-LoadTimes (C2A15278-BFE7-4AFE-6C17-90FF531DF755): 1
LogDevObjectVersion:   Private-Geometry (6EACA3D4-40EC-4CC1-B786-8BED09428FC5): 1
LogDevObjectVersion:   Dev-AnimPhys (29E575DD-E0A3-4627-9D10-D276232CDCEA): 12
LogInit: Compiled (64-bit): Feb  4 2018 16:34:12
LogInit: Compiled with Visual C++: 19.00.24215.01
LogInit: Build Configuration: Development
LogInit: Branch Name: ++UE4+Release_Version_Ujwal-4.18
LogInit: Command line:  
LogInit: Base directory: E:/Other/GameBuilds/ATMA_BUILD_0.0.6.3_DEV_2/WindowsNoEditor/ATMA/Binaries/Win64/
LogInit: Installed Engine Build: 0
LogInit: Presizing for max 2097152 objects, including 0 objects not considered by GC, pre-allocating 0 bytes for permanent pool.
LogStreaming: Display: Async Loading initialized: Event Driven Loader: true, Async Loading Thread: true
LogInit: Object subsystem initialized
[2018.02.05-03.19.46:715][  0]LogInit: Selected Device Profile: [WindowsNoEditor]
[2018.02.05-03.19.46:715][  0]LogInit: Applying CVar settings loaded from the selected device profile: [WindowsNoEditor]
[2018.02.05-03.19.46:719][  0]LogInit: Computer: DESKTOP-DO3UA5K
[2018.02.05-03.19.46:719][  0]LogInit: User: UjSpaceHeater
[2018.02.05-03.19.46:719][  0]LogInit: CPU Page size=4096, Cores=4
[2018.02.05-03.19.46:719][  0]LogInit: High frequency timer resolution =3.914065 MHz
[2018.02.05-03.19.46:719][  0]LogMemory: Memory total: Physical=63.9GB (64GB approx)
[2018.02.05-03.19.46:719][  0]LogMemory: Platform Memory Stats for WindowsNoEditor
[2018.02.05-03.19.46:719][  0]LogMemory: Process Physical Memory: 95.55 MB used, 95.55 MB peak
[2018.02.05-03.19.46:719][  0]LogMemory: Process Virtual Memory: 107.41 MB used, 107.41 MB peak
[2018.02.05-03.19.46:719][  0]LogMemory: Physical Memory: 15157.94 MB used,  50316.57 MB free, 65474.51 MB total
[2018.02.05-03.19.46:719][  0]LogMemory: Virtual Memory: 361.21 MB used,  50316.57 MB free, 134217728.00 MB total
[2018.02.05-03.19.46:746][  0]LogInit: Using OS detected language (en-US).
[2018.02.05-03.19.46:746][  0]LogInit: Using OS detected locale (en-US).
[2018.02.05-03.19.46:746][  0]LogTextLocalizationManager: No specific localization for 'en-US' exists, so the 'en' localization will be used.
[2018.02.05-03.19.46:798][  0]LogD3D11RHI: D3D11 adapters:
[2018.02.05-03.19.46:831][  0]LogD3D11RHI:    0. 'NVIDIA GeForce GTX 1080 Ti' (Feature Level 11_0)
[2018.02.05-03.19.46:831][  0]LogD3D11RHI:       11132/0/32737 MB DedicatedVideo/DedicatedSystem/SharedSystem, Outputs:2, VendorId:0x10de
[2018.02.05-03.19.46:855][  0]LogD3D11RHI:    1. 'Radeon (TM) RX 480 Graphics' (Feature Level 11_0)
[2018.02.05-03.19.46:855][  0]LogD3D11RHI:       4041/0/32737 MB DedicatedVideo/DedicatedSystem/SharedSystem, Outputs:1, VendorId:0x1002
[2018.02.05-03.19.46:856][  0]LogD3D11RHI:    2. 'Microsoft Basic Render Driver' (Feature Level 11_0)
[2018.02.05-03.19.46:856][  0]LogD3D11RHI:       0/0/32737 MB DedicatedVideo/DedicatedSystem/SharedSystem, Outputs:0, VendorId:0x1414
[2018.02.05-03.19.46:856][  0]LogD3D11RHI: Chosen D3D11 Adapter: 0
[2018.02.05-03.19.46:865][  0]LogD3D11RHI: Creating new Direct3DDevice
[2018.02.05-03.19.46:865][  0]LogD3D11RHI:     GPU DeviceId: 0x1b06 (for the marketing name, search the web for "GPU Device Id")
[2018.02.05-03.19.46:865][  0]LogWindows: EnumDisplayDevices:
[2018.02.05-03.19.46:865][  0]LogWindows:    0. 'NVIDIA GeForce GTX 1080 Ti' (P:1 D:1)
[2018.02.05-03.19.46:865][  0]LogWindows:    1. 'NVIDIA GeForce GTX 1080 Ti' (P:0 D:1)
[2018.02.05-03.19.46:865][  0]LogWindows:    2. 'NVIDIA GeForce GTX 1080 Ti' (P:0 D:0)
[2018.02.05-03.19.46:865][  0]LogWindows:    3. 'NVIDIA GeForce GTX 1080 Ti' (P:0 D:0)
[2018.02.05-03.19.46:865][  0]LogWindows:    4. 'Radeon (TM) RX 480 Graphics' (P:0 D:1)
[2018.02.05-03.19.46:865][  0]LogWindows:    5. 'Radeon (TM) RX 480 Graphics' (P:0 D:0)
[2018.02.05-03.19.46:865][  0]LogWindows:    6. 'Radeon (TM) RX 480 Graphics' (P:0 D:0)
[2018.02.05-03.19.46:865][  0]LogWindows:    7. 'Radeon (TM) RX 480 Graphics' (P:0 D:0)
[2018.02.05-03.19.46:865][  0]LogWindows:    8. 'Radeon (TM) RX 480 Graphics' (P:0 D:0)
[2018.02.05-03.19.46:865][  0]LogWindows:    9. 'Radeon (TM) RX 480 Graphics' (P:0 D:0)
[2018.02.05-03.19.46:865][  0]LogWindows:    10. 'Radeon (TM) RX 480 Graphics' (P:0 D:0)
[2018.02.05-03.19.46:866][  0]LogWindows:    11. 'Radeon (TM) RX 480 Graphics' (P:0 D:0)
[2018.02.05-03.19.46:866][  0]LogWindows:    12. 'Radeon (TM) RX 480 Graphics' (P:0 D:0)
[2018.02.05-03.19.46:866][  0]LogWindows:    13. 'Radeon (TM) RX 480 Graphics' (P:0 D:0)
[2018.02.05-03.19.46:866][  0]LogWindows:    14. 'Radeon (TM) RX 480 Graphics' (P:0 D:0)
[2018.02.05-03.19.46:866][  0]LogWindows:    15. 'Radeon (TM) RX 480 Graphics' (P:0 D:0)
[2018.02.05-03.19.46:866][  0]LogWindows:    16. 'Radeon (TM) RX 480 Graphics' (P:0 D:0)
[2018.02.05-03.19.46:866][  0]LogWindows:    17. 'Radeon (TM) RX 480 Graphics' (P:0 D:0)
[2018.02.05-03.19.46:866][  0]LogWindows:    18. 'Radeon (TM) RX 480 Graphics' (P:0 D:0)
[2018.02.05-03.19.46:866][  0]LogWindows:    19. 'Radeon (TM) RX 480 Graphics' (P:0 D:0)
[2018.02.05-03.19.46:866][  0]LogWindows: DebugString: GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter FoundDriverCount:0 
[2018.02.05-03.19.46:866][  0]LogD3D11RHI:     Adapter Name: NVIDIA GeForce GTX 1080 Ti
[2018.02.05-03.19.46:866][  0]LogD3D11RHI:   Driver Version: Unknown (internal:Unknown, unified:Unknown)
[2018.02.05-03.19.46:866][  0]LogD3D11RHI:      Driver Date: Unknown
[2018.02.05-03.19.46:866][  0]LogRHI: Texture pool is 7792 MB (70% of 11132 MB)
[2018.02.05-03.19.46:884][  0]LogD3D11RHI: Async texture creation enabled
[2018.02.05-03.19.46:899][  0]LogD3D11RHI: GPU Timing Frequency: 1000.000000 (Debug: 2 2)
[2018.02.05-03.19.46:987][  0]LogShaderLibrary: Display: Using ../../../ATMA/Content/ShaderArchive-PCD3D_SM5.ushaderbytecode for material shader code. Total 4733 unique shaders.
[2018.02.05-03.19.46:987][  0]LogShaderLibrary: Display: Cooked Context: Using Shared Shader Library
[2018.02.05-03.19.46:988][  0]LogPakFile: New pak file ../../../ATMA/Content/Paks/ATMA-WindowsNoEditor.pak added to pak precacher.
[2018.02.05-03.19.46:996][  0]LogMaterial: Verifying Global Shaders for PCD3D_SM5
[2018.02.05-03.19.46:997][  0]LogSlate: Using Freetype 2.6.0
[2018.02.05-03.19.46:997][  0]LogSlate: SlateFontCache - WITH_FREETYPE: 1, WITH_HARFBUZZ: 1
[2018.02.05-03.19.46:997][  0]LogSlate: SlateFontCache - WITH_FREETYPE: 1, WITH_HARFBUZZ: 1
[2018.02.05-03.19.47:033][  0]LogAssetRegistry: FAssetRegistry took 0.0103 seconds to start up
[2018.02.05-03.19.47:088][  0]LogPackageLocalizationCache: Processed 4 localized package path(s) for 2 prioritized culture(s) in 0.002197 seconds
[2018.02.05-03.19.47:088][  0]LogInit: Selected Device Profile: [WindowsNoEditor]
[2018.02.05-03.19.47:119][  0]LogNetVersion: ATMA , NetCL: 0, EngineNetVer: 2, GameNetVer: 0 (Checksum: 1882174219)
[2018.02.05-03.19.48:667][  0]LogInit: WinSock: version 1.1 (2.2), MaxSocks=32767, MaxUdp=65467
[2018.02.05-03.19.48:680][  0]LogMoviePlayer: Initializing movie player
[2018.02.05-03.19.48:772][  0]LogUObjectArray: 33668 objects as part of root set at end of initial load.
[2018.02.05-03.19.48:772][  0]LogUObjectAllocator: 6314080 out of 0 bytes used by permanent object pool.
[2018.02.05-03.19.48:772][  0]LogUObjectArray: CloseDisregardForGC: 0/0 objects in disregard for GC pool
[2018.02.05-03.19.48:796][  0]LogEngine: Initializing Engine...
[2018.02.05-03.19.49:036][  0]LogStats: UGameplayTagsManager::ConstructGameplayTagTree: Construct from data asset -  0.000 s
[2018.02.05-03.19.49:037][  0]LogStats: UGameplayTagsManager::ConstructGameplayTagTree: GameplayTagTreeChangedEvent.Broadcast -  0.000 s
[2018.02.05-03.19.49:060][  0]LogInit: XAudio2 using 'SONY AVSYSTEM-0 (NVIDIA High Definition Audio)' : 2 channels at 48 kHz using 16 bits per sample (channel mask 0x3)
[2018.02.05-03.19.49:068][  0]LogInit: FAudioDevice initialized.
[2018.02.05-03.19.49:081][  0]LogInit: Texture streaming: Enabled
[2018.02.05-03.19.49:083][  0]LogInit: Display: Game Engine Initialized.
[2018.02.05-03.19.49:083][  0]LogGameplayTags: Display: UGameplayTagsManager::DoneAddingNativeTags. DelegateIsBound: 0
[2018.02.05-03.19.49:090][  0]LogInit: Display: Starting Game.
[2018.02.05-03.19.49:090][  0]LogNet: Browse: /Game/Levels/BaseLevel?Name=Player
[2018.02.05-03.19.49:090][  0]LogLoad: LoadMap: /Game/Levels/BaseLevel?Name=Player
[2018.02.05-03.19.49:178][  0]LogAIModule: Creating AISystem for world BaseLevel
[2018.02.05-03.19.49:178][  0]LogLoad: Game class is 'ATMAGameModeBase_BP_C'
[2018.02.05-03.19.49:181][  0]LogWorld: Bringing World /Game/Levels/BaseLevel.BaseLevel up for play (max tick rate 0) at 2018.02.04-22.19.49
[2018.02.05-03.19.49:181][  0]LogWorld: Bringing up level for play took: 0.000423
[2018.02.05-03.19.49:181][  0]LogGameMode: FindPlayerStart: PATHS NOT DEFINED or NO PLAYERSTART with positive rating
[2018.02.05-03.19.49:181][  0]LogLevel: Warning: EnableInput on a LevelScript actor can not be specified for only one PlayerController.  Enabling for all PlayerControllers.
[2018.02.05-03.19.49:182][  0]LogUMG: Display: Widget Class MainMenu_C - Loaded Fast Template.
[2018.02.05-03.19.49:182][  0]LogLoad: Took 0.092626 seconds to LoadMap(/Game/Levels/BaseLevel)
[2018.02.05-03.19.49:183][  0]LogSlate: Took 0.000047 seconds to synchronously load lazily loaded font '../../../ATMA/Content/Fonts/Muli_0_Font.ufont' (48K)
[2018.02.05-03.19.49:183][  0]LogStreaming: Display: Suspending async loading (1)
[2018.02.05-03.19.49:231][  0]LogStreaming: Display: Resuming async loading (0)
[2018.02.05-03.19.49:282][  0]LogLoad: (Engine Initialization) Total time: 3.01 seconds
[2018.02.05-03.19.49:282][  0]LogExternalProfiler: No external profilers were discovered.  External profiling features will not be available.
[2018.02.05-03.19.49:298][  0]LogRenderer: Reallocating scene render targets to support 1280x800 Format 10 NumSamples 1 (Frame:1).
[2018.02.05-03.19.49:435][  0]LogSteamController: SteamController is not available
[2018.02.05-03.19.49:437][  0]LogContentStreaming: Texture pool size now 1000 MB
[2018.02.05-03.19.52:293][803]LogUMG: Display: Widget Class Loading_Sequence_C - Loaded Fast Template.
[2018.02.05-03.19.52:293][803]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:295][803]LogSlate: Took 0.001070 seconds to synchronously load lazily loaded font '../../../Engine/Content/EngineFonts/Faces/RobotoBold.ufont' (160K)
[2018.02.05-03.19.52:296][804]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:296][805]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:297][806]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:298][807]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:299][808]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:300][809]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:301][810]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:302][811]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:303][812]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:304][813]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:305][814]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:306][815]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:307][816]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:308][817]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:309][818]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:312][818]LogStats: FPlatformStackWalk::StackWalkAndDump -  0.002 s
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: === Handled ensure: ===
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: 
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: Ensure condition failed: Lhs.CurrentNum == Lhs.InitialNum [File:E:\UnrealEngine\Release_Version_Ujwal\Engine\Source\Runtime\Core\Public\Containers/Array.h] [Line: 206]
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: Array has changed during ranged-for iteration!
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: Stack: 
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: [Callstack] 0x00000000E4F07CC6 ATMA.exe!UnknownFunction []
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: [Callstack] 0x00000000E4D51A21 ATMA.exe!UnknownFunction []
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: [Callstack] 0x00000000E4D6E8D6 ATMA.exe!UnknownFunction []
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: [Callstack] 0x00000000E62C47D2 ATMA.exe!UnknownFunction []
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: [Callstack] 0x00000000E62C57CD ATMA.exe!UnknownFunction []
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: [Callstack] 0x00000000E62E6659 ATMA.exe!UnknownFunction []
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: [Callstack] 0x00000000E5B06685 ATMA.exe!UnknownFunction []
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: [Callstack] 0x00000000E5B032DB ATMA.exe!UnknownFunction []
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: [Callstack] 0x00000000E5AA15E5 ATMA.exe!UnknownFunction []
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: [Callstack] 0x00000000E4D0F178 ATMA.exe!UnknownFunction []
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: [Callstack] 0x00000000E4D1D1FF ATMA.exe!UnknownFunction []
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: [Callstack] 0x00000000E4D1D26A ATMA.exe!UnknownFunction []
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: [Callstack] 0x00000000E4D29318 ATMA.exe!UnknownFunction []
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: [Callstack] 0x00000000E81CF8EB ATMA.exe!UnknownFunction []
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: [Callstack] 0x000000008FB81FE4 KERNEL32.DLL!UnknownFunction []
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: [Callstack] 0x000000009264EFB1 ntdll.dll!UnknownFunction []
[2018.02.05-03.19.52:312][818]LogOutputDevice: Error: 
[2018.02.05-03.19.52:320][818]LogStats:                SubmitErrorReport -  0.000 s
[2018.02.05-03.19.52:391][818]LogWindows: Warning: CreateProc failed: The system cannot find the file specified. (0x00000002)
[2018.02.05-03.19.52:391][818]LogWindows: Warning: URL: ../../../Engine/Binaries/Win64/CrashReportClient.exe "E:/Other/GameBuilds/ATMA_BUILD_0.0.6.3_DEV_2/WindowsNoEditor/ATMA/Saved/Crashes/UE4CC-Windows-FC04AAE74B0D097D5DA7C9AB0033E50D_0000" -Unattended -AppName=UE4-ATMA -CrashGUID=UE4CC-Windows-FC04AAE74B0D097D5DA7C9AB0033E50D_0000 -DebugSymbols=..\..\..\Engine\Intermediate\Symbols
[2018.02.05-03.19.52:391][818]LogStats:                    SendNewReport -  0.071 s
[2018.02.05-03.19.52:391][818]LogStats:             FDebug::EnsureFailed -  0.082 s
[2018.02.05-03.19.52:393][819]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:395][820]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:396][821]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:398][822]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:399][823]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:399][824]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:401][825]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:404][826]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:405][827]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:406][828]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:407][829]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:408][830]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:409][831]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:410][832]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:411][833]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:412][834]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:413][835]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:414][836]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:415][837]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.52:416][838]LogLevel: ActivateLevel /Game/Levels/HappyValley 1 1 0
[2018.02.05-03.19.58:501][382]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:502][383]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:529][384]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:530][385]LogWindows: Warning: CreateProc failed: The system cannot find the file specified. (0x00000002)
[2018.02.05-03.19.58:530][385]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:532][386]LogWindows: Warning: URL: ../../../Engine/Binaries/Win64/CrashReportClient.exe "E:/Other/GameBuilds/ATMA_BUILD_0.0.6.3_DEV_2/WindowsNoEditor/ATMA/Saved/Crashes/UE4CC-Windows-FC04AAE74B0D097D5DA7C9AB0033E50D_0001" -Unattended -AppName=UE4-ATMA -CrashGUID=UE4CC-Windows-FC04AAE74B0D097D5DA7C9AB0033E50D_0001 -DebugSymbols=..\..\..\Engine\Intermediate\Symbols
[2018.02.05-03.19.58:532][386]LogStats:                    SendNewReport -  0.063 s
[2018.02.05-03.19.58:532][386]LogStats:             FDebug::EnsureFailed -  0.064 s
[2018.02.05-03.19.58:532][386]LogModuleManager: Warning: ModuleManager: Attempting to load 'Media' outside the main thread.  This module was already loaded - so we didn't crash but this isn't safe.  Please call LoadModule on the main/game thread only.  You can use GetModule or GetModuleChecked instead, those are safe to call outside the game thread.
[2018.02.05-03.19.58:532][386]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:533][387]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:534][388]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:535][389]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:857][678]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:858][679]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:859][680]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:860][681]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:861][682]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:862][683]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:863][684]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:864][685]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:865][686]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:867][687]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:868][688]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:869][689]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:870][690]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:871][691]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:872][692]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:873][693]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:874][694]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:879][695]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:880][696]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:882][697]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevel 1 1 0
[2018.02.05-03.19.58:884][698]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevelCutScenes 1 1 0
[2018.02.05-03.19.58:891][699]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevelCutScenes 1 1 0
[2018.02.05-03.19.58:898][700]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevelGameplay 1 1 0
[2018.02.05-03.19.58:921][700]LogStreaming: Display: UWorld::AddToWorld: routing Initialize on actors for /Game/Levels/InnerLevels/TreeLevel took (less than) 21.32 ms
[2018.02.05-03.19.58:922][701]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevelGameplay 1 1 0
[2018.02.05-03.19.58:928][702]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevelLighting 1 1 0
[2018.02.05-03.19.58:934][703]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevelLighting 1 1 0
[2018.02.05-03.19.58:937][704]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevelSound 1 1 0
[2018.02.05-03.19.58:941][705]LogLevel: ActivateLevel /Game/Levels/InnerLevels/TreeLevelSound 1 1 0
[2018.02.05-03.19.58:961][707]LogStaticMesh: Allocated 512x434x128 distance field atlas = 54.3Mb, with 196 objects containing 41.8Mb backing data
[2018.02.05-03.20.12:113][830]LogSlate: Request Window 'ATMA BUILD 0.0.6.3' being destroyed
[2018.02.05-03.20.12:113][830]LogStreaming: Display: Suspending async loading (1)
[2018.02.05-03.20.12:151][830]LogStreaming: Display: Resuming async loading (0)
[2018.02.05-03.20.12:151][830]LogSlate: Window 'ATMA BUILD 0.0.6.3' being destroyed
[2018.02.05-03.20.12:151][830]LogWindowsTextInputMethodSystem: Display: IME system now deactivated.
[2018.02.05-03.20.12:151][830]LogWindowsTextInputMethodSystem: Display: IME system now deactivated.
[2018.02.05-03.20.12:156][830]LogEngine: All Windows Closed
[2018.02.05-03.20.12:156][830]LogWindows: FPlatformMisc::RequestExit(0)
[2018.02.05-03.20.12:809][831]LogStreaming: Display: Suspending async loading (1)
[2018.02.05-03.20.12:813][831]LogStreaming: Display: Resuming async loading (0)
[2018.02.05-03.20.12:852][831]LogExit: Preparing to exit.
[2018.02.05-03.20.12:852][831]LogMoviePlayer: Shutting down movie player
[2018.02.05-03.20.12:857][831]LogExit: Game engine shut down
[2018.02.05-03.20.12:888][831]LogExit: Object subsystem successfully closed.
[2018.02.05-03.20.12:915][831]LogD3D11RHI: Shutdown
[2018.02.05-03.20.12:915][831]LogD3D11RHI: CleanupD3DDevice
[2018.02.05-03.20.12:953][831]LogD3D11RHI: ~FD3D11DynamicRHI
[2018.02.05-03.20.12:953][831]LogModuleManager: Shutting down and abandoning module AutomationController (160)
[2018.02.05-03.20.12:953][831]LogModuleManager: Shutting down and abandoning module AutomationWorker (158)
[2018.02.05-03.20.12:953][831]LogModuleManager: Shutting down and abandoning module AIModule (156)
[2018.02.05-03.20.12:954][831]LogModuleManager: Shutting down and abandoning module GameplayDebugger (155)
[2018.02.05-03.20.12:954][831]LogModuleManager: Shutting down and abandoning module WmfMediaFactory (152)
[2018.02.05-03.20.12:954][831]LogModuleManager: Shutting down and abandoning module OpenExrWrapper (150)
[2018.02.05-03.20.12:954][831]LogModuleManager: Shutting down and abandoning module ImgMediaFactory (148)
[2018.02.05-03.20.12:954][831]LogModuleManager: Shutting down and abandoning module AvfMediaFactory (146)
[2018.02.05-03.20.12:954][831]LogModuleManager: Shutting down and abandoning module CharacterAI (144)
[2018.02.05-03.20.12:954][831]LogModuleManager: Shutting down and abandoning module SessionServices (142)
[2018.02.05-03.20.12:954][831]LogModuleManager: Shutting down and abandoning module MovieSceneTracks (140)
[2018.02.05-03.20.12:954][831]LogModuleManager: Shutting down and abandoning module MovieScene (138)
[2018.02.05-03.20.12:954][831]LogModuleManager: Shutting down and abandoning module GeometryCache (136)
[2018.02.05-03.20.12:954][831]LogModuleManager: Shutting down and abandoning module StreamingPauseRendering (134)
[2018.02.05-03.20.12:954][831]LogModuleManager: Shutting down and abandoning module AnalyticsET (132)
[2018.02.05-03.20.12:954][831]LogModuleManager: Shutting down and abandoning module ProfilerService (130)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module TaskGraph (128)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module ProceduralMeshComponent (126)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module CustomMeshComponent (124)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module CableComponent (122)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module ArchVisCharacter (120)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module ActorSequence (116)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module MediaCompositing (114)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module RuntimeMeshComponent (112)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module SteamController (110)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module ATMA (108)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module RuntimePhysXCooking (106)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module PhysXVehicles (104)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module ImmediatePhysics (102)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module UdpMessaging (100)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module TcpMessaging (98)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module FacialAnimation (96)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module LightPropagationVolumeRuntime (94)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module Paper2D (92)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module ApexDestruction (90)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module VictoryBPLibrary (88)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module WindowsMoviePlayer (86)
[2018.02.05-03.20.13:052][831]LogModuleManager: Shutting down and abandoning module WmfMedia (84)
[2018.02.05-03.20.13:060][831]LogModuleManager: Shutting down and abandoning module ImgMedia (82)
[2018.02.05-03.20.13:060][831]LogModuleManager: Shutting down and abandoning module PacketHandler (80)
[2018.02.05-03.20.13:060][831]LogModuleManager: Shutting down and abandoning module ClothingSystemRuntime (78)
[2018.02.05-03.20.13:060][831]LogModuleManager: Shutting down and abandoning module MediaAssets (76)
[2018.02.05-03.20.13:060][831]LogModuleManager: Shutting down and abandoning module Overlay (74)
[2018.02.05-03.20.13:060][831]LogModuleManager: Shutting down and abandoning module UMG (72)
[2018.02.05-03.20.13:060][831]LogModuleManager: Shutting down and abandoning module SlateReflector (70)
[2018.02.05-03.20.13:060][831]LogModuleManager: Shutting down and abandoning module Slate (68)
[2018.02.05-03.20.13:060][831]LogModuleManager: Shutting down and abandoning module MRMesh (66)
[2018.02.05-03.20.13:060][831]LogModuleManager: Shutting down and abandoning module Messaging (64)
[2018.02.05-03.20.13:060][831]LogModuleManager: Shutting down and abandoning module HeadMountedDisplay (62)
[2018.02.05-03.20.13:060][831]LogModuleManager: Shutting down and abandoning module XAudio2 (60)
[2018.02.05-03.20.13:060][831]LogModuleManager: Shutting down and abandoning module Networking (58)
[2018.02.05-03.20.13:060][831]LogModuleManager: Shutting down and abandoning module Core (54)
[2018.02.05-03.20.13:060][831]LogModuleManager: Shutting down and abandoning module LevelSequence (52)
[2018.02.05-03.20.13:060][831]LogModuleManager: Shutting down and abandoning module Media (50)
[2018.02.05-03.20.13:068][831]LogModuleManager: Shutting down and abandoning module ImageWrapper (46)
[2018.02.05-03.20.13:068][831]LogModuleManager: Shutting down and abandoning module InputCore (44)
[2018.02.05-03.20.13:068][831]LogModuleManager: Shutting down and abandoning module PhysXCooking (42)
[2018.02.05-03.20.13:068][831]LogModuleManager: Shutting down and abandoning module ExampleDeviceProfileSelector (40)
[2018.02.05-03.20.13:068][831]LogModuleManager: Shutting down and abandoning module OnlineSubsystem (36)
[2018.02.05-03.20.13:068][831]LogModuleManager: Shutting down and abandoning module XMPP (35)
[2018.02.05-03.20.13:068][831]LogModuleManager: Shutting down and abandoning module HTTP (33)
[2018.02.05-03.20.13:068][831]LogHttp: Display: Http module shutting down, but needs to wait on 1 outstanding Http requests:
[2018.02.05-03.20.13:068][831]LogHttp: Display: 	verb=[POST] url=[https://datarouter.ol.epicgames.com/datarouter/api/v1/public/data?SessionID=%7B223DC60B-4CB4-EF7D-B436-63AAACAC16B9%7D&AppID=UEGame.UnrealEngine.Release%7C8E48BE93480786B33A7ACB9AA9D25449%7CATMA&AppVersion=4.18.3-0%2B%2B%2BUE4%2BRelease_Version_Ujwal-4.18&UserID=ANON-%7B91E03E32-4B12-ABF2-32BF-ECB7613F508C%7D%7C%7C&AppEnvironment=datacollector-source&UploadType=eteventstream] status=Processing
[2018.02.05-03.20.13:068][831]LogHttp: Display: Sleeping 0.5s to wait for 1 outstanding Http requests.
[2018.02.05-03.20.13:585][831]LogModuleManager: Shutting down and abandoning module SSL (32)
[2018.02.05-03.20.13:585][831]LogModuleManager: Shutting down and abandoning module ShaderCore (28)
[2018.02.05-03.20.13:585][831]LogModuleManager: Shutting down and abandoning module Landscape (26)
[2018.02.05-03.20.13:585][831]LogModuleManager: Shutting down and abandoning module SlateRHIRenderer (24)
[2018.02.05-03.20.13:585][831]LogModuleManager: Shutting down and abandoning module OpenGLDrv (22)
[2018.02.05-03.20.13:585][831]LogModuleManager: Shutting down and abandoning module D3D11RHI (20)
[2018.02.05-03.20.13:585][831]LogModuleManager: Shutting down and abandoning module AnimGraphRuntime (18)
[2018.02.05-03.20.13:585][831]LogModuleManager: Shutting down and abandoning module Renderer (16)
[2018.02.05-03.20.13:585][831]LogModuleManager: Shutting down and abandoning module Engine (14)
[2018.02.05-03.20.13:585][831]LogModuleManager: Shutting down and abandoning module CoreUObject (12)
[2018.02.05-03.20.13:585][831]LogModuleManager: Shutting down and abandoning module NetworkFile (10)
[2018.02.05-03.20.13:585][831]LogModuleManager: Shutting down and abandoning module CookedIterativeFile (8)
[2018.02.05-03.20.13:585][831]LogModuleManager: Shutting down and abandoning module StreamingFile (6)
[2018.02.05-03.20.13:585][831]LogModuleManager: Shutting down and abandoning module SandboxFile (4)
[2018.02.05-03.20.13:585][831]LogModuleManager: Shutting down and abandoning module PakFile (2)
[2018.02.05-03.20.13:587][831]LogExit: Exiting.
[2018.02.05-03.20.13:588][831]Log file closed, 02/04/18 22:20:13

Looks like you are running a for loop on an array and changing the size of the array within the loop itself. That causes an error because the for loop doesn’t know anymore how many elements it has to loop over.

Hmm that’s interesting, since this occurs on level load, it might be from the way I programmed my level streaming, but I specifically targeted that problem by iterating over one array and adding loaded or unloaded levels to another array and then comparing the two to see which levels were loaded or unloaded so that I wasn’t performing the operation more than once on one level.

So I’ve tracked down the problem to be related with the Async Loading Thread Enabled Option under Package-Streaming, problem is is that if I disable it, the physics and collisions in my packaged game breaks. And to be extra sure I checked all the foreach loops and made sure none of the TArrays were being modified inside and all of them came out clean.

This seems to be generated by TextureStreaming. A quick search showed that others have had similar issues. Maybe this one can help:

This is the stack strace:

[2018.02.07-13.08.35:499][642]LogOutputDevice: Error: Ensure condition failed: Lhs.CurrentNum == Lhs.InitialNum [File:E:\UnrealEngine\Release_Version_Ujwal\Engine\Source\Runtime\Core\Public\Containers/Array.h] [Line: 206]
[2018.02.07-13.08.35:499][642]LogOutputDevice: Error: Array has changed during ranged-for iteration!
[2018.02.07-13.08.35:499][642]LogOutputDevice: Error: Stack: 
[2018.02.07-13.08.35:499][642]LogOutputDevice: Error: [Callstack] 0x00000000DE1AFCF6 ATMA.exe!FWindowsPlatformStackWalk::StackWalkAndDump() []
[2018.02.07-13.08.35:499][642]LogOutputDevice: Error: [Callstack] 0x00000000DDFF99E1 ATMA.exe!FDebug::EnsureFailed() []
[2018.02.07-13.08.35:499][642]LogOutputDevice: Error: [Callstack] 0x00000000DE016896 ATMA.exe!FDebug::OptionallyLogFormattedEnsureMessageReturningFalse() []
[2018.02.07-13.08.35:499][642]LogOutputDevice: Error: [Callstack] 0x00000000DF56C822 ATMA.exe!FDynamicTextureInstanceManager::IncrementalUpdate() []
[2018.02.07-13.08.35:499][642]LogOutputDevice: Error: [Callstack] 0x00000000DF56D81D ATMA.exe!FStreamingManagerTexture::IncrementalUpdate() []
[2018.02.07-13.08.35:499][642]LogOutputDevice: Error: [Callstack] 0x00000000DF58E8A8 ATMA.exe!FStreamingManagerTexture::UpdateResourceStreaming() []
[2018.02.07-13.08.35:499][642]LogOutputDevice: Error: [Callstack] 0x00000000DEDAE6D5 ATMA.exe!FStreamingManagerCollection::UpdateResourceStreaming() []
[2018.02.07-13.08.35:499][642]LogOutputDevice: Error: [Callstack] 0x00000000DEDAB32B ATMA.exe!FStreamingManagerCollection::Tick() []
[2018.02.07-13.08.35:499][642]LogOutputDevice: Error: [Callstack] 0x00000000DED49635 ATMA.exe!UGameEngine::Tick() []
[2018.02.07-13.08.35:499][642]LogOutputDevice: Error: [Callstack] 0x00000000DDFB7138 ATMA.exe!FEngineLoop::Tick() []

It doesn’t seem to be coming from any of my code

Ok, definitely we need to go more in depth on this error. Question: did you compile the engine yourself or is this a standard release? Another question: did you install the the Debug Symbols for it? Finally: Is there any additional information in the .log which could hint to something being wrong with your Textures?

I enabled never stream for all my textures, repackaged and still didn’t fix the issue

Yes I compiled the engine myself, I think I installed the debug symbols as I am able to debug the editor and the packaged game although as far as the packaged game is concerned I can’t set break points in the engine code. And for the log there’s multiple warnings that are there for one of my widget classes where it says “using slow createwidget path because this class could not be templated” and since I have both an amd and Nvidia card installed in my system I get at the very beginning of the log multiple instances of “GetVideoDriverDetailsInvalid PrimaryIsNotTheChoosenAdapter” and the ensure failed error also only occurs in the middle of level streaming.

Ok, did you try already to:

  1. Delete the Intermediate, Saved and Build folders, then reopen and play your project
  2. Migrate your levels to a brand new project and see if that solves the issue

Maybe it is just a problem of corrupted working files which result in a TextureStreaming error.

And another thing that puzzles me. If you built the engine yourself from source code and you are using a DEBUG build, you should be able to place breakpoints in the engine source code. You may want to double check that.

Okay so I migrated my assets to a new project and now I am able to disable async loading thread enabled without breaking the physics and now the error disappears. I guess for now I’ll just assume that the error is coming from that option and that’s its broken in 4.18, I’ll test it out with 4.19 when it is released and see if it resolved. As for the debugging I’m not sure why but using either debug editor or debug game profiles in visual studio and hooking it with my packaged game doesn’t allow me to set breakpoints in engine code, and it might the debug files that the game puts in the directory are only for the game code and not engine code.

I solved an issue similar to this and hope this message helps someone in the future. I had crashes only in packaged builds (never editor) with the following log error:

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address ...

and

Warning: CreateProc failed: The system cannot find the file specified. 

Experienced devs told me 99% of the time it’s a null pointer error, meaning you are referencing something in your c++ or blueprints which can’t be referenced (usually because it doesn’t exist, for example it hasn’t yet been instantiated). This was true in my case.

The way to solve this issue:

  1. Look in your log folder. ([yourprojectname]>Saved>Crashes). Look for the FATAL ERROR near the end and look underneath that for the callstack hint which will steer you where your problem is. In my case, it looked like this:

    [2018.07.30-19.19.53:720][ 0]LogWindows: Error: Fatal error!
    [2018.07.30-19.19.53:720][ 0]LogWindows: Error:
    [2018.07.30-19.19.53:720][ 0]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xfad70000
    [2018.07.30-19.19.53:720][ 0]LogWindows: Error:
    [2018.07.30-19.19.53:720][ 0]LogWindows: Error: [Callstack] 0x00007ff716532680
    AAADragonFresh.exe!AlgoImpl::IntroSortInternal<TBitArray,FIdentityFunctor,TDereferenceWrapper<TBitArray,TGreater<TBitArray > > >() []
    [2018.07.30-19.19.53:720][ 0]LogWindows: Error: [Callstack] 0x00007ff7165ca3b9 AAADragonFresh.exe!FSkeletalMeshLODRenderData::InitResources() []
    Notice the last message in mine. It contains the words “skeletalMesh”, “sort”, “TBitArray”. In my case, the null pointer was a reference to a skeletal mesh inside of a switch.

  2. Go into a blueprint you think the log could be referring to and disconnect the tick, begin play, and constructor wires, effectively deactivating the blueprint, and then package and run. If it stops crashing, you’ve found the blueprint with your toxic reference. You’re zeroing in!

  3. Reconnect your wires and disconnect only the part you think is responsible until the packaged build stops crashing. Find your bad reference, and then figure out why it’s a bad reference. Have you instantiated it yet? (You can put in printstrings, or you can put in breakpoints and step through your blueprints to find out). In my case, it was something stranger which really threw me off: I had imported the mesh from Blender with the skeleton turned to invisible. This was enough to throw off ue4, but only when ue4 was trying to load it (hence why only the crashes in packaged builds).

The first time debugging something like this is hell, but have faith that you can and will get through it, and once you do, you’ll have tremendous confidence moving forward!

1 Like

Thanks for the post on this, as a blueprint programmer (building in source) it helps my mindset to understand the concept. Oddly I went through a PC upgrade and my project was started on Win7 and now is crashing on several unreal engine versions (4.19, 4.19.2 and 4.20.2) on Win10.

Still working on the issue but I’ve narrowed it down atleast!