Announcement

Collapse
No announcement yet.

Project hangs at compiling when using ConstructorHelpers::FObjectFinder

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Project hangs at compiling when using ConstructorHelpers::FObjectFinder

    Hey, I've been using UE4 for a while now, mostly using Blueprints but now taken the step to c++ as well. It has worked nicely for the most part with the good documentation that exists, but I've run into a very strange and frustrating problem I am unable to solve.

    In my game I have a trees that are procedurally generated, spawning Blueprint classes that are based on C++ classes. However the project frequently hangs and sometimes won't start at all, by simple trial and error I've found the part of the code causing the hangups, when I comment out every ConstructorHelpers::FObjectFinder, everything always compiles fine, but I of course can't spawn the blueprint-classes into the world from C++ without them.

    Here's how the code in question looks for one of the constructors:

    Code:
    ATree::ATree()
    {
    	static ConstructorHelpers::FObjectFinder<UClass> TreeFinder(TEXT("Blueprint'/Game/Tree_BP.Tree_BP'"));
    	if (TreeFinder.Object != NULL) {
    		Tree_BP = (UClass*)TreeFinder.Object;
    	}
    
    	static ConstructorHelpers::FObjectFinder<UClass> BranchFinder(TEXT("Blueprint'/Game/Branch_BP.Branch_BP'"));
    	if (BranchFinder.Object != NULL) {
    		Branch_BP = (UClass*)BranchFinder.Object;
    	}
    
     	// Set this actor to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
    	PrimaryActorTick.bCanEverTick = true;
    	random.GenerateNewSeed();
    
    	
    
    }
    Tree_BP and Branch_BP are of course private variables belonging to the ATree-class.

    #2
    Looking at the engine source it appears you do not have to specify the type of object you're looking for. Although the path should be adjusted automatically to "/Game/Tree_BP.Tree_BP" and "/Game/Branch_BP.Branch_BP" respectively. So you could try to change the paths directly and see if that helps (probably not). You should also receive a fatal error if you aren't in a constructor while using ConstructorHelpers::FObjectFinder (but that doesn't apply here either). You may have to try and debug your project.

    Is there a specific point or action at which the project hangs? Can you attach a debugger to the process once it hangs and see what it's hanging at? You aren't getting any crash reports?
    Youtube - UnrealEverything

    Games:
    [Android] World of Bricks Released!

    [TUTORIAL] Edge Detection Post Process Effect using World Normals

    2B || !(2B)

    Comment


      #3
      Thanks for the response, no it doesn't crash or anything it just hangs, I just tried the same code in a fresh project and the same problem, here's the log for when i attempt to load up the project:

      Code:
      [2016.03.31-15.09.32:304][  0]Log file open, 03/31/16 17:09:32
      [2016.03.31-15.09.32:304][  0]LogInit:Display: Running engine for game: TreeEvolution
      [2016.03.31-15.09.32:304][  0]LogPlatformFile: Not using cached read wrapper
      [2016.03.31-15.09.32:304][  0]LogInit:Display: RandInit(1731233665) SRandInit(1731233666).
      [2016.03.31-15.09.32:304][  0]LogTaskGraph: Started task graph with 4 named threads and 7 total threads.
      [2016.03.31-15.09.32:304][  0]LogStats: Stats thread started at 0.078511
      [2016.03.31-15.09.32:304][  0]LogInit: Version: 4.10.4-2872498+++depot+UE4-Releases+4.10
      [2016.03.31-15.09.32:305][  0]LogInit: API Version: 2758231
      [2016.03.31-15.09.32:305][  0]LogInit: Compiled (64-bit): Feb 18 2016 15:47:04
      [2016.03.31-15.09.32:305][  0]LogInit: Compiled with Visual C++: 19.00.23026.00
      [2016.03.31-15.09.32:305][  0]LogInit: Build Configuration: Development
      [2016.03.31-15.09.32:305][  0]LogInit: Branch Name: ++depot+UE4-Releases+4.10
      [2016.03.31-15.09.32:305][  0]LogInit: Command line:  
      [2016.03.31-15.09.32:305][  0]LogInit: Base directory: D:/Program Files (x86)/Epic Games/4.10/Engine/Binaries/Win64/
      [2016.03.31-15.09.32:305][  0]LogInit: Rocket: 1
      [2016.03.31-15.09.32:309][  0]LogInit: Using libcurl 7.41.0
      [2016.03.31-15.09.32:309][  0]LogInit:  - built for x86_64-pc-win32
      [2016.03.31-15.09.32:309][  0]LogInit:  - supports SSL with WinSSL
      [2016.03.31-15.09.32:309][  0]LogInit:  - other features:
      [2016.03.31-15.09.32:309][  0]LogInit:      CURL_VERSION_SSL
      [2016.03.31-15.09.32:309][  0]LogInit:      CURL_VERSION_IPV6
      [2016.03.31-15.09.32:309][  0]LogInit:      CURL_VERSION_ASYNCHDNS
      [2016.03.31-15.09.32:309][  0]LogInit:      CURL_VERSION_LARGEFILE
      [2016.03.31-15.09.32:309][  0]LogInit:      CURL_VERSION_IDN
      [2016.03.31-15.09.32:310][  0]LogInit:  CurlRequestOptions (configurable via config and command line):
      [2016.03.31-15.09.32:310][  0]LogInit:  - bVerifyPeer = true  - Libcurl will verify peer certificate
      [2016.03.31-15.09.32:310][  0]LogInit:  - bUseHttpProxy = false  - Libcurl will NOT use HTTP proxy
      [2016.03.31-15.09.32:310][  0]LogInit:  - bDontReuseConnections = false  - Libcurl will reuse connections
      [2016.03.31-15.09.32:310][  0]LogInit:  - CertBundlePath = nullptr  - Libcurl will use whatever was configured at build time.
      [2016.03.31-15.09.32:314][  0]LogInit: Presizing for 0 objects not considered by GC, pre-allocating 0 bytes.
      [2016.03.31-15.09.32:320][  0]LogInit: Object subsystem initialized
      [2016.03.31-15.09.32:321][  0]LogInit: Selected Device Profile: [Windows]
      [2016.03.31-15.09.32:321][  0]LogInit: Applying CVar settings loaded from the selected device profile: [Windows]
      [2016.03.31-15.09.32:330][  0]LogInit: Computer: MSI
      [2016.03.31-15.09.32:330][  0]LogInit: User: tobia
      [2016.03.31-15.09.32:330][  0]LogInit: CPU Page size=4096, Cores=4
      [2016.03.31-15.09.32:330][  0]LogInit: High frequency timer resolution =2.531247 MHz
      [2016.03.31-15.09.32:330][  0]LogMemory: Memory total: Physical=15.9GB (16GB approx)
      [2016.03.31-15.09.32:330][  0]LogMemory: Platform Memory Stats for Windows
      [2016.03.31-15.09.32:330][  0]LogMemory: Process Physical Memory: 56.14 MB used, 56.14 MB peak
      [2016.03.31-15.09.32:330][  0]LogMemory: Process Virtual Memory: 56.90 MB used, 56.90 MB peak
      [2016.03.31-15.09.32:330][  0]LogMemory: Physical Memory: 6665.49 MB used, 16294.66 MB total
      [2016.03.31-15.09.32:330][  0]LogMemory: Virtual Memory: 382.88 MB used, 134217728.00 MB total
      [2016.03.31-15.09.32:364][  0]LogTextLocalizationManager: No translations for ('sv-SE') exist, falling back to 'en' for localization and internationalization data.
      [2016.03.31-15.09.32:758][  0]LogD3D11RHI: Found D3D11 adapter 0: NVIDIA GeForce GTX 970M           (Feature Level 11_0)
      [2016.03.31-15.09.32:758][  0]LogD3D11RHI: Adapter has 2991MB of dedicated video memory, 0MB of dedicated system memory, and 8147MB of shared system memory, 1 output[s]
      [2016.03.31-15.09.32:765][  0]LogD3D11RHI: Found D3D11 adapter 1: Intel(R) HD Graphics 530 (Feature Level 11_0)
      [2016.03.31-15.09.32:765][  0]LogD3D11RHI: Adapter has 128MB of dedicated video memory, 0MB of dedicated system memory, and 8147MB of shared system memory, 0 output[s]
      [2016.03.31-15.09.32:767][  0]LogD3D11RHI: Found D3D11 adapter 2: Microsoft Basic Render Driver (Feature Level 11_0)
      [2016.03.31-15.09.32:767][  0]LogD3D11RHI: Adapter has 0MB of dedicated video memory, 0MB of dedicated system memory, and 8147MB of shared system memory, 0 output[s]
      [2016.03.31-15.09.32:767][  0]LogD3D11RHI: Chosen D3D11 Adapter Id = 0
      [2016.03.31-15.09.32:775][  0]LogD3D11RHI: !Direct3DDevice
      [2016.03.31-15.09.32:775][  0]LogRHI: Texture pool is 1361 MB (70% of 1945 MB)
      [2016.03.31-15.09.32:788][  0]LogD3D11RHI: Async texture creation enabled
      [2016.03.31-15.09.32:806][  0]LogShaderCompilers: Guid format shader working directory is 15 characters bigger than the processId version (../../../../../../TreeEvolution/Intermediate/Shaders/WorkingDirectory/7652/).
      [2016.03.31-15.09.32:806][  0]LogShaderCompilers: Cleaned the shader compiler working directory 'C:/Users/tobia/AppData/Local/Temp/UnrealShaderWorkingDir/DC0DEA8B481DDE9AB030E4A3C57A038E/'.
      [2016.03.31-15.09.32:806][  0]LogShaderCompilers:Display: Using Local Shader Compiler.
      [2016.03.31-15.09.33:576][  0]LogTemp:Display: Loaded TP AllDesktopTargetPlatform
      [2016.03.31-15.09.33:580][  0]LogTemp:Display: Loaded TP WindowsClientTargetPlatform
      [2016.03.31-15.09.33:584][  0]LogTemp:Display: Loaded TP WindowsNoEditorTargetPlatform
      [2016.03.31-15.09.33:587][  0]LogTemp:Display: Loaded TP WindowsServerTargetPlatform
      [2016.03.31-15.09.33:591][  0]LogTemp:Display: Loaded TP WindowsTargetPlatform
      [2016.03.31-15.09.33:594][  0]LogTemp:Display: Loaded TP AndroidTargetPlatform
      [2016.03.31-15.09.33:596][  0]LogTemp:Display: Loaded TP Android_ASTCTargetPlatform
      [2016.03.31-15.09.33:599][  0]LogTemp:Display: Loaded TP Android_ATCTargetPlatform
      [2016.03.31-15.09.33:602][  0]LogTemp:Display: Loaded TP Android_DXTTargetPlatform
      [2016.03.31-15.09.33:605][  0]LogTemp:Display: Loaded TP Android_ETC1TargetPlatform
      [2016.03.31-15.09.33:607][  0]LogTemp:Display: Loaded TP Android_ETC2TargetPlatform
      [2016.03.31-15.09.33:613][  0]LogTemp:Display: Loaded TP Android_MultiTargetPlatform
      [2016.03.31-15.09.33:613][  0]LogTemp:Display: Loaded TP Android_PVRTCTargetPlatform
      [2016.03.31-15.09.33:613][  0]LogTemp:Display: Loaded TP HTML5TargetPlatform
      [2016.03.31-15.09.33:629][  0]LogTemp:Display: Loaded TP IOSTargetPlatform
      [2016.03.31-15.09.33:632][  0]LogTemp:Display: Loaded TP LinuxNoEditorTargetPlatform
      [2016.03.31-15.09.33:636][  0]LogTemp:Display: Loaded TP LinuxServerTargetPlatform
      [2016.03.31-15.09.33:639][  0]LogTemp:Display: Loaded TP LinuxTargetPlatform
      [2016.03.31-15.09.33:639][  0]LogTargetPlatformManager:Display: Building Assets For Windows
      [2016.03.31-15.09.33:700][  0]LogDerivedDataCache:Display: Max Cache Size: 512 MB
      [2016.03.31-15.09.33:745][  0]LogDerivedDataCache: Loaded boot cache 0.05s 41MB C:/Users/tobia/AppData/Local/UnrealEngine/4.10/DerivedDataCache/Boot.ddc.
      [2016.03.31-15.09.33:745][  0]LogDerivedDataCache:Display: Loaded Boot cache: C:/Users/tobia/AppData/Local/UnrealEngine/4.10/DerivedDataCache/Boot.ddc
      [2016.03.31-15.09.33:745][  0]LogDerivedDataCache: FDerivedDataBackendGraph:  Pak pak cache file ../../../../../../TreeEvolution/DerivedDataCache/DDC.ddp not found, will not use a pak cache.
      [2016.03.31-15.09.33:745][  0]LogDerivedDataCache: Unable to find inner node Pak for hierarchical cache Hierarchy.
      [2016.03.31-15.09.33:745][  0]LogDerivedDataCache: FDerivedDataBackendGraph:  CompressedPak pak cache file ../../../../../../TreeEvolution/DerivedDataCache/Compressed.ddp not found, will not use a pak cache.
      [2016.03.31-15.09.33:745][  0]LogDerivedDataCache: Unable to find inner node CompressedPak for hierarchical cache Hierarchy.
      [2016.03.31-15.09.33:802][  0]LogDerivedDataCache:Display: Pak cache opened for reading ../../../Engine/DerivedDataCache/Compressed.ddp.
      [2016.03.31-15.09.33:814][  0]LogDerivedDataCache: Using Local data cache path C:/Users/tobia/AppData/Local/UnrealEngine/Common/DerivedDataCache: Writable
      [2016.03.31-15.09.33:975][  0]LogInit: Selected Device Profile: [Windows]
      [2016.03.31-15.09.33:978][  0]LogContentStreaming: Texture pool size is 0.000000MB
      [2016.03.31-15.09.34:079][  0]LogMeshUtilities: No automatic mesh reduction module available
      [2016.03.31-15.09.34:079][  0]LogMeshUtilities: No automatic mesh merging module available
      [2016.03.31-15.09.34:285][  0]LogInit: WinSock: version 1.1 (2.2), MaxSocks=32767, MaxUdp=65467
      [2016.03.31-15.09.34:946][  0]UdpMessaging: Initializing bridge on interface 0.0.0.0:0 to multicast group 230.0.0.1:6666.
      [2016.03.31-15.09.35:045][  0]LogAssetRegistry: FAssetRegistry took 0.0108 seconds to start up
      [2016.03.31-15.09.35:164][  0]SourceControl: Info Source control is disabled
      [2016.03.31-15.09.35:165][  0]SourceControl: Info Source control is disabled
      [2016.03.31-15.09.35:171][  0]SourceControl: Info Source control is disabled
      [2016.03.31-15.09.35:178][  0]SourceControl: Info Source control is disabled
      [2016.03.31-15.09.35:335][  0]LogObj: 28660 objects as part of root set at end of initial load.
      [2016.03.31-15.09.35:335][  0]LogUObjectAllocator: 6108720 out of 0 bytes used by permanent object pool.
      [2016.03.31-15.09.35:389][  0]LogEngine: Initializing Engine...
      [2016.03.31-15.09.35:391][  0]LogHMD: Can't find Oculus library dev build: is proper Runtime installed? Version: 0.8.0.0
      [2016.03.31-15.09.35:391][  0]LogHMD: SteamVR failed to initialize.  Err: 110
      [2016.03.31-15.09.35:506][  0]LogAIModule: Creating AISystem for world NewWorld
      [2016.03.31-15.09.35:509][  0]LogInit: XAudio2 using 'Speakers (Realtek High Definition Audio)' : 2 channels at 48 kHz using 32 bits per sample (channel mask 0x3)
      [2016.03.31-15.09.35:873][  0]LogInit: FAudioDevice initialized.
      [2016.03.31-15.09.35:893][  0]LogDerivedDataCache: Saved boot cache 0.02s 41MB C:/Users/tobia/AppData/Local/UnrealEngine/4.10/DerivedDataCache/Boot.ddc.
      [2016.03.31-15.09.35:897][  0]LogInit: Texture streaming: Enabled
      [2016.03.31-15.09.35:901][  0]LogAnalytics: Creating configured Analytics provider AnalyticsET
      [2016.03.31-15.09.35:901][  0]LogAnalytics: [UEEditor.Rocket.Release] APIServer = http://et2.epicgames.com/ET2/. AppVersion = 4.10.4-2872498+++depot+UE4-Releases+4.10
      [2016.03.31-15.09.35:901][  0]LogAnalytics: [UEEditor.Rocket.Release] SetUserId 3750e6d1405e52e99c08f9974cd5569f|471a4cb9a5c14167995f8bc8b175918a|446fe6e5-1b13-4339-81c8-b1f6f83a87c4
      [2016.03.31-15.09.35:901][  0]LogAnalytics: [UEEditor.Rocket.Release] AnalyticsET::StartSession
      [2016.03.31-15.09.35:911][  0]LogInit: Transaction tracking system initialized
      [2016.03.31-15.09.35:930][  0]BlueprintLog: New page: Editor Load
      [2016.03.31-15.09.35:990][  0]LocalizationService: Info Localization service is disabled
      [2016.03.31-15.09.36:048][  0]LogConsoleResponse:Display: 
      [2016.03.31-15.09.36:175][  0]LogCook:Display: Done creating registry. It took  0.00s.
      [2016.03.31-15.09.36:214][  0]LogFileCache: Scanning file cache for directory 'D:/TreeEvolution/Content/' took 0.01s
      [2016.03.31-15.09.36:214][  0]SourceControl: Info Source control is disabled
      [2016.03.31-15.09.36:214][  0]Cmd: MAP LOAD FILE="../../../../../../TreeEvolution/Content/StarterContent/Maps/Minimal_Default.umap" TEMPLATE=0 SHOWPROGRESS=1 FEATURELEVEL=3
      [2016.03.31-15.09.36:214][  0]LightingResults: New page: Lighting Build
      [2016.03.31-15.09.36:217][  0]MapCheck: New page: Map Check
      [2016.03.31-15.09.36:217][  0]LightingResults: New page: Lighting Build
      [2016.03.31-15.09.36:227][  0]LogParticles: Destroying 0 GPU particle simulations for FXSystem 0x0000026039E7A160
      [2016.03.31-15.09.36:502][  0]LogAIModule: Creating AISystem for world Minimal_Default
      [2016.03.31-15.09.36:509][  0]LogEditorServer: Finished looking for orphan Actors (0.000 secs)
      [2016.03.31-15.09.36:510][  0]Cmd: MAP CHECKDEP NOCLEARLOG
      [2016.03.31-15.09.36:546][  0]MapCheck: Info Map check complete: 0 Error(s), 0 Warning(s), took 36.545ms to complete.
      [2016.03.31-15.09.36:546][  0]LogFileHelpers: Loading map 'Minimal_Default' took 0.333
      [2016.03.31-15.09.36:661][  0]LogCollectionManager: Loaded 0 collections in 0.001217 seconds
      [2016.03.31-15.09.36:702][  0]LogFileCache: Scanning file cache for directory 'D:/TreeEvolution/Saved/Collections/' took 0.01s
      [2016.03.31-15.09.36:702][  0]LogFileCache: Scanning file cache for directory 'D:/TreeEvolution/Content/Developers/tobia/Collections/' took 0.01s
      [2016.03.31-15.09.36:702][  0]LogFileCache: Scanning file cache for directory 'D:/TreeEvolution/Content/Collections/' took 0.01s
      [2016.03.31-15.09.36:702][  0]LogCollectionManager: Rebuilt the GUID cache for 0 collections in 0.000001 seconds
      [2016.03.31-15.09.36:711][  0]LogContentBrowser: Native class hierarchy populated in 0.0086 seconds. Added 1897 classes and 340 folders.
      [2016.03.31-15.09.36:716][  0]LogContentBrowser: Native class hierarchy updated for 'WidgetCarousel' in 0.0008 seconds. Added 0 classes and 0 folders.
      [2016.03.31-15.09.36:748][  0]LogContentBrowser: Native class hierarchy updated for 'AddContentDialog' in 0.0008 seconds. Added 0 classes and 0 folders.
      [2016.03.31-15.09.36:753][  0]LogContentBrowser: Native class hierarchy updated for 'SceneOutliner' in 0.0012 seconds. Added 1 classes and 2 folders.
      [2016.03.31-15.09.36:793][  0]LogCrashTracker: Crashtracker disabled due to settings.
      [2016.03.31-15.09.36:799][  0]LogUObjectGlobals:Warning: Failed to find object 'Class None.'
      [2016.03.31-15.09.36:822][  0]LogLoad: Full Startup: 5.08 seconds (BP compile: 0.05 seconds)
      [2016.03.31-15.09.36:834][  0]LogOcInput: Can't find Oculus library dev build: is proper Runtime installed? Version: 0.8.0.0
      [2016.03.31-15.09.36:890][  0]LogContentStreaming: Texture pool size now 1000 MB
      [2016.03.31-15.09.37:025][  0]LogRenderer: Reallocating scene render targets to support 884x452 (Frame:2).
      [2016.03.31-15.09.37:222][  2]LogAssetRegistry: Asset discovery search completed in 2.1882 seconds
      [2016.03.31-15.09.37:222][  2]LogCollectionManager: Rebuilt the object cache for 0 collections in 0.000000 seconds (found 0 objects)
      [2016.03.31-15.09.37:222][  2]LogCollectionManager: Fixed up redirectors for 0 collections in 0.000015 seconds (updated 0 objects)
      [2016.03.31-15.09.41:149][432]LogEditorViewport: Clicking on Actor (LMB): TreeBP_C (TreeBP)
      [2016.03.31-15.09.45:392][885]LogSavePackage: Save=50.581787ms
      [2016.03.31-15.09.45:392][885]LogSavePackage: Moving '../../../../../../TreeEvolution/Saved/Minimal_Default81255EF747B360B5A8528889C384EE3F.tmp' to '../../../../../../TreeEvolution/Content/StarterContent/Maps/Minimal_Default.umap'
      [2016.03.31-15.09.45:394][885]LogSavePackage: Total save time: 58.138933ms
      [2016.03.31-15.09.45:394][885]LogSavePackage:Display: Finished SavePackage ../../../../../../TreeEvolution/Content/StarterContent/Maps/Minimal_Default.umap
      [2016.03.31-15.09.45:417][885]LogFileHelpers: Saving map 'Minimal_Default' took 0.145
      [2016.03.31-15.09.48:930][267]LogLinker:Warning: Asset '../../../Engine/Content/ArtTools/RenderToTexture/Macros/RenderToTextureMacros.uasset' has been saved with empty engine version. The asset will be loaded but may be incompatible.
      [2016.03.31-15.09.49:348][267]LogContentBrowser: Native class hierarchy updated for 'BlueprintGraph' in 0.0012 seconds. Added 107 classes and 0 folders.
      [2016.03.31-15.09.56:981][791]BlueprintLog: New page: Compile TreeBP
      [2016.03.31-15.09.57:062][791]BlueprintEditorCompileResults: Info [0025.32] Compile of TreeBP successful! [in 81 ms]
      [2016.03.31-15.09.57:897][840]LogSavePackage: Save=59.941208ms
      [2016.03.31-15.09.57:897][840]LogSavePackage: Moving '../../../../../../TreeEvolution/Saved/Minimal_DefaultE50F197F46FF333458F16AA1651D3699.tmp' to '../../../../../../TreeEvolution/Content/StarterContent/Maps/Minimal_Default.umap'
      [2016.03.31-15.09.57:898][840]LogSavePackage: Total save time: 62.442739ms
      [2016.03.31-15.09.57:898][840]LogSavePackage:Display: Finished SavePackage ../../../../../../TreeEvolution/Content/StarterContent/Maps/Minimal_Default.umap
      [2016.03.31-15.09.57:918][840]LogFileHelpers: Saving map 'Minimal_Default' took 0.149
      [2016.03.31-15.09.57:951][840]Cmd: OBJ SAVEPACKAGE PACKAGE="/Game/TreeBP" FILE="../../../../../../TreeEvolution/Content/TreeBP.uasset" SILENT=true
      [2016.03.31-15.09.57:996][840]LogSavePackage: Save=40.293579ms
      [2016.03.31-15.09.57:996][840]LogSavePackage: Moving '../../../../../../TreeEvolution/Saved/TreeBP0430CAE548777C9F055F088D6DC5C361.tmp' to '../../../../../../TreeEvolution/Content/TreeBP.uasset'
      [2016.03.31-15.09.57:998][840]LogSavePackage: Total save time: 46.424154ms
      [2016.03.31-15.09.57:998][840]LogSavePackage:Display: Finished SavePackage ../../../../../../TreeEvolution/Content/TreeBP.uasset
      [2016.03.31-15.10.06:658][447]BlueprintLog: New page: Compile TreeBP
      [2016.03.31-15.10.06:731][447]BlueprintEditorCompileResults: Info [0034.99] Compile of TreeBP successful! [in 72 ms]
      [2016.03.31-15.10.07:308][478]LogSavePackage: Save=65.552673ms
      [2016.03.31-15.10.07:308][478]LogSavePackage: Moving '../../../../../../TreeEvolution/Saved/Minimal_Default14A73E22436C531AEC1703AD1D7DA71A.tmp' to '../../../../../../TreeEvolution/Content/StarterContent/Maps/Minimal_Default.umap'
      [2016.03.31-15.10.07:309][478]LogSavePackage: Total save time: 67.782797ms
      [2016.03.31-15.10.07:309][478]LogSavePackage:Display: Finished SavePackage ../../../../../../TreeEvolution/Content/StarterContent/Maps/Minimal_Default.umap
      [2016.03.31-15.10.07:331][478]LogFileHelpers: Saving map 'Minimal_Default' took 0.162
      [2016.03.31-15.10.07:363][478]Cmd: OBJ SAVEPACKAGE PACKAGE="/Game/TreeBP" FILE="../../../../../../TreeEvolution/Content/TreeBP.uasset" SILENT=true
      [2016.03.31-15.10.07:388][478]LogSavePackage: Save=22.475878ms
      [2016.03.31-15.10.07:388][478]LogSavePackage: Moving '../../../../../../TreeEvolution/Saved/TreeBP992586D147536A394DE81CB5ADE9E1C2.tmp' to '../../../../../../TreeEvolution/Content/TreeBP.uasset'
      [2016.03.31-15.10.07:389][478]LogSavePackage: Total save time: 24.568919ms
      [2016.03.31-15.10.07:389][478]LogSavePackage:Display: Finished SavePackage ../../../../../../TreeEvolution/Content/TreeBP.uasset
      [2016.03.31-15.10.19:347][799]Recompiling TreeEvolution...
      [2016.03.31-15.10.19:347][799]Launching UnrealBuildTool... [D:/Program Files (x86)/Epic Games/4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe TreeEvolution -ModuleWithSuffix TreeEvolution 1555 Win64 Development -editorrecompile -canskiplink "D:/TreeEvolution/TreeEvolution.uproject" -rocket  -rocket -2015]
      [2016.03.31-15.10.19:348][799]Warning: Starting HotReload took  0.0s.
      [2016.03.31-15.10.35:692][655]CompilerResultsLog: New page: Compilation - Mar 31, 2016, 7:10:35 PM
      [2016.03.31-15.10.35:693][655]CompilerResultsLog: Info Creating makefile for hot reloading TreeEvolution (modules to compile have changed)
      [2016.03.31-15.10.35:693][655]CompilerResultsLog: Info Compiling game modules for hot reload
      [2016.03.31-15.10.35:693][655]CompilerResultsLog: Info Parsing headers for TreeEvolutionEditor
      [2016.03.31-15.10.35:693][655]CompilerResultsLog: Info   Running UnrealHeaderTool "D:/TreeEvolution/TreeEvolution.uproject" "D:\TreeEvolution\Intermediate\Build\Win64\TreeEvolutionEditor\Development\UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -rocket -installed
      [2016.03.31-15.10.35:693][655]CompilerResultsLog: Info Reflection code generated for TreeEvolutionEditor in 7,9914192 seconds
      [2016.03.31-15.10.35:693][655]CompilerResultsLog: Info Performing 2 actions (4 in parallel)
      [2016.03.31-15.10.35:693][655]CompilerResultsLog: Info Branch.cpp
      [2016.03.31-15.10.35:693][655]CompilerResultsLog: Info [2/2] Link UE4Editor-TreeEvolution-1555.dll
      [2016.03.31-15.10.35:693][655]CompilerResultsLog: Info    Creating library D:\TreeEvolution\Intermediate/Build/Win64\UE4Editor\Development\UE4Editor-TreeEvolution-1555.lib and object D:\TreeEvolution\Intermediate/Build/Win64\UE4Editor\Development\UE4Editor-TreeEvolution-1555.exp
      [2016.03.31-15.10.35:693][655]CompilerResultsLog: Info -------- End Detailed Actions Stats -----------------------------------------------------------
      [2016.03.31-15.10.35:693][655]CompilerResultsLog: Info Total build time: 16,29 seconds
      [2016.03.31-15.10.35:693][655]LogMain
      As you can see even the printing seems interrupted.

      Comment


        #4
        I use the same code, but my 'reference-path' looks different:
        Instead of:
        static ConstructorHelpers::FObjectFinder<UClass> TreeFinder(TEXT("Blueprint'/Game/Tree_BP.Tree_BP'"));
        I use:
        static ConstructorHelpers::FObjectFinder<UClass> TreeFinder(TEXT("Class'/Game/Tree_BP.Tree_BP_C'"));

        Note the suffix _C, I believe it's necessary to reference the generated Blueprint-Class.

        Hope that helps.

        Comment


          #5
          Unfortunately that didn't solve it, but thanks anyway. I Have been pulling my hair all day exchanging every line of code and trying to determine when the crashes appear and when they don't. It's so inconsequential I can't imagine it being anything but a bug, sometimes the editor will just randomly crash and then the project won't load until I've removed every reference to FObjectFinder. When I find the time I'll try reinstalling everything including my OS.

          Comment


            #6
            Try
            static ConstructorHelpers::FObjectFinder<UBlueprint> TreeFinder(TEXT("Blueprint'/Game/Tree_BP.Tree_BP'"));
            SolidGasGames

            Comment


              #7
              Thanks Telimaktar tried that as well but the same problems still appear. The weird thing is how it would sometimes work but most often not with the same code base.

              Good news though, it seems the problem has disappeared after uninstalling and reinstalling everything related to visual studio 2015, so that would be my tip to anyone who has the same problem.

              Comment


                #8
                If anyone is interested I've been able to pin down the problem, the problem appears when you launch the editor with a C++ class that contains a ConstructorHelpers::FObjectFinder call to a Blueprint-class that extends the C++ class itself. It can be circumvented by commenting out those lines, building the project, launching the editor, and uncommenting those lines, but it's very tedious. Unfortunately in my project it would get a lot more convoluted without this code structure so I'm hoping for a fix for this sometime soon.

                Comment

                Working...
                X