[SOLVED] SDKBox 2.1.1 crash with Cocos2d-x 3.9

Hi, my android version will crash on enableUserSideVerification
Can you help to check what happened?

// IAP initialize like this
sdkbox::IAP::setDebug(debugVersion);
sdkbox::IAP::setListener(this);
sdkbox::IAP::init();
sdkbox::IAP::enableUserSideVerification(true);

log :
03-16 15:11:38.821 14488-14512/? A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 14512 (GLThread 1000)
03-16 15:11:38.923 193-193/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-16 15:11:38.923 193-193/? A/DEBUG: Build fingerprint: ‘google/razor/flo:6.0.1/MMB29V/2554798:user/release-keys’
03-16 15:11:38.923 193-193/? A/DEBUG: Revision: ‘0’
03-16 15:11:38.923 193-193/? A/DEBUG: ABI: ‘arm’
03-16 15:11:38.924 193-193/? A/DEBUG: pid: 14488, tid: 14512, name: GLThread 1000 >>> com.aaa.bbb<<<
03-16 15:11:38.924 193-193/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
03-16 15:11:38.947 193-193/? A/DEBUG: Abort message: ‘art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: JNI NewStringUTF called with pending exception java.lang.NullPointerException: Attempt to invoke virtual method ‘void com.sdkbox.plugin.util.iap.IabHelper.enableUserSideVerification(boolean)’ on a null object reference’
03-16 15:11:38.948 193-193/? A/DEBUG: r0 00000000 r1 000038b0 r2 00000006 r3 aedff978
03-16 15:11:38.948 193-193/? A/DEBUG: r4 aedff980 r5 aedff930 r6 0000000b r7 0000010c
03-16 15:11:38.948 193-193/? A/DEBUG: r8 b4c3f378 r9 b4cea800 sl 00000001 fp 00000001
03-16 15:11:38.948 193-193/? A/DEBUG: ip 00000006 sp aedfef18 lr b6c7cb61 pc b6c7ef50 cpsr 40070010
03-16 15:11:39.005 193-193/? A/DEBUG: #00 pc 00041f50 /system/lib/libc.so (tgkill+12)
03-16 15:11:39.005 193-193/? A/DEBUG: #01 pc 0003fb5d /system/lib/libc.so (pthread_kill+32)
03-16 15:11:39.006 193-193/? A/DEBUG: #02 pc 0001c30f /system/lib/libc.so (raise+10)
03-16 15:11:39.006 193-193/? A/DEBUG: #03 pc 000194c1 /system/lib/libc.so (__libc_android_abort+34)
03-16 15:11:39.006 193-193/? A/DEBUG: #04 pc 000174ac /system/lib/libc.so (abort+4)
03-16 15:11:39.006 193-193/? A/DEBUG: #05 pc 00333971 /system/lib/libart.so (art::Runtime::Abort()+228)
03-16 15:11:39.006 193-193/? A/DEBUG: #06 pc 000f45fb /system/lib/libart.so (art::LogMessage::~LogMessage()+2226)
03-16 15:11:39.006 193-193/? A/DEBUG: #07 pc 0025aa4f /system/lib/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1550)
03-16 15:11:39.006 193-193/? A/DEBUG: #08 pc 0025adfd /system/lib/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, std::__va_list)+64)
03-16 15:11:39.007 193-193/? A/DEBUG: #09 pc 000fd1d1 /system/lib/libart.so (art::ScopedCheck::AbortF(char const*, …)+32)
03-16 15:11:39.007 193-193/? A/DEBUG: #10 pc 001022e5 /system/lib/libart.so (art::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::JniValueType*) (.constprop.95)+5072)
03-16 15:11:39.007 193-193/? A/DEBUG: #11 pc 00109e23 /system/lib/libart.so (art::CheckJNI::NewStringUTF(_JNIEnv*, char const*)+386)
03-16 15:11:39.007 193-193/? A/DEBUG: #12 pc 00623d54 /data/app/com.aaa.bbb/lib/arm/libsuperidol.so (_JNIEnv::NewStringUTF(char const*)+40)
03-16 15:11:39.007 193-193/? A/DEBUG: #13 pc 0062b140 /data/app/com.aaa.bbb/lib/arm/libsuperidol.so (getClassID(char const*)+60)
03-16 15:11:39.007 193-193/? A/DEBUG: #14 pc 0062b708 /data/app/com.aaa.bbb/lib/arm/libsuperidol.so (cocos2d::JniHelper::getStaticMethodInfo(cocos2d::JniMethodInfo
&, char const*, char const*, char const*)+136)
03-16 15:11:39.007 193-193/? A/DEBUG: #15 pc 006235c0 /data/app/com.aaa.bbb/lib/arm/libsuperidol.so (cocos2d::Application::setAnimationInterval(float)+84)
03-16 15:11:

