Hi there,
I have a project (c++) and in PIE everything looks good. The objects get created as I press play and as far as I can see all function calls are correct. As I package the project I get a fatal error directly after clicking the exe and the logfile looks strange. Multiple objects have their constructors called more than once so I believe that this might be the problem but I can’t figure out why this happens.
I’ve tried to build on Win7 64Bit and Win10 64Bit using. The build in VS ends with no errors and the packaging from the editor also states successful.
The logfiles are attached and the source can be downloaded here: Dropbox - Error - Simplify your life
In the logs the relevant custom classes begin with DB (e.g. DBGameInstance).
PIE-Log:
[2015.08.17-12.02.52:141] 89]LogPlayLevel: PIE: No blueprints needed recompiling
[2015.08.17-12.02.52:141] 89]PIE: New page: PIE session: LoginMap (Aug 17, 2015, 4:02:52 PM)
[2015.08.17-12.02.52:142] 89]LogPlayLevel: Creating play world package: /Game/Maps/UEDPIE_0_LoginMap
[2015.08.17-12.02.52:144] 89]LogPlayLevel: PIE: StaticDuplicateObject took: (0.001880s)
[2015.08.17-12.02.52:145] 89]LogAIModule: Creating AISystem for world LoginMap
[2015.08.17-12.02.52:150] 89]LogPlayLevel: PIE: World Init took: (0.006100s)
[2015.08.17-12.02.52:151] 89]LogPlayLevel: PIE: Created PIE world by copying editor world from /Game/Maps/LoginMap.LoginMap to /Game/Maps/UEDPIE_0_LoginMap.LoginMap (0.008500s)
[2015.08.17-12.02.52:186] 89]DBNet:Warning: DBGameInstance: Init called.
[2015.08.17-12.02.52:186] 89]DBNet:Warning: DBNetworkClient: Constructor called.
[2015.08.17-12.02.52:186] 89]DBNet:Warning: DBNetworkClient: PhotonListener created.
[2015.08.17-12.02.52:186] 89]DBNet:Warning: DBNetworkClient: PhotonPeer created.
[2015.08.17-12.02.52:186] 89]DBNet:Warning: DBGameInstance: PhotonClient created.
[2015.08.17-12.02.52:186] 89]DBNet:Warning: DBNetworkClient: PhotonPeer connect called.
[2015.08.17-12.02.52:188] 89]LogInit: XAudio2 using 'Speaker/HP (Realtek High Definition Audio)' : 2 channels at 48 kHz using 32 bits per sample (channel mask 0x3)
[2015.08.17-12.02.52:196] 89]LogInit: FAudioDevice initialized.
[2015.08.17-12.02.52:230] 89]LogWorld: Game class is 'DBGameMode'
[2015.08.17-12.02.52:233] 89]LogWorld: Bringing World /Game/Maps/UEDPIE_0_LoginMap.LoginMap up for play (max tick rate 60) at 2015.08.17-14.02.52
[2015.08.17-12.02.52:233] 89]DB:Warning: ==========================================
[2015.08.17-12.02.52:233] 89]DB:Warning: Init Game Option:
[2015.08.17-12.02.52:233] 89]DB:Warning: Init Game Map: UEDPIE_0_LoginMap
[2015.08.17-12.02.52:233] 89]DB:Warning: Init Game Error:
[2015.08.17-12.02.52:233] 89]LogActor:Warning: GameSession /Game/Maps/UEDPIE_0_LoginMap.LoginMap:PersistentLevel.GameSession_5 has natively added scene component(s), but none of them were set as the actor's RootComponent - picking one arbitrarily
[2015.08.17-12.02.52:234] 89]LogActor:Warning: GameNetworkManager /Game/Maps/UEDPIE_0_LoginMap.LoginMap:PersistentLevel.GameNetworkManager_5 has natively added scene component(s), but none of them were set as the actor's RootComponent - picking one arbitrarily
[2015.08.17-12.02.52:234] 89]LogWorld: Bringing up level for play took: 0.001802
[2015.08.17-12.02.52:235] 89]DBNet:Warning: DBGameMode: Begin Play.
[2015.08.17-12.02.52:235] 89]DBNet:Warning: DBLoginController: Constructor called.
[2015.08.17-12.02.52:235] 89]DBNet:Warning: DBLoginHandler: InitializeComponent.
[2015.08.17-12.02.52:235] 89]DBNet: DBLoginHandler: OwningGameInstance: DBGameInstance_16.
[2015.08.17-12.02.52:235] 89]DBNet:Warning: DBNetworkClient: PhotonSetCurrentHandler called and set to: LoginHandler.
[2015.08.17-12.02.52:235] 89]DBNet: DBNetworkListener: Handler got: LoginHandler.
[2015.08.17-12.02.52:236] 89]DBNet:Warning: DBLoginController: BeginPlay()
[2015.08.17-12.02.52:236] 89]DBNet:Warning: DBLoginController: GameInstance set to DBGameInstance_16.
[2015.08.17-12.02.52:236] 89]PIE: Info Play in editor start time for /Game/Maps/UEDPIE_0_LoginMap -0.865
[2015.08.17-12.02.52:236] 89]DBNet: DBGameInstance: Service called.
[2015.08.17-12.02.52:253] 90]DBNet: DBGameInstance: Service called.
[2015.08.17-12.02.52:270] 91]DBNet: DBGameInstance: Service called.
Packaged Game Log:
[2015.08.17-11.58.11:263] 0]LogD3D11RHI: Found D3D11 adapter 0: Intel(R) HD Graphics 4600 (Feature Level 11_0)
[2015.08.17-11.58.11:263] 0]LogD3D11RHI: Adapter has 64MB of dedicated video memory, 0MB of dedicated system memory, and 1632MB of shared system memory, 3 output[s]
[2015.08.17-11.58.11:263] 0]LogD3D11RHI: Chosen D3D11 Adapter Id = 0
[2015.08.17-11.58.11:269] 0]LogD3D11RHI: InitD3DDevice
[2015.08.17-11.58.11:269] 0]LogD3D11RHI: !Direct3DDevice
[2015.08.17-11.58.11:269] 0]LogRHI: Texture pool is 616 MB (70% of 880 MB)
[2015.08.17-11.58.11:278] 0]LogD3D11RHI: Async texture creation enabled
[2015.08.17-11.58.11:379] 0]DBNet:Warning: DBNetworkClient: Constructor called.
[2015.08.17-11.58.11:379] 0]DBNet:Warning: DBNetworkClient: PhotonListener created.
[2015.08.17-11.58.11:379] 0]DBNet:Warning: DBNetworkClient: PhotonPeer created.
[2015.08.17-11.58.11:381] 0]DBNet:Warning: DBLoginController: Constructor called.
[2015.08.17-11.58.11:397] 0]LogModuleManager:Warning: ModuleManager: Module 'ExampleDeviceProfileSelector' not found - its StaticallyLinkedModuleInitializers function is null.
[2015.08.17-11.58.11:495] 0]LogInit: WinSock: version 1.1 (2.2), MaxSocks=32767, MaxUdp=65467
[2015.08.17-11.58.11:658] 0]LogD3D11RHI: InitD3DDevice
[2015.08.17-11.58.12:159] 0]LogObj: 21065 objects as part of root set at end of initial load.
.........
[2015.08.17-11.58.12:482] 0]DBNet:Warning: DBGameInstance: Init called.
[2015.08.17-11.58.12:482] 0]DBNet:Warning: DBNetworkClient: Constructor called.
[2015.08.17-11.58.12:482] 0]DBNet:Warning: DBNetworkClient: PhotonListener created.
[2015.08.17-11.58.12:482] 0]DBNet:Warning: DBNetworkClient: PhotonPeer created.
[2015.08.17-11.58.12:482] 0]DBNet:Warning: DBGameInstance: PhotonClient created.
[2015.08.17-11.58.12:482] 0]DBNet:Warning: DBNetworkClient: PhotonPeer connect called.
[2015.08.17-11.58.12:503] 0]LogNet: Browse: /Game/Maps/LoginMap?Name=Player
[2015.08.17-11.58.12:503] 0]LogLoad: LoadMap: /Game/Maps/LoginMap?Name=Player
.........
[2015.08.17-11.58.12:547] 0]LogAIModule: Creating AISystem for world LoginMap
[2015.08.17-11.58.12:547] 0]LogWorld: Game class is 'DBGameMode'
[2015.08.17-11.58.12:549] 0]LogWorld: Bringing World /Game/Maps/LoginMap.LoginMap up for play (max tick rate 0) at 2015.08.17-13.58.12
[2015.08.17-11.58.12:549] 0]DB:Warning: ==========================================
[2015.08.17-11.58.12:549] 0]DB:Warning: Init Game Option: ?Name=Player
[2015.08.17-11.58.12:549] 0]DB:Warning: Init Game Map: LoginMap
[2015.08.17-11.58.12:549] 0]DB:Warning: Init Game Error:
[2015.08.17-11.58.12:549] 0]LogWorld: Bringing up level for play took: 0.000529
[2015.08.17-11.58.12:551] 0]DBNet:Warning: DBGameMode: Begin Play.
[2015.08.17-11.58.12:551] 0]DBNet:Warning: DBLoginController: Constructor called.
[2015.08.17-11.58.12:551] 0]DBNet:Warning: DBLoginHandler: InitializeComponent.
[2015.08.17-11.58.12:551] 0]DBNet: DBLoginHandler: OwningGameInstance: DBGameInstance_0.
[2015.08.17-11.58.12:551] 0]DBNet:Warning: DBNetworkClient: PhotonSetCurrentHandler called and set to: LoginHandler.
[2015.08.17-11.58.12:551] 0]DBNet: DBNetworkListener: Handler got: LoginHandler.
[2015.08.17-11.58.16:245] 0]LogWindows:Warning: CreateProc failed (2) ..\..\..\Engine\Binaries/Win64/CrashReportClient.exe -AppName=UE4-DragonBorn
[2015.08.17-11.58.16:245] 0]LogWindows: Could not start CrashReportClient.exe
[2015.08.17-11.58.16:245] 0]LogMemory: Platform Memory Stats for WindowsNoEditor
[2015.08.17-11.58.16:245] 0]LogMemory: Process Physical Memory: 187.61 MB used, 187.68 MB peak
[2015.08.17-11.58.16:245] 0]LogMemory: Process Virtual Memory: 189.61 MB used, 263.84 MB peak
[2015.08.17-11.58.16:245] 0]LogMemory: Physical Memory: 5293.25 MB used, 7912.56 MB total
[2015.08.17-11.58.16:245] 0]LogMemory: Virtual Memory: 566.52 MB used, 8388608.00 MB total
[2015.08.17-11.58.34:810] 0]LogWindows: === Critical error: ===
Fatal error!
DragonBorn-Win64-DebugGame.exe!DBNetworkListener::setCurrentHandler() {0x000000013f25dfc2} + 16 bytes [c: emp\dragonborn\source\dragonborn\private
etwork\dbnetwor
DragonBorn-Win64-DebugGame.exe!UDBNetworkClient::PhotonSetCurrentHandler() {0x000000013f25d8dc} + 25 bytes [c: emp\dragonborn\source\dragonborn\private
etwork\dbnetwor
DragonBorn-Win64-DebugGame.exe!UDBLoginHandler::InitializeComponent() {0x000000013f25bee5} + 0 bytes [c: emp\dragonborn\source\dragonborn\private\loginsystem\dblo
DragonBorn-Win64-DebugGame.exe!AActor::InitializeComponents() {0x000000013f9c6b29} + 0 bytes
DragonBorn-Win64-DebugGame.exe!AActor::PostActorConstruction() {0x000000013f9cbc84} + 0 bytes
DragonBorn-Win64-DebugGame.exe!AActor::FinishSpawning() {0x000000013f9b5d80} + 0 bytes
DragonBorn-Win64-DebugGame.exe!AActor::PostSpawnInitialize() {0x000000013f9cca89} + 0 bytes
DragonBorn-Win64-DebugGame.exe!UWorld::SpawnActor() {0x000000013fa3d080} + 0 bytes
DragonBorn-Win64-DebugGame.exe!ADBGameMode::BeginPlay() {0x000000013f257da0} + 69 bytes [c: emp\dragonborn\source\dragonborn\private\dbgamemode.cpp:3
DragonBorn-Win64-DebugGame.exe!AWorldSettings::NotifyBeginPlay() {0x00000001400f4afd} + 0 bytes
DragonBorn-Win64-DebugGame.exe!AGameMode::HandleMatchHasStarted() {0x000000013f88adf2} + 0 bytes
DragonBorn-Win64-DebugGame.exe!AGameMode::SetMatchState() {0x000000013f8aacd0} + 0 bytes
DragonBorn-Win64-DebugGame.exe!UWorld::BeginPlay() {0x00000001400d080e} + 0 bytes
DragonBorn-Win64-DebugGame.exe!UEngine::LoadMap() {0x000000013f94e9e8} + 0 bytes
DragonBorn-Win64-DebugGame.exe!UEngine::Browse() {0x000000013f8f5e8e} + 0 bytes
DragonBorn-Win64-DebugGame.exe!UGameInstance::StartGameInstance() {0x000000013f8ae793} + 0 bytes
DragonBorn-Win64-DebugGame.exe!UGameEngine::Init() {0x000000013f88cb6b} + 0 bytes
DragonBorn-Win64-DebugGame.exe!FEngineLoop::Init() {0x000000013f29bab5} + 0 bytes
DragonBorn-Win64-DebugGame.exe!GuardedMain() {0x000000013f29ae78} + 0 bytes
DragonBorn-Win64-DebugGame.exe!GuardedMainWrapper() {0x000000013f29b1aa} + 0 bytes
DragonBorn-Win64-DebugGame.exe!WinMain() {0x000000013f2ada19} + 0 bytes
DragonBorn-Win64-DebugGame.exe!__tmainCRTStartup() {0x000000014214d815} + 21 bytes [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]
kernel32.dll {0x00000000778259cd} + 0 bytes
ntdll.dll {0x000000007795b981} + 0 bytes
ntdll.dll {0x000000007795b981} + 0 bytes
Hope someone can help me with this issue.