#Game Freeze On 4th Rewarded Ad Onwards

1 messages · Page 1 of 1 (latest)

eager horizon
#

Hello, I am using the Ads Kit, and the game freezes for 10seconds after watching the 4th rewarded ad onwards.
However, the 1st-3rd rewarded ad dont have this issue, only the 4th and after that got this freezing for 10s issue
Even after restarting the game, still the same, happen only 4 or 5th rewarded video ad onwards.
Is there any workaround or recommended fix for this issue? Thank you!

Video: https://drive.google.com/file/d/1xwNgVTeIfGLge-otIOC-AUssT8Oyy_v0/view?usp=sharing

cedar veldt
#

the first one is only 5 seconds freeze, 00:47 till 00:52, not very noticable, but the second freeze in the video is very noticable, 01:45 till 01:57. It happened everytime i watched ad the 4th/5th time onwards. (I assumed the app goes into background on Pause when we are watching ad) then comeback to the app again it will have this freeze 10s. However the first 3 ads that i watched dont have this issue, only 1-2 seconds freeze which seem normal

#

So, the pause is after you close the ad manually? right?

eager horizon
#

yeah

#

i have this new recorded video, it starts to freeze even earlier, so its around 3rd/4th ad after close the ad

#

This is with test ads

#

01:18 till 01:29

cedar veldt
#

Thanks for confirming!
Unfortunately, I don't have something dynamic in our Ads Kit Demo scene for you to test that scene. But mostly input also won't be considered at that time if it's a freeze. Right?

#

But, I can test with the given details. Will update you.

eager horizon
#

thank!

#

yeah, its just freeze, UI cant press, sometimes its showing black screen

cedar veldt
#

Ok.

eager horizon
#

i think it might be just the game build or maybe the admob/other packages that causing this issue? For now, a quick fix is i just restart the whole game on loading screen whenever user has tried to switch app more than 3 times (because switch app has the same pattern as admob video appearing since it will cause the game to pause and return back to the game)

#

I would be really appreciate if you have tips for this kind of issue just in case you encountered it before😅

cedar veldt
#

Sure! I will find the reason. Hopefully, I can reproduce the issue.
I'm guessing something to do with GC

eager horizon
#

cool!

eager horizon
#

if i have called it somewhere?

cedar veldt
#

You can register to lowMemory event and see if it's firing the callback

#

Also, instead of reloading whole game, give a try calling "Resources.UnloadUnusedAssets();"

eager horizon
#

oh i see