We’ll look into this, and give you an update soon,
Can you confirm that if you remove this line

sdkbox::IAP::enableUserSideVerification(true)

Everything works correctly?

enableUserSideVerification has no side effects.
Could you please verify you have added this to your androidmanifest.xml file ?

<meta-data android:name=“store” android:value=“googleplay” />

Thanks.

  • ibon

Thank you for the reply
After I test it, I found if I do a clean and delete all cache files, then re-build it, it won’t crash.
But then if I keep building it(no clean and delete obj files), it will crash at enableUserSideVerification this function.
And if I remove this line, even incremental build still goes well.
I guess this maybe a compiler’s problem.

No, I don’t add this line, should I add it to use google play store?

please add this to your AndroidManifest.xml
you can add after this line in your AndrodiManifest.xml file

<meta-data android:name="android.app.lib_name" android:value="cocos2dcpp" />

Best,
Pabitra

Actually not. Just wanted to make sure, if that value was added it had a valid value. If targeting play store, there’s no need to add it since IAP defaults to playstore .

Thanks.

I also have the same problem.
SDKBox IAP 2.1.1.2 and Cocos2d-x 3.10.

This crash.

sdkbox::IAP::enableUserSideVerification(true); 

And

sdkbox::IAP::enableUserSideVerification(false);

does not crash to remove.

I added this code.

<meta-data android:name="store" android:value="googleplay" />

Please help.

We already fixed this issue.
You can update to the latest SDKBOX with the following command

sdkbox update

Update SDKBox IAP v2.1.3.3.
But. crashes.
error log.

