My code suddenly stopped working (InstancedStaticMeshComponent->AddInstance())

It used to work perfectly, but then in the last compile it just crashes when I hit play.
So I’ve got a tile map with a bunch of tiles, so I made an actor that has nothing but an InstancedStaticMeshComponent, and on BeginPlay, the tile map goes through each of it’s tiles and replaces it with an InstancedStaticMesh.



    // Replace the static meshes of the tiles with instances. Otherwise the game will run like ■■■■
    TMap<UStaticMesh*, AInstancedStaticMesh*> meshes;
    if (UWorld* world = GetWorld()) {
        for (auto tile : tiles) {
            UStaticMesh* mesh = tile->GetStaticMesh()->GetStaticMesh();
            if (!meshes.Contains(mesh)) {
                AInstancedStaticMesh* instancedStaticMesh = world->SpawnActor<AInstancedStaticMesh>();
                meshes.Add(mesh, instancedStaticMesh);
                instancedStaticMesh->SetMesh(mesh);
            }
            meshes[mesh]->AddInstance(tile->GetTransform());
            tile->GetStaticMesh()->SetStaticMesh(nullptr);
        }
    }


The AddInstance() function is just this btw
int32 AddInstance(FTransform transform) { return mesh->AddInstance(transform); }

I’ve gone through every line of the code and the only thing that crashes the game is when I call AddInstance and it’s mesh->AddInstance(transform);
If I just make it return 0 instead, it doesn’t crash the game. Anyone have any idea what to do? Because adding instances didn’t crash before.

Find the log file (in Saved/Logs/ProjectName.log) and post the stack trace.

