[SDKBOXPlay] Crash on signin on Android

Hello!

I was hoping someone could help me out with an issue we’re having in one of our apps. We’re using the latest version of SDKBOX with the Play plugin on cocos2d-x and for some reason we keep having crashes every single time we try to login, using either ‘connect on startup’ in the json or the ‘signin’ method of the play plugin.

The only consistent error in the logs that we get is this, which occurs every single time we try to call the ‘signin’ method:

01-05 10:52:52.107  8016  8016 E chromium: [ERROR:interface_registry.cc(104)] Failed to locate a binder for interface: autofill::mojom::PasswordManagerDriver
01-05 10:52:52.143  8016  8016 E chromium: [ERROR:interface_registry.cc(104)] Failed to locate a binder for interface: autofill::mojom::PasswordManagerDriver
01-05 10:52:52.176  8016  8016 W cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 8016
01-05 10:52:52.177  8016  8016 W cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 8016
01-05 10:52:52.183  8016  8016 E chromium: [ERROR:interface_registry.cc(104)] Failed to locate a binder for interface: autofill::mojom::PasswordManagerDriver

Is there anything special we need to do to get this to work? On iOS it works fine, on Android it crashes.

There are a lot of potential reasons for this, can you try capture the actual crash log?

Also first thing to check would be make sure the app_id for android is setup correctly

EDIT: I noticed the AdMobListener error messages in there, seems like disabling the AdMobListener on Android that we were using prevents the crashes from happening. Note however that if SDKBOXPLAY is turned off the AdMobListener does not cause any issues.

Here’s the part where it says it crashes (I think, there’s no explicit ‘SDKBOXPLAY failed’ error, only this one):

01-06 11:17:20.574 16426 16442 F libc    : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x263 in tid 16442 (GLThread 6482)
01-06 11:17:20.605 16426 16426 I chromium: [INFO:CONSOLE(0)] "Document was loaded from Application Cache with manifest https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.appcache", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
01-06 11:17:20.606 16426 16426 I chromium: [INFO:CONSOLE(0)] "Application Cache Checking event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
01-06 11:17:20.620   486  1472 D BandwidthController: [LG DATA] No such appUid: 10135
01-06 11:17:20.620   486  1472 D DnsProxyListener: App 10135 tries DNS query. Accept family:0 protocol:0
01-06 11:17:20.626   487   487 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-06 11:17:20.626   487   487 F DEBUG   : Build fingerprint: 'lge/pplus_global_com/pplus:6.0/MRA58K/162530832dd57:user/release-keys'
01-06 11:17:20.626   487   487 F DEBUG   : Revision: '11'
01-06 11:17:20.626   487   487 F DEBUG   : ABI: 'arm'
01-06 11:17:20.626   487   487 F DEBUG   : pid: 16426, tid: 16442, name: GLThread 6482  >>> com.impalastudios.solitairefree <<<
01-06 11:17:20.626   487   487 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x263
01-06 11:17:20.672   487   487 F DEBUG   :     r0 0000000e  r1 00000000  r2 e35ce490  r3 0000000e
01-06 11:17:20.672   487   487 F DEBUG   :     r4 00000001  r5 d80acab4  r6 ef021514  r7 00000004
01-06 11:17:20.672   487   487 F DEBUG   :     r8 1313a650  r9 ed811100  sl 00000000  fp ef02148c
01-06 11:17:20.672   487   487 F DEBUG   :     ip 00000065  sp ef021460  lr d79bfd84  pc d79bfd88  cpsr a00d0010
01-06 11:17:20.678   487   487 F DEBUG   : 
01-06 11:17:20.678   487   487 F DEBUG   : backtrace:
01-06 11:17:20.678   487   487 F DEBUG   :     #00 pc 00472d88  /data/app/com.impalastudios.solitairefree-1/lib/arm/libcocos2dcpp.so (_ZN15MyAdMobListener18adViewDidReceiveAdERKSs+120)
01-06 11:17:20.678   487   487 F DEBUG   :     #01 pc 0049ba77  /data/app/com.impalastudios.solitairefree-1/lib/arm/libcocos2dcpp.so (_ZN6sdkbox19AdMobWrapperEnabled20onAdViewDidReceiveAdERKSs+22)
01-06 11:17:20.678   487   487 F DEBUG   :     #02 pc 0049b333  /data/app/com.impalastudios.solitairefree-1/lib/arm/libcocos2dcpp.so (_ZN6sdkbox33PluginAdMobNativeBridgeAdObserverclERKSsP8_jobject+182)
01-06 11:17:20.678   487   487 F DEBUG   :     #03 pc 0049b4b5  /data/app/com.impalastudios.solitairefree-1/lib/arm/libcocos2dcpp.so (_ZNSt17_Function_handlerIFvRKSsP8_jobjectEN6sdkbox33PluginAdMobNativeBridgeAdObserverEE9_M_invokeERKSt9_Any_dataS1_S3_+4)
01-06 11:17:20.679   487   487 F DEBUG   :     #04 pc 00538453  /data/app/com.impalastudios.solitairefree-1/lib/arm/libcocos2dcpp.so (Java_com_sdkbox_jnibridge_NativeBridge_emitNative+42)
01-06 11:17:20.679   487   487 F DEBUG   :     #05 pc 00ff84e3  /data/app/com.impalastudios.solitairefree-1/oat/arm/base.odex (offset 0xa2a000) (void com.sdkbox.jnibridge.NativeBridge.emitNative(long, java.lang.String, java.lang.Object)+142)
01-06 11:17:20.679   487   487 F DEBUG   :     #06 pc 00ff7d41  /data/app/com.impalastudios.solitairefree-1/oat/arm/base.odex (offset 0xa2a000) (void com.sdkbox.jnibridge.NativeBridge$1.run()+684)
01-06 11:17:20.679   487   487 F DEBUG   :     #07 pc 03fd0965  /system/framework/arm/boot.oat (offset 0x2bb9000)
01-06 11:17:20.862   505   663 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1344000
01-06 11:17:20.874   505   663 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1248000
01-06 11:17:20.906   505   663 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 960000
01-06 11:17:20.938   505   663 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1248000
01-06 11:17:20.968   505   663 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1344000
01-06 11:17:20.999   505   663 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1440000
01-06 11:17:21.733   487   487 F DEBUG   : 
01-06 11:17:21.733   487   487 F DEBUG   : Tombstone written to: /data/tombstones/tombstone_04
01-06 11:17:21.733   487   487 E DEBUG   : AM write failed: Broken pipe
01-06 11:17:21.738  1397  1437 I BootReceiver: Copying /data/tombstones/tombstone_04 to DropBox (SYSTEM_TOMBSTONE)