04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: JNI NewStringUTF called with pending exception 'java.lang.NullPointerException' thrown in unknown throw location
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]     in call to NewStringUTF
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]     from void org.cocos2dx.lib.Cocos2dxRenderer.nativeInit(int, int)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65] "GLThread 51614" prio=5 tid=16 Runnable
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   | group="main" sCount=0 dsCount=0 obj=0x12ca02d0 self=0xac9cac00
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   | sysTid=15242 nice=0 cgrp=apps sched=0/0 handle=0xac59f300
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   | state=R schedstat=( 0 0 0 ) utm=45 stm=9 core=2 HZ=100
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   | stack=0xa18fe000-0xa1900000 stackSize=1036KB
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   | held mutexes= "mutator lock"(shared held)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   native: #00 pc 00004c58  /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   native: #01 pc 000034c1  /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   native: #02 pc 002526ad  /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+84)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   native: #03 pc 0023618b  /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+162)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   native: #04 pc 000b1215  /system/lib/libart.so (art::JniAbort(char const*, char const*)+620)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   native: #05 pc 000b1945  /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+68)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   native: #06 pc 000b4bcd  /system/lib/libart.so (art::ScopedCheck::ScopedCheck(_JNIEnv*, int, char const*)+1324)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   native: #07 pc 000bd9d5  /system/lib/libart.so (art::CheckJNI::NewStringUTF(_JNIEnv*, char const*)+28)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   native: #08 pc 0073426c  /data/app/com.aaa.bbb-1/lib/arm/libcocos2dcpp.so (_JNIEnv::NewStringUTF(char const*)+40)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   native: #09 pc 0093871c  /data/app/com.aaa.bbb-1/lib/arm/libcocos2dcpp.so (_getClassID(char const*)+60)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   native: #10 pc 00938c78  /data/app/com.aaa.bbb-1/lib/arm/libcocos2dcpp.so (cocos2d::JniHelper::getStaticMethodInfo(cocos2d::JniMethodInfo_&, char const*, char const*, char const*)+136)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   native: #11 pc 00931cd8  /data/app/com.aaa.bbb-1/lib/arm/libcocos2dcpp.so (cocos2d::Application::setAnimationInterval(float)+60)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   native: #12 pc 00fa100c  /data/app/com.aaa.bbb-1/lib/arm/libcocos2dcpp.so (cocos2d::DisplayLinkDirector::startAnimation()+140)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   native: #13 pc 00f9ee84  /data/app/com.aaa.bbb-1/lib/arm/libcocos2dcpp.so (cocos2d::Director::runWithScene(cocos2d::Scene*)+400)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   native: #14 pc 00737284  /data/app/com.aaa.bbb-1/lib/arm/libcocos2dcpp.so (AppDelegate::applicationDidFinishLaunching()+760)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   native: #15 pc 00931c6c  /data/app/com.aaa.bbb-1/lib/arm/libcocos2dcpp.so (cocos2d::Application::run()+40)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   native: #16 pc 00935138  /data/app/com.aaa.bbb-1/lib/arm/libcocos2dcpp.so (Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit+224)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   native: #17 pc 002672d9  /data/dalvik-cache/arm/data@app@com.aaa.bbb-1@base.apk@classes.dex (Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit__II+88)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   at org.cocos2dx.lib.Cocos2dxRenderer.nativeInit(Native method)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   at org.cocos2dx.lib.Cocos2dxRenderer.onSurfaceCreated(Cocos2dxRenderer.java:72)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1500)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65]   at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239)
04-19 13:45:59.787 15134-15242/com.aaa.bbb A/art: art/runtime/check_jni.cc:65] 
04-19 13:46:00.448 15134-15144/com.aaa.bbb W/art: Suspending all threads took: 13.153ms
04-19 13:46:00.573 15134-15242/com.aaa.bbb A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x39 in tid 15242 (GLThread 51614)

Why?
Thank you.

I solved.
this code crash.

bool applicationDidFinishLaunching() {
    ...
    sdkbox::IAP::init();
    sdkbox::IAP::setDebug(true);
    sdkbox::IAP::enableUserSideVerification(true);
    ...
}

There is no problem call from other than “applicationDidFinishLaunching()”.
thank you :smile:

There was a small issue before.
If you update it now, it should work like a charm

But even I update to V2.1.3.3
I still have the same crash problem
I post on here SDKBox crash on android 4.4
Thanks

It’s possible that your sdkbox.jar and jni/sdkbox file failed to update to the latest version, can you make sure they all be modified?

I jsut test it and use the new downloaded version from web site (not by update) 2.1.3.3
But had no luck, the same problem, here is the log
The functions I call are all static, no matter what, it shouldn’t crash, right?
sdkbox::IAP::init();
sdkbox::IAP::setDebug(true);
sdkbox::IAP::enableUserSideVerification(true);

