Trying to cook project, getting Unhandled Exception: EXCEPTION_ACCESS_VIOLATION error

I’m trying to make a card game and as good practice I thought I’d check that the project packages correctly as I’m nearing a stage where the project is testable. Alas, it does not, giving an error. I managed to fix a couple other errors I was getting, but I don’t understand this log at all.

The project is set up with GitHub and proper source control, so I can easily nuke entire sections to see if it cooks correctly and then revert my changes. If I delete all of my blueprints in the project, leaving the art assets, the project cooks fine. I have gradually tried deleting individual blueprints and then manually fixing the resulting compile errors in other blueprints to see if I can find the offending blueprint, but so far I haven’t found it, and this is quite innefficient as the core blueprints have a lot of necessary references between them, making it difficult to quickly delete one and remove the references in another. The core Card Manager actor is referenced by most other things in the project and is quite big, so if that is the offending actor, I can’t easily delete it to confirm.

Any help would be greatly appreciated! Thanks in advance!

LogWindows: Error: begin: stack for UAT
LogWindows: Error: === Critical error: ===
LogWindows: Error: 
LogWindows: Error: Fatal error!
LogWindows: Error: 
LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x000000007160903b
LogWindows: Error: 
LogWindows: Error: [Callstack] 0x00007ffd9bab3926 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9029421d UnrealEditor-UnrealEd.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd90236a16 UnrealEditor-UnrealEd.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b97ed05 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b7297b4 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b93eac4 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b93e1f3 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b93d3f7 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b990832 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b6a181b UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69fb0c UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f93f UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f93f UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f93f UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f93f UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f93f UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f2bf UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b67b352 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b67b34a UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b92496e UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f8b1d UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f8f9b UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b91ed25 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9babebef UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f819 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f93f UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f93f UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f93f UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f93f UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f2bf UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b67b352 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b67b34a UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b92496e UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f8b1d UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f8f9b UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b91ed25 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9babebef UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f819 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f93f UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b924963 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f8b1d UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b91dfe0 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f7457 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b91dfe0 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f7457 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f8f9b UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b91ed25 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9babebef UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f819 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b924963 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f8b1d UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b91dfe0 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f7457 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f8f9b UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b91ed25 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9babebef UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f819 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b924963 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f8b1d UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b91dfe0 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f7457 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b91dfe0 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f7457 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f8f9b UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b91ed25 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9babebef UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f819 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f2bf UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b67b352 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b67b34a UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b92496e UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f8b1d UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f8f9b UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b91ed25 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9babebef UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f819 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f2bf UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b67b352 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b67b34a UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b92496e UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f8b1d UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f8f9b UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b91ed25 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9babebef UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f819 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f2bf UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b67b352 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b67b34a UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b92496e UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f8b1d UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f8f9b UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b91ed25 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9babebef UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f819 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b69f2bf UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b67b352 UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b67b34a UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b92496e UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f8b1d UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00007ffd9b8f8f9b UnrealEditor-CoreUObject.dll!UnknownFunction []
LogWindows: Error: 
LogWindows: Error: end: stack for UAT
LogExit: Executing StaticShutdownAfterError
LogWindows: FPlatformMisc::RequestExit(1)
LogWindows: FPlatformMisc::RequestExitWithStatus(1, 3)
LogCore: Engine exit requested (reason: Win RequestExit)

Edit with solution: So I actually managed to resolve this, somewhat with brute force, but I’d still like to understand why this was happening if anyone has any ideas, and sharing my method might help future people who search for a similar error. I narrowed the problem asset down to the actor that handled the visual for my cards, purely by just deleting things and fixing the compile errors until I got a cook that gave me a new log that wasn’t just the same error I pasted above. I would just delete, cook, then close and discard changes with GitHub Desktop. After I found the problem actor, I fiddled around with removing references to it from as many places as I could think of. Each card has a data structure of all of its information, i.e. Name, Description, Cost, etc. This also includes a secondary structure that contains a class reference to this Card Visual actor that was giving me problems. The purpose of the structure was in case you ever want to change how a specific card appears visually. So I tried changing the variable type from a Card Visual class reference to a generic Actor class reference, and it worked. Cooked fine. But I couldn’t leave it as a generic Actor class due to how its implemented, so I turned it back to a Card Visual class reference, and it broke again. Eventually, through some arbitary order of changing values of these structures, I got it to cook fine whilst still using the correct class reference. Really not sure what was going on here, as the steps I took consisted of just somewhat randomly changing the variable type and default value between a few things, for it to just randomly work? Not complaining, but want to understand why? Either way, hopefully this helps someone in the future.

Hey there @MythicTy! Welcome back to the community! Interesting that changing variable types back and forth actually corrected it. Generally this points to a need to wipe all cooked data, binaries, and the caches. In cases where the only error is a memory location without any other info in the callstack besides an object caused it, that’s often the first recommendation. Thankfully it worked out in your case though!

It did seem a bit random that changing the variables in the structures solved it, since I could’ve sworn I’d already done that order of changing things before, only for it to fail, and I was redoing it to confirm that it indeed didn’t work and it just… did? It’d be difficult to reproduce, because it was a somewhat random order of changing variable types and default values of the two structures.

I feel like it was a case of a corrupted reference to the structure somewhere, as the structure is constantly changing as I update the cards and how they function, something might have had a bad value saved in it, but I’m not sure. A couple of the errors I managed to fix before this one pointed to some structures that had changed a fair few times whilst I’ve been developing this, and a similar thing solved them, just resaving the structure and recompiling the errored blueprints, but that time it actually pointed me to specific asset files.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.