Trouble shooting Editor Crash on game shutdown

BACKGROUND

Okay so I have this inventory system I am building. It is composed of a Character and two UObjects defined as InventoryManager and InventorySlot. InventoryManager manages an array of InventorySlots. InventoryManager is initialized in constructor using PCIP object passed in but InventorySlots are all Dynamically created because they can be increased or decreased. In general this system works fine as I can pickup items, drop items, and use items out of inventory system.

problem always seems to occur when I shut down game from editor (haven’t tested it as a standalone system). If character picks up an object from world and has it in their inventory it crashes. Now I had this working with InventoryManager simply being a TArray object with no problem, but ever since I increased it’s level of complexity by adding in inventory slot management it started Crashing. My theory is that something is not Deallocating properly and is being hung up with a cyclical reference in Garbage collection on shutdown.

QUESTION

However I have no idea where to begin to start hunting this down. While I have source code my game is using official engine at moment and Debugger throws error in some microsoft library (at least that’s what it looks like). UDK had engine logs I could at least look at to find any information on errors and what not but I cannot find anything useful like that with UE4.

Hey ArcainOne,

You can find logs in your project folder. If you’re using binary version of engine from Launcher, default location for your projects is in C:UsersUserNameDocumentsUnreal Projects.

You can read more about bug reporting and crash logs here:

If you would like us to take a look, please attach requested logs and dump files. Thanks!

OF COURSE! project folder! (why didn’t I think about that… no really why didn’t I think about that…) Thanks . I was looking in UE4 Engine installation direction (still used to UDK I guess). I will post more information should I need it.

Thanks for info