[4.11 p7] html5 gc bug?

In my C++ project I have a FPendingLatentAction in which I have a pointer to an UObject.

This FPendingLatentAction is the only object with a pointer to the UObject.

After a while (20-30 seconds), the FPendingLatentAction will call the UObject.

In the editor and in a packaged windows build this will work fine, no problem at all.

On html5 however, the console will give a warning like this:

LogScript:Warning: Attempted to access MyLatentActionInteger_1 via property K2Node_CustomEvent_LatentAction36, but MyLatentActionInteger_1 is pending kill

It seems that, on html5 at least, the FPendingLatentAction won’t prevent the UObject from being garbage collected.

Is this a bug, or am I forgetting to do something?

Please upload the full error log that you’re receiving as a .txt format. Also include the code that you’re questioning. If you have your project uploaded to a website, including the link to your game should be helpful as well.

Looking forward to hearing back from you, thanks!

Hey

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!