UnityAds crashes the game built with Unity 5.3.1 and running on Android

I have just updated to Unity 5.3.1f1. And now I get crash while running the game with enabled UnityAds on Android.
If disable UnityAds, then the game runs without the trouble.

Unity 5.3.1f1
Nexus 4, Android 5.1.1

I/DEBUG ( 184): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 184): Build fingerprint: ‘google/occam/mako:5.1.1/LMY48T/2237560:user/release-keys’
I/DEBUG ( 184): Revision: ‘11’
I/DEBUG ( 184): ABI: ‘arm’
I/DEBUG ( 184): pid: 20699, tid: 20722, name: UnityMain >>> com.a25apps.HillClimber <<<
I/DEBUG ( 184): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10
I/DEBUG ( 184): r0 00000000 r1 00000000 r2 b80deca8 r3 00000000
I/DEBUG ( 184): r4 b7e26170 r5 ffffffff r6 00000000 r7 b7e25fe0
I/DEBUG ( 184): r8 00000000 r9 00000000 sl 00000000 fp a2376844
I/DEBUG ( 184): ip a3433858 sp a2376838 lr a27a4870 pc af967efc cpsr 600f0010
I/DEBUG ( 184):
I/DEBUG ( 184): backtrace:
I/DEBUG ( 184): #00 pc 00198efc /data/app/com.a25apps.HillClimber-1/lib/arm/libmono.so (mono_method_get_name+20)
I/DEBUG ( 184): #01 pc 0042d86c /data/app/com.a25apps.HillClimber-1/lib/arm/libunity.so (mono_profiler_begin(ScriptingMethodMono, MonoClass*, MonoObject*)+320)
I/DEBUG ( 184): #02 pc 00406104 /data/app/com.a25apps.HillClimber-1/lib/arm/libunity.so (ScriptingInvocation::Invoke(MonoException**, bool)+32)
I/DEBUG ( 184): #03 pc 0083c5f0 /data/app/com.a25apps.HillClimber-1/lib/arm/libunity.so (MTUnityAdsCampaignsAvailable()+80)
I/DEBUG ( 184): #04 pc 00498cf4 /data/app/com.a25apps.HillClimber-1/lib/arm/libunity.so (MessageLoop::ExecuteQueuedJobs()+68)
I/DEBUG ( 184): #05 pc 003a8ed8 /data/app/com.a25apps.HillClimber-1/lib/arm/libunity.so (PlayerLoop(bool, bool, IHookEvent*)+1044)
I/DEBUG ( 184): #06 pc 005172dc /data/app/com.a25apps.HillClimber-1/lib/arm/libunity.so (UnityPlayerLoop()+700)
I/DEBUG ( 184): #07 pc 0051ca80 /data/app/com.a25apps.HillClimber-1/lib/arm/libunity.so (nativeRender(_JNIEnv*, _jobject*)+264)
I/DEBUG ( 184): #08 pc 0079d5cf /data/dalvik-cache/arm/data@app@com.a25apps.HillClimber-1@base.apk@classes.dex

Can you provide me with a link to the build in a private message?

Thanks.

I’m having the same problem. UnityAds causes my app to crash a second after launching the app. If disabled, app works fine.

Running Unity 5.3.1f1 on OSX

Same issue for me as well. Crash about 1-2 seconds after fir scene loads

Anything yet?

Same issue here.

I have sent builds to @unity-nikkolai as he asked. I hope it will help to find the cause of the crash.

If I disable stripping, the crash goes away, but, of course, it isn’t a solution for a production.
In my case the crash persists also in Unity 5.3.1p1.

I can confirm that disabling stripping fixes the issues. However, this isn’t ideal.
OSX 10.10.5
Unity 5.3.1f1
Android Device: OnePlus One Android Version 5.1.1

Error occurs on new empty projects that have Untiy Ads.

1 Like

Another confirmation, stripping fixes the problem but makes the apk larger.
OS: Windows 10
Unity 5.3.1f1

Tested and confirmed on these devices: Nexus 4 (Android 5.1.1), LG V10 (Android 5.1.1), Nexus 5 (Android 6.0), Galaxy Nexus (Android 4.3).

Sadly I reported this issue months ago, it delays my release for 2 months already. Check out my thread.

Not sure this is the same thing, for me it started with 5.3.1 (used previous versions on the same game without any issues), and it is affecting all Android versions (4.x, 5.x, 6.x).

found this on google, looks like it is a bug on unity tool. same issue with AdMob Interstitual

https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/game-engines/_ZJT6W_4ADw

Hmm I got no problem with admob but I´m having UnityAds´s issue

Hey guys,

If you still got the problem dont forget to vote to get it fixed :stuck_out_tongue:

1 Like

Thanks! I was going to submit a bug report tonight. You have saved a bit of my time. :slight_smile:

1 Like

It´s fixed in Unity 5.3.3 :slight_smile:
(Issuetracker has been updated)

But we still have only 5.3.1. :frowning:

But eat least this now we know this issue was important enough to fix it at all. :slight_smile:

Unity 5.3.1.p4 has been released today, seems like it has not been fixed yet in it (havent tested). I wonder whats Unity 5.3.3, as I can find nothing about unity 5.3.2, and when it is going to be released. Any idea?

I am doing this in an empty start scene:
while (!Advertisement.isInitialized)
{
yield return null;
}

@unity-nikkolai Is there anything we could add link.xml until 5.3.3 is released that would circumvent the issue?

I tried UnityEngine.Advertisements and UnityEngine.WWW but had no luck.