Calling SpawnActor after assigning Template into FActorSpawnParameters crashes on Android

When passing FActorSpawnParameters with the Template field set into SpawnActor, I get “AttachToSelfWarning”. Not a big deal on PC, but it crashes on android at UObjectGlobals.cpp (1969) with the log “Gamethread hitch waiting for resource cleanup on a UObject (%s) overwrite. Fix the higher level code so that this does not happen.”.

What could be the probable cause for this ?

Hey Polytopey,

Do you have a sample project that you can provide for us to test on? If not, could you please provide exact reproduction steps for us to set this up properly and ensure whether or not there is a bug. Which version of Android is your device on, and what type of device is it? Please upload your logcat files as well. You can obtain the by opening up Monitor.bat which is found here: C:\android-sdk-windows\tools

Looking forward to hearing back from you, thanks!

Hey Polytopey,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you!