question

commandertso avatar image
commandertso asked

Unreproducable crash - maybe with Prime31?

Hi folks, We have an app that uses Unity and Prime31's social plugin. The app has passed the review process many times, but with the latest upgrade of Prime31's social plugin we are failing the submission process. We can't reproduce this issue using the emulator, our test devices or with the app-testing-service. The latest version of the social plugin required Prime31 to be the main activity (as opposed to Unity) so perhaps that is causing the recursive java.lang.StackOverflowError listed below. This callstack come from the review process. It seems that something in the app submission (injection process) is presenting a case that we can not reproduce… Is anyone else using Prime31's social plugin with Unity and passing the submission process? Anyone else seen this issue and have a fix? Thanks ahead of time. 12-12 09:58:50.489: D/Kiwi(6766): CrashManagerImpl: Crash detected 12-12 09:58:50.489: D/Kiwi(6766): java.lang.StackOverflowError 12-12 09:58:50.489: D/Kiwi(6766): at com.unity3d.player.UnityPlayerNativeActivity.onCreate(Unknown Source) 12-12 09:58:50.489: D/Kiwi(6766): at com.prime31.UnityPlayerNativeActivity.onCreateUnityPlayerNativeActivity(UnityPlayerNativeActivity.java:17) 12-12 09:58:50.489: D/Kiwi(6766): at com.unity3d.player.UnityPlayerNativeActivity.onCreate(Unknown Source) 12-12 09:58:50.489: D/Kiwi(6766): at com.prime31.UnityPlayerNativeActivity.onCreateUnityPlayerNativeActivity(UnityPlayerNativeActivity.java:17) 12-12 09:58:50.489: D/Kiwi(6766): at com.unity3d.player.UnityPlayerNativeActivity.onCreate(Unknown Source) 12-12 09:58:50.489: D/Kiwi(6766): at com.prime31.UnityPlayerNativeActivity.onCreateUnityPlayerNativeActivity(UnityPlayerNativeActivity.java:17) 12-12 09:58:50.489: D/Kiwi(6766): at com.unity3d.player.UnityPlayerNativeActivity.onCreate(Unknown Source) 12-12 09:58:50.489: D/Kiwi(6766): at com.prime31.UnityPlayerNativeActivity.onCreateUnityPlayerNativeActivity(UnityPlayerNativeActivity.java:17) 12-12 09:58:50.489: D/Kiwi(6766): at com.unity3d.player.UnityPlayerNativeActivity.onCreate(Unknown Source) 12-12 09:58:50.489: D/Kiwi(6766): at com.prime31.UnityPlayerNativeActivity.onCreateUnityPlayerNativeActivity(UnityPlayerNativeActivity.java:17) 12-12 09:58:50.489: D/Kiwi(6766): at com.unity3d.player.UnityPlayerNativeActivity.onCreate(Unknown Source) 12-12 09:58:50.489: D/Kiwi(6766): at com.prime31.UnityPlayerNativeActivity.onCreateUnityPlayerNativeActivity(UnityPlayerNativeActivity.java:17) 12-12 09:58:50.489: D/Kiwi(6766): at com.unity3d.player.UnityPlayerNativeActivity.onCreate(Unknown Source) 12-12 09:58:50.489: D/Kiwi(6766): at com.prime31.UnityPlayerNativeActivity.onCreateUnityPlayerNativeActivity(UnityPlayerNativeActivity.java:17) 12-12 09:58:50.489: D/Kiwi(6766): at com.unity3d.player.UnityPlayerNativeActivity.onCreate(Unknown Source) Message was edited by: commandertso
fire tablet
10 |5000

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

commandertso avatar image
commandertso answered
Sorry - I put "injection" in that post, should have been "ingestion".
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Commandertso, Sorry for the delay to respond back. I see your latest version of app does not have any force close and the issue that was reported before, has been fixed. Could you please share with us what are the changes you have made in the latest version so that this could help other developers developing on top of Prime31?
10 |5000

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

commandertso avatar image
commandertso answered
Hi Sujoy, Yes, we got the issue fixed. Thanks. During a recent upgrade, the Prime31 documentation suggested that we make Prime31 the main activity in our Android Manifest. When we submitted to Amazon and saw the issue in my original post, we still had the Unity activities listed (all the com.unity3d.player ones). We only started experiencing crashes once we'd submitted to Amazon - something in the Amazon ingestion / injection process caused that configuration to crash out on startup. The issues went away once we removed all the all the com.unity3d.player.* activities from the manifest. In the Prime31 forums it suggests that they are not necessary. Since com.prime31.UnityPlayerProxyActivity is a subclass of the Unity Activity, the theory was that the presence of both in the manifest, combined with the Amazon code ingestion process, was causing the recursive stack overflow.
10 |5000

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