Log file open, 09/28/17 23:31:15
LogWindows: Failed to load ‘aqProf.dll’ (GetLastError=126)
LogWindows: File ‘aqProf.dll’ does not exist
LogWindows: Failed to load ‘VSPerf140.dll’ (GetLastError=126)
LogWindows: File ‘VSPerf140.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
LogInit: Display: Running engine for game: DC
LogPlatformFile: Not using cached read wrapper
LogInit: Display: RandInit(1837659897) SRandInit(1837659897).
LogTaskGraph: Started task graph with 5 named threads and 14 total threads with 3 sets of task threads.
LogStats: Stats thread started at 0.180597
LogD3D11RHI: Aftermath initialized
LogPluginManager: Mounting plugin Paper2D
LogPluginManager: Mounting plugin LightPropagationVolume
LogPluginManager: Mounting plugin CodeLiteSourceCodeAccess
LogPluginManager: Mounting plugin GitSourceControl
LogPluginManager: Mounting plugin KDevelopSourceCodeAccess
LogPluginManager: Mounting plugin NullSourceCodeAccess
LogPluginManager: Mounting plugin PerforceSourceControl
LogPluginManager: Mounting plugin SubversionSourceControl
LogPluginManager: Mounting plugin UObjectPlugin
LogPluginManager: Mounting plugin VisualStudioSourceCodeAccess
LogPluginManager: Mounting plugin XCodeSourceCodeAccess
LogPluginManager: Mounting plugin AssetManagerEditor
LogPluginManager: Mounting plugin AudioCapture
LogPluginManager: Mounting plugin FacialAnimation
LogPluginManager: Mounting plugin GameplayTagsEditor
LogPluginManager: Mounting plugin MobileLauncherProfileWizard
LogPluginManager: Mounting plugin PluginBrowser
LogPluginManager: Mounting plugin SpeedTreeImporter
LogPluginManager: Mounting plugin AlembicImporter
LogPluginManager: Mounting plugin CharacterAI
LogPluginManager: Mounting plugin HTML5Networking
LogPluginManager: Mounting plugin AndroidMedia
LogPluginManager: Mounting plugin AvfMedia
LogPluginManager: Mounting plugin MediaPlayerEditor
LogPluginManager: Mounting plugin WmfMedia
LogPluginManager: Mounting plugin TcpMessaging
LogPluginManager: Mounting plugin UdpMessaging
LogPluginManager: Mounting plugin LevelSequenceEditor
LogPluginManager: Mounting plugin MatineeToLevelSequence
LogPluginManager: Mounting plugin OnlineSubsystemGooglePlay
LogPluginManager: Mounting plugin OnlineSubsystemIOS
LogPluginManager: Mounting plugin OnlineSubsystem
LogPluginManager: Mounting plugin OnlineSubsystemNull
LogPluginManager: Mounting plugin OnlineSubsystemUtils
LogPluginManager: Mounting plugin AndroidDeviceProfileSelector
LogPluginManager: Mounting plugin AndroidMoviePlayer
LogPluginManager: Mounting plugin AndroidPermission
LogPluginManager: Mounting plugin AppleMoviePlayer
LogPluginManager: Mounting plugin ArchVisCharacter
LogPluginManager: Mounting plugin CableComponent
LogPluginManager: Mounting plugin CustomMeshComponent
LogPluginManager: Mounting plugin ExampleDeviceProfileSelector
LogPluginManager: Mounting plugin GoogleCloudMessaging
LogPluginManager: Mounting plugin ImmediatePhysics
LogPluginManager: Mounting plugin IOSDeviceProfileSelector
LogPluginManager: Mounting plugin LinuxDeviceProfileSelector
LogPluginManager: Mounting plugin LocationServicesBPLibrary
LogPluginManager: Mounting plugin MobilePatchingUtils
LogPluginManager: Mounting plugin OculusVR
LogPluginManager: Mounting plugin PhysXVehicles
LogPluginManager: Mounting plugin ProceduralMeshComponent
LogPluginManager: Mounting plugin RuntimePhysXCooking
LogPluginManager: Mounting plugin SteamVR
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-4.17-CL-3658906
LogInit: Engine Version: 4.17.2-3658906+++UE4+Release-4.17
LogInit: Compatible Engine Version: 4.17.0-3573198+++UE4+Release-4.17
LogInit: Net CL: 3573198
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): 28
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): 19
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): 7
LogInit: Compiled (64-bit): Sep 22 2017 13:47:16
LogInit: Compiled with Visual C++: 19.00.24215.01
LogInit: Build Configuration: Development
LogInit: Branch Name: ++UE4+Release-4.17
LogInit: Command line:
LogInit: Base directory: C:/Program Files/Epic Games/UE_4.17/Engine/Binaries/Win64/
LogInit: Installed Engine Build: 1
LogInit: Presizing for max 8388607 objects, including 0 objects not considered by GC, pre-allocating 0 bytes for permanent pool.
LogInit: Object subsystem initialized
[2017.09.29-06.31.17:195] 0]LogInit: Selected Device Profile: [Windows]
[2017.09.29-06.31.17:195] 0]LogInit: Applying CVar settings loaded from the selected device profile: [Windows]
[2017.09.29-06.31.17:723] 0]LogInit: Computer: DESKTOP-S65FQVT
[2017.09.29-06.31.17:723] 0]LogInit: User: Ispheria
[2017.09.29-06.31.17:723] 0]LogInit: CPU Page size=4096, Cores=4
[2017.09.29-06.31.17:723] 0]LogInit: High frequency timer resolution =3.312657 MHz
[2017.09.29-06.31.17:723] 0]LogMemory: Memory total: Physical=15.9GB (16GB approx)
[2017.09.29-06.31.17:724] 0]LogMemory: Platform Memory Stats for Windows
[2017.09.29-06.31.17:724] 0]LogMemory: Process Physical Memory: 278.57 MB used, 278.57 MB peak
[2017.09.29-06.31.17:724] 0]LogMemory: Process Virtual Memory: 274.11 MB used, 274.11 MB peak
[2017.09.29-06.31.17:724] 0]LogMemory: Physical Memory: 8384.00 MB used, 7939.19 MB free, 16323.19 MB total
[2017.09.29-06.31.17:724] 0]LogMemory: Virtual Memory: 673.59 MB used, 7939.19 MB free, 134217728.00 MB total
[2017.09.29-06.31.18:150] 0]LogInit: Using OS detected language (en-US).
[2017.09.29-06.31.18:150] 0]LogInit: Using OS detected locale (en-US).
[2017.09.29-06.31.18:208] 0]LogTextLocalizationManager: No specific localization for ‘en-US’ exists, so the ‘en’ localization will be used.
[2017.09.29-06.31.20:902] 0]LogD3D11RHI: D3D11 adapters:
[2017.09.29-06.31.21:499] 0]LogD3D11RHI: 0. ‘NVIDIA GeForce GTX 970’ (Feature Level 11_0)
[2017.09.29-06.31.21:499] 0]LogD3D11RHI: 4058/0/8161 MB DedicatedVideo/DedicatedSystem/SharedSystem, Outputs:1, VendorId:0x10de
[2017.09.29-06.31.21:509] 0]LogD3D11RHI: 1. ‘Microsoft Basic Render Driver’ (Feature Level 11_0)
[2017.09.29-06.31.21:509] 0]LogD3D11RHI: 0/0/8161 MB DedicatedVideo/DedicatedSystem/SharedSystem, Outputs:0, VendorId:0x1414
[2017.09.29-06.31.21:509] 0]LogD3D11RHI: Chosen D3D11 Adapter: 0
[2017.09.29-06.31.21:517] 0]LogD3D11RHI: Creating new Direct3DDevice
[2017.09.29-06.31.21:517] 0]LogD3D11RHI: GPU DeviceId: 0x13c2 (for the marketing name, search the web for “GPU Device Id”)
[2017.09.29-06.31.21:517] 0]LogWindows: EnumDisplayDevices:
[2017.09.29-06.31.21:517] 0]LogWindows: 0. ‘NVIDIA GeForce GTX 970’ (P:1 D:1)
[2017.09.29-06.31.21:517] 0]LogWindows: 1. ‘NVIDIA GeForce GTX 970’ (P:0 D:0)
[2017.09.29-06.31.21:517] 0]LogWindows: 2. ‘NVIDIA GeForce GTX 970’ (P:0 D:0)
[2017.09.29-06.31.21:517] 0]LogWindows: 3. ‘NVIDIA GeForce GTX 970’ (P:0 D:0)
[2017.09.29-06.31.21:518] 0]LogWindows: DebugString: FoundDriverCount:4
[2017.09.29-06.31.21:518] 0]LogD3D11RHI: Adapter Name: NVIDIA GeForce GTX 970
[2017.09.29-06.31.21:518] 0]LogD3D11RHI: Driver Version: 385.69 (internal:22.21.13.8569, unified:385.69)
[2017.09.29-06.31.21:518] 0]LogD3D11RHI: Driver Date: 9-16-2017
[2017.09.29-06.31.21:518] 0]LogRHI: Texture pool is 1361 MB (70% of 1945 MB)
[2017.09.29-06.31.22:074] 0]LogD3D11RHI: Async texture creation enabled
[2017.09.29-06.31.22:171] 0]LogD3D11RHI: GPU Timing Frequency: 1000.000000 (Debug: 2 1)
[2017.09.29-06.31.22:223] 0]LogShaderCompilers: Guid format shader working directory is 22 characters bigger than the processId version (J:/Unreal Projects/4.17/DC/Intermediate/Shaders/WorkingDirectory/15268/).
[2017.09.29-06.31.22:223] 0]LogShaderCompilers: Cleaned the shader compiler working directory ‘C:/Users/Ispheria/AppData/Local/Temp/UnrealShaderWorkingDir/65A138B94878B04B97B78B9B5B3A85EE/’.
[2017.09.29-06.31.22:224] 0]LogShaderCompilers: Display: Using Local Shader Compiler.
[2017.09.29-06.31.24:246] 0]LogTemp: Display: Loaded TP AllDesktopTargetPlatform
[2017.09.29-06.31.24:295] 0]LogTemp: Display: Loaded TP MacClientTargetPlatform
[2017.09.29-06.31.24:345] 0]LogTemp: Display: Loaded TP MacNoEditorTargetPlatform
[2017.09.29-06.31.24:394] 0]LogTemp: Display: Loaded TP MacServerTargetPlatform
[2017.09.29-06.31.24:448] 0]LogTemp: Display: Loaded TP MacTargetPlatform
[2017.09.29-06.31.24:496] 0]LogTemp: Display: Loaded TP WindowsClientTargetPlatform
[2017.09.29-06.31.24:544] 0]LogTemp: Display: Loaded TP WindowsNoEditorTargetPlatform
[2017.09.29-06.31.24:593] 0]LogTemp: Display: Loaded TP WindowsServerTargetPlatform
[2017.09.29-06.31.24:637] 0]LogTemp: Display: Loaded TP WindowsTargetPlatform
[2017.09.29-06.31.24:689] 0]LogTemp: Display: Loaded TP AndroidTargetPlatform
[2017.09.29-06.31.24:737] 0]LogTemp: Display: Loaded TP Android_ASTCTargetPlatform
[2017.09.29-06.31.24:785] 0]LogTemp: Display: Loaded TP Android_ATCTargetPlatform
[2017.09.29-06.31.24:833] 0]LogTemp: Display: Loaded TP Android_DXTTargetPlatform
[2017.09.29-06.31.24:881] 0]LogTemp: Display: Loaded TP Android_ETC1TargetPlatform
[2017.09.29-06.31.24:930] 0]LogTemp: Display: Loaded TP Android_ETC2TargetPlatform
[2017.09.29-06.31.25:026] 0]LogTemp: Display: Loaded TP Android_MultiTargetPlatform
[2017.09.29-06.31.25:026] 0]LogTemp: Display: Loaded TP Android_PVRTCTargetPlatform
[2017.09.29-06.31.25:064] 0]LogTemp: Display: Loaded TP HTML5TargetPlatform
[2017.09.29-06.31.25:162] 0]LogTemp: Display: Loaded TP IOSTargetPlatform
[2017.09.29-06.31.25:198] 0]LogTemp: Display: Loaded TP TVOSTargetPlatform
[2017.09.29-06.31.25:245] 0]LogTemp: Display: Loaded TP LinuxClientTargetPlatform
[2017.09.29-06.31.25:293] 0]LogTemp: Display: Loaded TP LinuxNoEditorTargetPlatform
[2017.09.29-06.31.25:342] 0]LogTemp: Display: Loaded TP LinuxServerTargetPlatform
[2017.09.29-06.31.25:394] 0]LogTemp: Display: Loaded TP LinuxTargetPlatform
[2017.09.29-06.31.25:394] 0]LogTargetPlatformManager: Display: Building Assets For Windows
[2017.09.29-06.31.26:063] 0]LogDerivedDataCache: Display: Max Cache Size: 512 MB
[2017.09.29-06.31.26:447] 0]LogDerivedDataCache: Loaded boot cache 0.38s 93MB C:/Users/Ispheria/AppData/Local/UnrealEngine/4.17/DerivedDataCache/Boot.ddc.
[2017.09.29-06.31.26:447] 0]LogDerivedDataCache: Display: Loaded Boot cache: C:/Users/Ispheria/AppData/Local/UnrealEngine/4.17/DerivedDataCache/Boot.ddc
[2017.09.29-06.31.26:447] 0]LogDerivedDataCache: FDerivedDataBackendGraph: Pak pak cache file J:/Unreal Projects/4.17/DC/DerivedDataCache/DDC.ddp not found, will not use a pak cache.
[2017.09.29-06.31.26:447] 0]LogDerivedDataCache: Unable to find inner node Pak for hierarchical cache Hierarchy.
[2017.09.29-06.31.26:447] 0]LogDerivedDataCache: FDerivedDataBackendGraph: CompressedPak pak cache file J:/Unreal Projects/4.17/DC/DerivedDataCache/Compressed.ddp not found, will not use a pak cache.
[2017.09.29-06.31.26:447] 0]LogDerivedDataCache: Unable to find inner node CompressedPak for hierarchical cache Hierarchy.
[2017.09.29-06.31.26:475] 0]LogDerivedDataCache: Display: Pak cache opened for reading …/…/…/Engine/DerivedDataCache/Compressed.ddp.
[2017.09.29-06.31.26:487] 0]LogDerivedDataCache: Using Local data cache path C:/Users/Ispheria/AppData/Local/UnrealEngine/Common/DerivedDataCache: Writable
[2017.09.29-06.31.26:501] 0]LogMaterial: Verifying Global Shaders for PCD3D_SM5
[2017.09.29-06.31.26:508] 0]LogSlate: Using Freetype 2.6.0
[2017.09.29-06.31.26:616] 0]LogSlate: SlateFontCache - WITH_FREETYPE: 1, WITH_HARFBUZZ: 1
[2017.09.29-06.31.26:617] 0]LogSlate: SlateFontCache - WITH_FREETYPE: 1, WITH_HARFBUZZ: 1
[2017.09.29-06.31.29:674] 0]LogAssetRegistry: FAssetRegistry took 0.0289 seconds to start up
[2017.09.29-06.31.29:864] 0]LogInit: Selected Device Profile: [Windows]
[2017.09.29-06.31.30:297] 0]LogContentStreaming: Texture pool size is 0.00 MB
[2017.09.29-06.31.30:716] 0]LogSimplygon: Simplygon DLL not present - disabling.
[2017.09.29-06.31.30:760] 0]LogMeshReduction: Using SimplygonSwarm for distributed automatic mesh merging
[2017.09.29-06.31.30:760] 0]LogMeshReduction: Using QuadricMeshReduction for automatic static mesh reduction
[2017.09.29-06.31.30:760] 0]LogMeshReduction: No automatic skeletal mesh reduction module available
[2017.09.29-06.31.30:760] 0]LogMeshReduction: No automatic mesh merging module available
[2017.09.29-06.31.30:760] 0]LogMeshMerging: No automatic mesh merging module available
[2017.09.29-06.31.31:613] 0]LogNetVersion: DC , NetCL: 3573198, EngineNetVer: 2, GameNetVer: 0 (Checksum: 1081643899)
[2017.09.29-06.31.33:171] 0]LogPackageLocalizationCache: Processed 5 localized package path(s) for 2 prioritized culture(s) in 1.066631 seconds
[2017.09.29-06.31.33:193] 0]LogUObjectArray: 35825 objects as part of root set at end of initial load.
[2017.09.29-06.31.33:193] 0]LogUObjectAllocator: 7529104 out of 0 bytes used by permanent object pool.
[2017.09.29-06.31.33:193] 0]LogUObjectArray: CloseDisregardForGC: 0/0 objects in disregard for GC pool
[2017.09.29-06.31.33:286] 0]LogInit: WinSock: version 1.1 (2.2), MaxSocks=32767, MaxUdp=65467
[2017.09.29-06.31.38:395] 0]LogTcpMessaging: Initializing TcpMessaging bridge
[2017.09.29-06.31.38:438] 0]LogUdpMessaging: Initializing bridge on interface 0.0.0.0:0 to multicast group 230.0.0.1:6666.
[2017.09.29-06.31.40:087] 0]LogStats: FPlatformStackWalk::StackWalkAndDump - 0.584 s
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: === Handled ensure: ===
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error:
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: Ensure condition failed: MyOwnerWorld [File:D:\Build++UE4+Release-4.17+Compile\Sync\Engine\Source\Runtime\Engine\Private\Components\ActorComponent.cpp] [Line: 1026]
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error:
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: Stack:
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor-Core.dll!0x00000000C6FB3E36
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor-Core.dll!0x00000000C6D3C2D2
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor-Core.dll!0x00000000C6D54746
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor-Engine.dll!0x00000000C1569AFB
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor-DC-7173.dll!AInstancedStaticMesh::AInstancedStaticMesh() [j:\unreal projects\4.17\dc\source\dc\instancedstaticmesh.cpp:13]
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor-CoreUObject.dll!0x00000000D913A182
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor-CoreUObject.dll!0x00000000D93A33DB
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor-CoreUObject.dll!0x00000000D9386E03
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor-CoreUObject.dll!0x00000000D913BE97
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor-Core.dll!0x00000000C6BD8220
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor-Core.dll!0x00000000C6E268D0
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor-Projects.dll!0x00000000EC47D3CD
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor-Projects.dll!0x00000000EC47D6DE
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor.exe!0x00000000A76664B1
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor.exe!0x00000000A766A7BD
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor.exe!0x00000000A766379A
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor.exe!0x00000000A76639EA
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor.exe!0x00000000A76702D9
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: UE4Editor.exe!0x00000000A7671C47
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: KERNEL32.DLL!0x000000000B692774
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error: ntdll.dll!0x000000000D810D51
[2017.09.29-06.31.40:087] 0]LogOutputDevice: Error:
[2017.09.29-06.31.40:090] 0]LogStats: SubmitErrorReport - 0.000 s
[2017.09.29-06.31.40:635] 0]LogStats: SendNewReport - 0.545 s
[2017.09.29-06.31.40:635] 0]LogStats: FDebug::EnsureFailed - 1.134 s
[2017.09.29-06.31.41:093] 0]LogMaterial: Uniform references updated for custom material expression Custom.
[2017.09.29-06.31.41:693] 0]SourceControl: Source control is disabled
[2017.09.29-06.31.41:693] 0]SourceControl: Source control is disabled
[2017.09.29-06.31.41:760] 0]SourceControl: Source control is disabled
[2017.09.29-06.31.41:820] 0]SourceControl: Source control is disabled
[2017.09.29-06.31.42:545] 0]LogAndroidPermission: UAndroidPermissionCallbackProxy::GetInstance
[2017.09.29-06.31.42:814] 0]LogOcInput: OculusInput pre-init called
[2017.09.29-06.31.43:178] 0]LogEngine: Initializing Engine…
[2017.09.29-06.31.43:183] 0]LogHMD: Failed to initialize OpenVR with code 110
[2017.09.29-06.31.43:581] 0]LogStats: UGameplayTagsManager::ConstructGameplayTagTree: Construct from data asset - 0.000 s
[2017.09.29-06.31.43:582] 0]LogStats: UGameplayTagsManager::ConstructGameplayTagTree: GameplayTagTreeChangedEvent.Broadcast - 0.000 s
[2017.09.29-06.31.43:773] 0]LogAIModule: Creating AISystem for world Untitled
[2017.09.29-06.31.43:804] 0]LogInit: XAudio2 using ‘ASUS PB278-4 (NVIDIA High Definition Audio)’ : 2 channels at 48 kHz using 16 bits per sample (channel mask 0x3)
[2017.09.29-06.31.43:816] 0]LogInit: FAudioDevice initialized.
[2017.09.29-06.31.43:989] 0]LogDerivedDataCache: Saved boot cache 0.17s 93MB C:/Users/Ispheria/AppData/Local/UnrealEngine/4.17/DerivedDataCache/Boot.ddc.
[2017.09.29-06.31.44:006] 0]LogInit: Texture streaming: Enabled
[2017.09.29-06.31.44:142] 0]LogEngineSessionManager: EngineSessionManager initialized
[2017.09.29-06.31.44:142] 0]LogEngineSessionManager: EngineSessionManager sent abnormal shutdown report. Type=Crashed, SessionId={48E70395-41F9-ACD1-DF6A-4285AE092F36}
[2017.09.29-06.31.44:508] 0]LogInit: Transaction tracking system initialized
[2017.09.29-06.31.44:879] 0]BlueprintLog: New page: Editor Load
[2017.09.29-06.31.46:351] 0]LocalizationService: Localization service is disabled
[2017.09.29-06.31.47:233] 0]LogConsoleResponse: Display:
[2017.09.29-06.31.47:794] 0]LogFileCache: Scanning file cache for directory ‘J:/Unreal Projects/4.17/DC/Content/’ took 0.02s
[2017.09.29-06.31.47:794] 0]LogCook: Display: Max memory allowance for cook 16384mb min free memory 0mb
[2017.09.29-06.31.47:795] 0]LogCook: Display: Mobile HDR setting 1
[2017.09.29-06.31.47:798] 0]LogGameplayTags: Display: UGameplayTagsManager::DoneAddingNativeTags. DelegateIsBound: 0
[2017.09.29-06.31.49:241] 0]SourceControl: Source control is disabled
[2017.09.29-06.31.49:245] 0]Cmd: MAP LOAD FILE="…/…/…/Engine/Content/Maps/Templates/Template_Default.umap" TEMPLATE=1 SHOWPROGRESS=1 FEATURELEVEL=3
[2017.09.29-06.31.49:252] 0]LightingResults: New page: Lighting Build
[2017.09.29-06.31.49:310] 0]MapCheck: New page: Map Check
[2017.09.29-06.31.49:310] 0]LightingResults: New page: Lighting Build
[2017.09.29-06.31.49:682] 0]LogAIModule: Creating AISystem for world Untitled_1
[2017.09.29-06.31.49:803] 0]LogEditorServer: Finished looking for orphan Actors (0.000 secs)
[2017.09.29-06.31.49:823] 0]Cmd: MAP CHECKDEP NOCLEARLOG
[2017.09.29-06.31.49:871] 0]MapCheck: Map check complete: 0 Error(s), 0 Warning(s), took 48.114ms to complete.
[2017.09.29-06.31.49:871] 0]LogFileHelpers: Loading map ‘Template_Default’ took 0.628
[2017.09.29-06.31.50:291] 0]LogCollectionManager: Loaded 0 collections in 0.001733 seconds
[2017.09.29-06.31.50:397] 0]LogFileCache: Scanning file cache for directory ‘J:/Unreal Projects/4.17/DC/Saved/Collections/’ took 0.01s
[2017.09.29-06.31.50:397] 0]LogFileCache: Scanning file cache for directory ‘J:/Unreal Projects/4.17/DC/Content/Developers/Ispheria/Collections/’ took 0.01s
[2017.09.29-06.31.50:397] 0]LogFileCache: Scanning file cache for directory ‘J:/Unreal Projects/4.17/DC/Content/Collections/’ took 0.01s
[2017.09.29-06.31.50:397] 0]LogCollectionManager: Rebuilt the GUID cache for 0 collections in 0.000000 seconds
[2017.09.29-06.31.50:412] 0]LogContentBrowser: Native class hierarchy populated in 0.0135 seconds. Added 2425 classes and 502 folders.
[2017.09.29-06.31.50:495] 0]LogContentBrowser: Native class hierarchy updated for ‘WidgetCarousel’ in 0.0022 seconds. Added 0 classes and 0 folders.
[2017.09.29-06.31.50:867] 0]LogContentBrowser: Native class hierarchy updated for ‘AddContentDialog’ in 0.0024 seconds. Added 0 classes and 0 folders.
[2017.09.29-06.31.50:938] 0]LogContentBrowser: Native class hierarchy updated for ‘WorldBrowser’ in 0.0023 seconds. Added 2 classes and 3 folders.
[2017.09.29-06.31.51:003] 0]LogContentBrowser: Native class hierarchy updated for ‘SceneOutliner’ in 0.0021 seconds. Added 1 classes and 2 folders.
[2017.09.29-06.31.51:408] 0]LogContentBrowser: Native class hierarchy updated for ‘HierarchicalLODOutliner’ in 0.0021 seconds. Added 1 classes and 2 folders.
[2017.09.29-06.31.51:409] 0]LogLoad: (Engine Initialization) Total time: 38.26 seconds
[2017.09.29-06.31.51:409] 0]LogLoad: (Engine Initialization) Total Blueprint compile time: 0.00 seconds
[2017.09.29-06.31.51:409] 0]LogExternalProfiler: No external profilers were discovered. External profiling features will not be available.
[2017.09.29-06.31.51:460] 0]LogContentStreaming: Texture pool size now 1000 MB
[2017.09.29-06.31.51:476] 0]LogSlate: Took 0.008288 seconds to synchronously load lazily loaded font ‘…/…/…/Engine/Content/Slate/Fonts/Roboto-Regular.ttf’ (155K)
[2017.09.29-06.31.51:485] 0]LogSlate: Took 0.005237 seconds to synchronously load lazily loaded font ‘…/…/…/Engine/Content/Slate/Fonts/Roboto-Bold.ttf’ (160K)
[2017.09.29-06.31.51:494] 0]LogSlate: Took 0.005234 seconds to synchronously load lazily loaded font ‘…/…/…/Engine/Content/Editor/Slate/Fonts/FontAwesome.ttf’ (139K)
[2017.09.29-06.31.51:657] 0]LogRenderer: Reallocating scene render targets to support 2032x944 Format 10 NumSamples 1 (Frame:1).
[2017.09.29-06.31.52:144] 1]LogAssetRegistry: Asset discovery search completed in 22.4924 seconds
[2017.09.29-06.31.52:146] 1]LogCollectionManager: Rebuilt the object cache for 0 collections in 0.000001 seconds (found 0 objects)
[2017.09.29-06.31.52:146] 1]LogCollectionManager: Fixed up redirectors for 0 collections in 0.000053 seconds (updated 0 objects)
[2017.09.29-06.31.53:442][124]LogEditorViewport: Clicking on Actor (LMB): StaticMeshActor (Floor)
[2017.09.29-06.31.54:305][199]Cmd: DELETE
[2017.09.29-06.31.54:305][199]Cmd: ACTOR DELETE
[2017.09.29-06.31.54:321][199]LogEditorActor: Deleted Actor: StaticMeshActor
[2017.09.29-06.31.54:338][199]LogEditorActor: Deleted 1 Actors (0.024 secs)
[2017.09.29-06.32.04:263][110]LogSlate: Took 0.008997 seconds to synchronously load lazily loaded font ‘…/…/…/Engine/Content/Slate/Fonts/Roboto-Light.ttf’ (159K)
[2017.09.29-06.32.05:292][198]LogSlate: Warning: Prevented a slow task dialog from being summoned while a context menu was open
[2017.09.29-06.32.09:545][610]LogTemp: Repeating last play command: Selected Viewport
[2017.09.29-06.32.09:743][610]LogPlayLevel: PlayLevel: No blueprints needed recompiling
[2017.09.29-06.32.09:755][610]PIE: New page: PIE session: Untitled_1 (Sep 28, 2017, 4:32:09 PM)
[2017.09.29-06.32.09:853][610]LogPlayLevel: Creating play world package: /Temp/UEDPIE_0_Untitled_1
[2017.09.29-06.32.09:861][610]LogPlayLevel: PIE: StaticDuplicateObject took: (0.008178s)
[2017.09.29-06.32.09:862][610]LogAIModule: Creating AISystem for world Untitled_1
[2017.09.29-06.32.09:862][610]LogPlayLevel: PIE: World Init took: (0.000909s)
[2017.09.29-06.32.09:863][610]LogPlayLevel: PIE: Created PIE world by copying editor world from /Temp/Untitled_1.Untitled_1 to /Temp/UEDPIE_0_Untitled_1.Untitled_1 (0.010559s)
[2017.09.29-06.32.09:878][610]LogInit: XAudio2 using ‘ASUS PB278-4 (NVIDIA High Definition Audio)’ : 2 channels at 48 kHz using 16 bits per sample (channel mask 0x3)
[2017.09.29-06.32.09:883][610]LogInit: FAudioDevice initialized.
[2017.09.29-06.32.10:229][610]LogLoad: Game class is ‘DCGameMode_BP_C’
[2017.09.29-06.32.10:249][610]LogWorld: Bringing World /Temp/UEDPIE_0_Untitled_1.Untitled_1 up for play (max tick rate 0) at 2017.09.28-23.32.10
[2017.09.29-06.32.10:253][610]LogWorld: Bringing up level for play took: 0.009458
[2017.09.29-06.32.10:326][610]LogContentBrowser: Native class hierarchy updated for ‘MovieSceneCapture’ in 0.0052 seconds. Added 11 classes and 0 folders.
[2017.09.29-06.32.10:371][610]PIE: Play in editor start time for /Temp/UEDPIE_0_Untitled_1 0.461
[2017.09.29-06.32.10:422][610]LogWindows: Windows GetLastError: The operation completed successfully. (0)
[2017.09.29-06.32.10:848][612]LogWindows: Windows GetLastError: The operation completed successfully. (0)
[2017.09.29-06.32.10:849][612]LogWindows: Error: === Critical error: ===
[2017.09.29-06.32.10:849][612]LogWindows: Error:
[2017.09.29-06.32.10:849][612]LogWindows: Error: Fatal error: [File:D:\Build++UE4+Release-4.17+Compile\Sync\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp] [Line: 811]
[2017.09.29-06.32.10:849][612]LogWindows: Error: Rendering thread exception:
[2017.09.29-06.32.10:849][612]LogWindows: Error: Fatal error: [File:D:\Build++UE4+Release-4.17+Compile\Sync\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11VertexDeclaration.cpp] [Line: 49]
[2017.09.29-06.32.10:849][612]LogWindows: Error: Unknown RHI vertex element type 0
[2017.09.29-06.32.10:849][612]LogWindows: Error:
[2017.09.29-06.32.10:849][612]LogWindows: Error:
[2017.09.29-06.32.10:849][612]LogWindows: Error: KERNELBASE.dll!0x000000000A649E08
[2017.09.29-06.32.10:849][612]LogWindows: Error: UE4Editor-Core.dll!0x00000000C6FB1CE4
[2017.09.29-06.32.10:849][612]LogWindows: Error: UE4Editor-Core.dll!0x00000000C6D9AD5B
[2017.09.29-06.32.10:849][612]LogWindows: Error: UE4Editor-Core.dll!0x00000000C6D30179
[2017.09.29-06.32.10:849][612]LogWindows: Error: UE4Editor-D3D11RHI.dll!0x00000000B993C3CB
[2017.09.29-06.32.10:849][612]LogWindows: Error: UE4Editor-D3D11RHI.dll!0x00000000B9962D1A
[2017.09.29-06.32.10:849][612]LogWindows: Error: UE4Editor-RHI.dll!0x00000000E5152E8B
[2017.09.29-06.32.10:849][612]LogWindows: Error: UE4Editor-RHI.dll!0x00000000E5152D95
[2017.09.29-06.32.10:849][612]LogWindows: Error: UE4Editor-ShaderCore.dll!0x00000000DB7765D8
[2017.09.29-06.32.10:849][612]LogWindows: Error: UE4Editor-ShaderCore.dll!0x00000000DB760DDC
[2017.09.29-06.32.10:849][612]LogWindows: Error: UE4Editor-Engine.dll!0x00000000C193F587
[2017.09.29-06.32.10:849][612]LogWindows: Error: UE4Editor-RenderCore.dll!0x00000000EC054C6C
[2017.09.29-06.32.10:849][612]LogWindows: Error: UE4Editor-RenderCore.dll!0x00000000EC0665EA
[2017.09.29-06.32.10:849][612]LogWindows: Error: UE4Editor-Core.dll!0x00000000C6C024F5
[2017.09.29-06.32.10:849][612]LogWindows: Error: UE4Editor-Core.dll!0x00000000C6C02ADA
[2017.09.29-06.32.10:849][612]LogWindows: Error: UE4Editor-RenderCore.dll!0x00000000EC071FB1
[2017.09.29-06.32.10:849][612]LogWindows: Error: UE4Editor-RenderCore.dll!0x00000000EC073076
[2017.09.29-06.32.10:849][612]LogWindows: Error: UE4Editor-Core.dll!0x00000000C6FB0EA8
[2017.09.29-06.32.10:849][612]LogWindows: Error: UE4Editor-Core.dll!0x00000000C6FA70AC
[2017.09.29-06.32.10:849][612]LogWindows: Error: KERNEL32.DLL!0x000000000B692774
[2017.09.29-06.32.10:849][612]LogWindows: Error: ntdll.dll!0x000000000D810D51
[2017.09.29-06.32.10:849][612]LogWindows: Error: ntdll.dll!0x000000000D810D51
[2017.09.29-06.32.10:849][612]LogWindows: Error:
[2017.09.29-06.32.10:849][612]LogWindows: Error:
[2017.09.29-06.32.10:849][612]LogWindows: Error:
[2017.09.29-06.32.10:849][612]LogWindows: Error:
[2017.09.29-06.32.10:868][612]LogExit: Executing StaticShutdownAfterError
[2017.09.29-06.32.10:889][612]LogWindows: FPlatformMisc::RequestExit(1)
[2017.09.29-06.32.10:889][612]Log file closed, 09/28/17 23:32:10

OK, so I just wanted to see the stack trace, not the whole file. As you can see the issue is:

Error: Unknown RHI vertex element type 0

Which according to this answerhub page can be solved with:

for future reference, which part is the stack trace?
Also, thanks bro, that worked