I use Unreal 4.12.5. my project is 99.99% C++. Visually I have an empty floor and 2 bots, one being the player and the other one AI. I’m running heavy logic and logging so in development mode the frame rate stutters. I wanted to see if the shipping build would be more performant.
I successfully compiled a Windows 64-bit shipping build. When I run it the app just crashes. there are some entries in the Windows application log, and a Windows crash report file. The actual extension of the report file is .wer but I couldn’t upload it, so I renamed it to .txt.
This is a sample.txt of an entry from Windows application log
I already tried verifying and reinstalling UE4, restarting etc. to no avail. same behavior with Windows 32. same behavior on another computer.
•Does this occur if you package it for development?
it occurs for any combination of win32/64 with shipping/development/debug
•Have you been able to reproduce this in a clean project at all? If so, please provide a detailed list of repro steps.
a clean project works fine. I’m currently trying to rebuild it from scratch in smaller increments, but honestly I have dozens of classes in various degrees of interconnection, so I don’t know if the smaller increments approach is achievable. I have about 10 UE4 actors and objects, and about 40 classes almost exclusively for AI and combat. Initially I used heavy reflection, but yesterday I spent it re-factoring my code to avoid it, unfortunately to no avail
my system is currently Windows 10 64-bit, it’s a clean build, less than two months with only a handful of software installed almost exclusively for UE4 development. besides the logs I already uploaded, I don’t think I have anything else to report…
Since you’re unable to reproduce it in a clean project, and you are not getting a Crash Reporter window, would you be able to zip up the project, upload it to dropbox, and provide me with a link so I can test it on our end?
After further investigation, I was unable to get any useful information from the logs, or determine what is causing the project to crash. What I’d recommend, as you suggested earlier, is attempting to slowly rebuild it from scratch. Although this process can be tedious, it will allow you to narrow down the cause of the crash. If you are able to determine the code that is causing the crash, feel free to reopen this thread and I’ll be more than happy to look into the issue further. On the same note, if you are able to provide any additional information that you feel will be helpful in reproducing this in a clean project, don’t hesitate to comment on this thread.
ADA2UE4Item* oItem = oCreature->GetWorld()->SpawnActor(itemBlueprint->GeneratedClass); //this line is the culprit
I double checked and the blueprint is being loaded fine. I also tried to create the item when I press a key, just in case my character’s not fully initialized, but I had the same problem. I even tried AActor* oItem = oCreature->GetWorld()->SpawnActor(itemBlueprint->GeneratedClass); with same result
Any clue why outside PIE has this issue, or is there a better alternative to spawn actors?
I’m not sure why this would cause a crash outside of PIE, other than the possibility that something you are passing into the function does not exist in the world yet (depending on when you are calling the function, some items may not have been initialized as you mentioned).