question

mrus avatar image
mrus asked

amazon mobile ads unity iOS crashes

hello,

my app with amazon mobile ads via unity works for android. but if i test the iOS app, it closes if i call a banner. I get this error:

Anyone has an idea whats wrong?

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)




AmazonMobileAdsUnityIPhone: Successfully called native code in 9 ms

UnityEngine.Logger:Log(LogType, Object)

UnityEngine.Debug:Log(Object)

com.amazon.mas.cpt.ads.AmazonMobileAdsBase:LoadAndShowFloatingBannerAdJson(String)

com.amazon.mas.cpt.ads.AmazonMobileAdsBase:LoadAndShowFloatingBannerAd(Ad)

AdTest:DisplayFloatingAd(Boolean)

UnityEngine.Events.InvokableCallList:Invoke(Object[])

UnityEngine.UI.Button:Press()

UnityEngine.EventSystems.ExecuteEvents:Execute(IPointerClickHandler, BaseEventData)

UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)

UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)

UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents()

UnityEngine.EventSystems.StandaloneInputModule:Process()

UnityEngine.EventSystems.EventSystem:Update()

System.Array:GetGenericValueImpl(Int32, T&)

System.Array:GetGenericValueImpl(Int32, T&)

System.Array:GetGenericValueImpl(Int32, T&)

 

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)




2016-05-26 12:40:33.202 photoplay[206:6371] Ad Failed to load. Error code 1: Try again in 9.999959 seconds.

2016-05-26 12:40:33.202 photoplay[206:6371] Ad has failed to load

AmazonMobileAdsUnityIPhone: eventReceived

UnityEngine.Logger:Log(LogType, Object)

UnityEngine.Debug:Log(Object)

com.amazon.mas.cpt.ads.AmazonMobileAdsImpl:FireEvent(String)

System.Array:GetGenericValueImpl(Int32, T&)

System.Array:GetGenericValueImpl(Int32, T&)

System.Array:GetGenericValueImpl(Int32, T&)

 

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)




Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

  at System.Collections.ObjectModel.Collection`1[T].CheckWritable (IList`1 list) [0x00000] in <filename unknown>:0 

  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (.TKey key) [0x00000] in <filename unknown>:0 

  at com.amazon.mas.cpt.ads.AmazonMobileAdsImpl.FireEvent (System.String jsonMessage) [0x00000] in <filename unknown>:0 

  at System.Array.GetGenericValueImpl[T] (Int32 pos, .T& value) [0x00000] in <filename unknown>:0 

  at System.Array.GetGenericValueImpl[T] (Int32 pos, .T& value) [0x00000] in <filename unknown>:0 

  at System.Array.GetGenericValueImpl[T] (Int32 pos, .T& value) [0x00000] in <filename unknown>:0 

UnityEngine.Logger:Log(LogType, Object)

UnityEngine.Debug:LogError(Object)

UnityEngine.UnhandledExceptionHandler:PrintException(String, Exception)

UnityEngine.UnhandledExceptionHandler:HandleUnhandledException(Object, UnhandledExceptionEventArgs)

System.Array:GetGenericValueImpl(Int32, T&)

System.Array:GetGenericValueImpl(Int32, T&)

System.Array:GetGenericValueImpl(Int32, T&)

 

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)




photoplay was compiled with optimization - stepping may behave oddly; variables may not be available.

(lldb) 
mobile adsiosunity
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

HunterGames avatar image
HunterGames answered

I have same problem can't find a solution anywhere

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sindy@Amazon avatar image
Sindy@Amazon answered

Hi! Are you still experiencing this issue? Please let us know and we will escalate. Thanks!

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

AppyNation Ltd. avatar image
AppyNation Ltd. answered

This might be similar to an issue I posted here.

Try adding handlers for all event not just the ones you use.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.