Hello,
I`m implementing rewarded video on an application in c++ on ios and android, but the crash happened only on android. I`m using cocos2dx and Firebase 3.17.0.
Our app crashed in one of our tests, but it doesn't happen all the time. I got the message Abort message: 'rewarded_video::Initialize() must be called before this method.' on google crash report.
It happened when the app came from background to foreground, probably when the method resume was called on the rewarded video.
So my question is, do I have someway of knowing if resume is supposed to be called? Or it should be called whenever the app enters foreground?
Here is the crash report:
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/j1minilteub/j1minilte:5.1.1/LMY47V/J105MUBU0APK1:user/release-keys'
Revision: '4'
ABI: 'arm'
pid: 11362, tid: 11380, name: GLThread 1268 >>> com.quadrimind.estourabalaococos <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'rewarded_video::Initialize() must be called before this method.'
r0 00000000 r1 00002c74 r2 00000006 r3 00000000
r4 a223fdb8 r5 00000006 r6 00000002 r7 0000010c
r8 a298204e r9 b4428800 sl 00000001 fp 12eaa2f0
ip 00002c74 sp a223f938 lr b6e01735 pc b6e249f4 cpsr 600f0010
backtrace:
#00 pc 0003a9f4 /system/lib/libc.so (tgkill+12)
#01 pc 00017731 /system/lib/libc.so (pthread_kill+52)
#02 pc 00018347 /system/lib/libc.so (raise+10)
#03 pc 00014be1 /system/lib/libc.so (__libc_android_abort+36)
#04 pc 00012f70 /system/lib/libc.so (abort+4)
#05 pc 001b3d6f /data/app/com.quadrimind.estourabalaococos-1/lib/arm/libMyGame.so
#06 pc 001b3e25 /data/app/com.quadrimind.estourabalaococos-1/lib/arm/libMyGame.so
#07 pc 001b3db3 /data/app/com.quadrimind.estourabalaococos-1/lib/arm/libMyGame.so (_ZN8firebase9LogAssertEPKcz+26)
#08 pc 001b2c2b /data/app/com.quadrimind.estourabalaococos-1/lib/arm/libMyGame.so
#09 pc 001b2dc5 /data/app/com.quadrimind.estourabalaococos-1/lib/arm/libMyGame.so (_ZN8firebase5admob14rewarded_video5PauseEv+4)
#10 pc 00198da3 /data/app/com.quadrimind.estourabalaococos-1/lib/arm/libMyGame.so (_ZN11AppDelegate29applicationDidEnterBackgroundEv+62)
#11 pc 001ae293 /data/app/com.quadrimind.estourabalaococos-1/lib/arm/libMyGame.so (Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeOnPause+34)
#12 pc 00b14a0d /data/dalvik-cache/arm/data@app@com.quadrimind.es...@base.apk@classes.dex
Thanks in advance,
Felipe.