AsyncTask CallBack crash in packaged mode

Hey, I’m having trouble understanding why this crash happens. I have an AsyncTask that executes a bunch of stuff in the background and then does a callback to an event on the main game thread once its done. It works most of the time while in the editor but for some reason when I play in standalone after packaging or in some exceptions while in-editor I get this crash regarding my callback. I’ve made sure to use thread safe pointers for the task and all that and even queue the callback to run on the main game thread. I’m not sure what I’m doing wrong. Any help would be appreciated :slight_smile:

Here are some implementations:

The actual callback implementation, I use the callback in the destructor of the asynctask in order to make sure that anything in doWork() has already finished.

Here is the FAsyncPlaySong declaration as well as how I’m starting up the task from the main game thread.

And the DoWork() part of the asynctask