04-21 19:07:05.593 4198-4198/com.bbb.aaa I/GMPM: App measurement is starting up, version: 8487
04-21 19:07:05.593 4198-4198/com.bbb.aaa I/GMPM: To enable debug logging run: adb shell setprop log.tag.GMPM VERBOSE
04-21 19:07:05.604 4198-4198/com.bbb.aaa E/GMPM: GoogleService failed to initialize, status: 10, Missing an expected resource: ‘R.string.google_app_id’ for initializing Google services. Possible causes are missing google-services.json or com.google.gms.google-services gradle plugin.
04-21 19:07:05.604 4198-4198/com.bbb.aaa E/GMPM: Scheduler not set. Not logging error/warn.
04-21 19:07:05.622 4198-4217/com.bbb.aaa E/GMPM: Uploading is not possible. App measurement disabled
04-21 19:07:05.666 4198-4198/com.bbb.aaa D/JniHelper: JniHelper::setJavaVM(0xb4cfc000), pthread_self() = -1225581772
04-21 19:07:05.667 4198-4198/com.bbb.aaa D/main: cocos_android_app_init
04-21 19:07:05.667 4198-4198/com.bbb.aaa I/SDKBOX_CORE: Sdkbox Droid starting.
04-21 19:07:05.668 4198-4198/com.bbb.aaa I/SDKBOX_CORE: Sdkbox got VM.
04-21 19:07:05.668 4198-4198/com.bbb.aaa I/SDKBOX_CORE: Sdkbox jni initialized.
04-21 19:07:05.709 4198-4198/com.bbb.aaa D/Cocos2dxActivity: model=Nexus 7
04-21 19:07:05.709 4198-4198/com.bbb.aaa D/Cocos2dxActivity: product=razor
04-21 19:07:05.709 4198-4198/com.bbb.aaa D/Cocos2dxActivity: isEmulator=false
04-21 19:07:05.722 4198-4198/com.bbb.aaa D/Cocos2dxActivity: onResume()
04-21 19:07:05.731 4198-4221/com.bbb.aaa D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
04-21 19:07:05.753 4198-4221/com.bbb.aaa I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 10/21/15, 369a2ea, I96aee987eb
04-21 19:07:05.755 4198-4221/com.bbb.aaa I/OpenGLRenderer: Initialized EGL, version 1.4
04-21 19:07:05.820 4198-4220/com.bbb.aaa D/CocosPlayClient.cpp: isEnabled = 0
04-21 19:07:05.820 4198-4220/com.bbb.aaa D/CocosPlayClient.cpp: isDemo = 0
04-21 19:07:05.820 4198-4220/com.bbb.aaa D/CocosPlayClient.cpp: isNotifyFileLoadedEnabled = 0
04-21 19:07:05.851 4198-4220/com.bbb.aaa I/SDKBOX_CORE: Initialization request for plugin: ‘com/sdkbox/plugin/SDKBoxIAPGooglePlay’
04-21 19:07:05.855 4198-4220/com.bbb.aaa I/IAP: init Google store
04-21 19:07:05.855 4198-4220/com.bbb.aaa I/IAP: init Google IAP
04-21 19:07:05.883 4198-4198/com.bbb.aaa D/Cocos2dxActivity: onWindowFocusChanged() hasFocus=true
04-21 19:07:05.889 4198-4198/com.bbb.aaa I/IAP: IAB helper created.
04-21 19:07:05.890 4198-4198/com.bbb.aaa D/IAP: Starting setup.
04-21 19:07:05.890 4198-4198/com.bbb.aaa D/IAP: Starting in-app billing setup.
04-21 19:07:05.919 4198-4198/com.bbb.aaa I/IAP: Billing service connected.
04-21 19:07:05.920 4198-4198/com.bbb.aaa D/IAP: Checking for in-app billing 3 support.
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: JNI NewStringUTF called with pending exception java.lang.NullPointerException: Attempt to invoke virtual method ‘void com.sdkbox.plugin.util.iap.IabHelper.enableUserSideVerification(boolean)’ on a null object reference
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] at void com.sdkbox.plugin.SDKBoxIAPGooglePlay.enableUserSideVerification(boolean) (SDKBoxIAPGooglePlay.java:444)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] at void org.cocos2dx.lib.Cocos2dxRenderer.nativeInit(int, int) (Cocos2dxRenderer.java:-2)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] at void org.cocos2dx.lib.Cocos2dxRenderer.onSurfaceCreated(javax.microedition.khronos.opengles.GL10, javax.microedition.khronos.egl.EGLConfig) (Cocos2dxRenderer.java:72)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] at void android.opengl.GLSurfaceView$GLThread.guardedRun() (GLSurfaceView.java:1503)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] at void android.opengl.GLSurfaceView$GLThread.run() (GLSurfaceView.java:1240)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410]
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] in call to NewStringUTF
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] from void org.cocos2dx.lib.Cocos2dxRenderer.nativeInit(int, int)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] “GLThread 772” prio=5 tid=14 Runnable
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] | group=“main” sCount=0 dsCount=0 obj=0x12d36200 self=0xacb1f600
04-21 19:07:05.923 4198-4198/com.bbb.aaa D/IAP: Setup finished.
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] | sysTid=4220 nice=0 cgrp=default sched=0/0 handle=0xaedff930
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] | state=R schedstat=( 0 0 0 ) utm=3 stm=3 core=0 HZ=100
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] | stack=0xaecfd000-0xaecff000 stackSize=1038KB
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] | held mutexes= “mutator lock”(shared held)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #00 pc 00370e01 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits >&, int, char const*, art::ArtMethod*, void*)+160)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #01 pc 0035046f /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits >&) const+150)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #02 pc 0025a725 /system/lib/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+740)
04-21 19:07:05.923 4198-4198/com.bbb.aaa D/IAP: Problem setting up in-app billing: IabResult: Error checking for billing v3 support. (response: 3:Billing Unavailable)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #03 pc 0025adfd /system/lib/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, std::__va_list)+64)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #04 pc 000fd1d1 /system/lib/libart.so (art::ScopedCheck::AbortF(char const*, …)+32)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #05 pc 001022e5 /system/lib/libart.so (art::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::JniValueType*) (.constprop.95)+5072)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #06 pc 00109e23 /system/lib/libart.so (art::CheckJNI::NewStringUTF(_JNIEnv*, char const*)+386)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #07 pc 00637164 /data/app/com.bbb.aaa-1/lib/arm/libaaa.so (_JNIEnv::NewStringUTF(char const*)+40)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #08 pc 0063e44c /data/app/com.bbb.aaa-1/lib/arm/libaaa.so (getClassID(char const*)+60)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #09 pc 0063ea14 /data/app/com.bbb.aaa-1/lib/arm/libaaa.so (cocos2d::JniHelper::getStaticMethodInfo(cocos2d::JniMethodInfo
&, char const*, char const*, char const*)+136)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #10 pc 006369d0 /data/app/com.bbb.aaa-1/lib/arm/libaaa.so (cocos2d::Application::setAnimationInterval(float)+84)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #11 pc 007e1590 /data/app/com.bbb.aaa-1/lib/arm/libaaa.so (cocos2d::DisplayLinkDirector::startAnimation()+140)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #12 pc 007e1708 /data/app/com.bbb.aaa-1/lib/arm/libaaa.so (cocos2d::DisplayLinkDirector::setAnimationInterval(float)+100)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #13 pc 00533908 /data/app/com.bbb.aaa-1/lib/arm/libaaa.so (SIAppDelegate::applicationDidFinishLaunching()+1104)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #14 pc 0063694c /data/app/com.bbb.aaa-1/lib/arm/libaaa.so (cocos2d::Application::run()+40)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #15 pc 0063a19c /data/app/com.bbb.aaa-1/lib/arm/libaaa.so (Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit+248)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #16 pc 005be705 /data/app/com.bbb.aaa-1/oat/arm/base.odex (void org.cocos2dx.lib.Cocos2dxRenderer.nativeInit(int, int)+80)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #17 pc 005bf7ab /data/app/com.bbb.aaa-1/oat/arm/base.odex (void org.cocos2dx.lib.Cocos2dxRenderer.onSurfaceCreated(javax.microedition.khronos.opengles.GL10, javax.microedition.khronos.egl.EGLConfig)+78)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] native: #18 pc 00d69263 /data/dalvik-cache/arm/system@framework@boot.oat (???)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] at org.cocos2dx.lib.Cocos2dxRenderer.nativeInit(Native method)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] at org.cocos2dx.lib.Cocos2dxRenderer.onSurfaceCreated(Cocos2dxRenderer.java:72)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1503)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410] at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
04-21 19:07:05.923 4198-4220/com.bbb.aaa A/art: art/runtime/java_vm_ext.cc:410]

Hmm, is it possible that we can take a look at your code?

This is not my personal project, so I can’t just send the code for you to check.
Or, can you consider just give me that one source file to add to the project to see what happen when it crash?

The one contain this 'void com.sdkbox.plugin.util.iap.IabHelper.enableUserSideVerification(boolean)

How about using our sample project here?