GameAnalytics / GA-SDK-GODOT

Official GameAnalytics Godot SDK repository
MIT License
42 stars 7 forks source link

Game is getting crashed on opening due to GA in Android #16

Closed abhiagnihotri01 closed 3 years ago

abhiagnihotri01 commented 3 years ago

GA version - 1.2.8 Godot Version - 3.3.2.stable

When I start my game after installing it to android, the game crashes immediately. I am getting below logs:

Build fingerprint: 'xiaomi/violet/violet:10/QKQ1.190915.002/V12.0.5.0.QFHINXM:user/release-keys' Revision: '0' ABI: 'arm64' signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr -------- Abort message: 'JNI DETECTED ERROR IN APPLICATION: JNI CallVoidMethodV called with pending exception java.lang.NoSuchMethodError: No static method initialize(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;)V in class Lcom/gameanalytics/sdk/GameAnalytics; or its super classes (declaration of 'com.gameanalytics.sdk.GameAnalytics' appears in /data/app/com.resilient_games.jumping_ron_adventure-baAhV115cqsoSej3Ce42OQ==/base.apk) at void com.gameanalytics.godotgameanalytics.GodotGameAnalytics.init(java.lang.String, java.lang.String) (GodotGameAnalytics.java:115) at void org.godotengine.godot.GodotLib.step() (GodotLib.java:-2) at void org.godotengine.godot.GodotRenderer.onDrawFrame(javax.microedition.khronos.opengles.GL10) (GodotRenderer.java:60) at void android.opengl.GLSurfaceView$GLThread.guardedRun() (GLSurfaceView.java:1577) at void android.opengl.GLSurfaceView$GLThread.run() (GLSurfaceView.java:1272)

in call to CallVoidMethodV
from void org.godotengine.godot.GodotLib.step()'
x0  0000000000000000  x1  0000000000004a43  x2  0000000000000006  x3  0000007b9bea4bb0
x4  6500000000000000  x5  6500000000000000  x6  6500000000000000  x7  0000000000008065
x8  00000000000000f0  x9  f1350921292c6f29  x10 0000000000000001  x11 0000000000000000
x12 fffffff0fffffbdf  x13 0000000000000002  x14 0000000000000008  x15 0000d719b6e94a3f
x16 0000007c8b1548c0  x17 0000007c8b130900  x18 0000007b94884000  x19 0000000000004a0d
x20 0000000000004a43  x21 00000000ffffffff  x22 0000007b8468ae80  x23 0000007c0605a3ce
x24 0000007c0603a467  x25 0000007c06577000  x26 0000007c05ebd258  x27 0000007c06577000
x28 0000000000000043  x29 0000007b9bea4c50
sp  0000007b9bea4b90  lr  0000007c8b0e20c4  pc  0000007c8b0e20f0

backtrace:

00 pc 00000000000830f0 /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: 328a3518945f3e056fc055f1eea1cc35)

  #01 pc 00000000004b9680  /apex/com.android.runtime/lib64/libart.so (art::Runtime::Abort(char const*)+2280) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #02 pc 000000000000b458  /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+580) (BuildId: 36cd125456a5320dd3dcb8cfbd889a1a)
  #03 pc 00000000004fe7ac  /apex/com.android.runtime/lib64/libart.so (art::Thread::AssertNoPendingException() const+1136) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #04 pc 0000000000166a48  /apex/com.android.runtime/lib64/libart.so (art::ClassLinker::FindClass(art::Thread*, char const*, art::Handle<art::mirror::ClassLoader>)+64) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #05 pc 0000000000153a48  /apex/com.android.runtime/lib64/libart.so (art::ClassLinker::DoResolveType(art::dex::TypeIndex, art::Handle<art::mirror::DexCache>, art::Handle<art::mirror::ClassLoader>)+184) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #06 pc 0000000000526574  /apex/com.android.runtime/lib64/libart.so (_ZN3art8verifier4impl12_GLOBAL__N_114MethodVerifierILb0EE6VerifyEv$09bf97eb2c0d684adb6d215f7005036e+1540) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #07 pc 000000000052a0e8  /apex/com.android.runtime/lib64/libart.so (art::verifier::MethodVerifier::FindLocksAtDexPc(art::ArtMethod*, unsigned int, std::__1::vector<art::verifier::MethodVerifier::DexLockInfo, std::__1::allocator<art::verifier::MethodVerifier::DexLockInfo>>*, unsigned int)+648) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #08 pc 000000000040f298  /apex/com.android.runtime/lib64/libart.so (art::Monitor::VisitLocks(art::StackVisitor*, void (*)(art::ObjPtr<art::mirror::Object>, void*), void*, bool)+820) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #09 pc 0000000000410230  /apex/com.android.runtime/lib64/libart.so (art::MonitorObjectsStackVisitor::VisitFrame()+164) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #10 pc 00000000004dbd84  /apex/com.android.runtime/lib64/libart.so (_ZN3art12StackVisitor9WalkStackILNS0_16CountTransitionsE0EEEvb+1644) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #11 pc 00000000004fd510  /apex/com.android.runtime/lib64/libart.so (art::Thread::DumpJavaStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, bool) const+452) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #12 pc 00000000004f9380  /apex/com.android.runtime/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+536) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #13 pc 0000000000513ca4  /apex/com.android.runtime/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+828) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #14 pc 000000000050ce2c  /apex/com.android.runtime/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+1324) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #15 pc 000000000050bfac  /apex/com.android.runtime/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+1964) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #16 pc 00000000004b9344  /apex/com.android.runtime/lib64/libart.so (art::Runtime::Abort(char const*)+1452) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #17 pc 000000000000b458  /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+580) (BuildId: 36cd125456a5320dd3dcb8cfbd889a1a)
  #18 pc 00000000003781f8  /apex/com.android.runtime/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1584) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #19 pc 000000000037841c  /apex/com.android.runtime/lib64/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, std::__va_list)+108) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #20 pc 000000000036a844  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::AbortF(char const*, ...)+136) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #21 pc 0000000000369318  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::CheckPossibleHeapValue(art::ScopedObjectAccess&, char, art::(anonymous namespace)::JniValueType)+1144) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #22 pc 0000000000368700  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::(anonymous namespace)::JniValueType*)+652) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #23 pc 000000000036d750  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::CheckJNI::CheckCallArgs(art::ScopedObjectAccess&, art::(anonymous namespace)::ScopedCheck&, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, art::InvokeType, art::(anonymous namespace)::VarArgs const*)+132) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #24 pc 000000000036c640  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::CheckJNI::CallMethodV(char const*, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, std::__va_list, art::Primitive::Type, art::InvokeType)+712) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #25 pc 000000000035af98  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::CheckJNI::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+72) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #26 pc 0000000000179464  /data/app/com.resilient_games.jumping_ron_adventure-baAhV115cqsoSej3Ce42OQ==/lib/arm64/libgodot_android.so
  #27 pc 000000000017cc68  /data/app/com.resilient_games.jumping_ron_adventure-baAhV115cqsoSej3Ce42OQ==/lib/arm64/libgodot_android.so (Java_org_godotengine_godot_GodotLib_step+112)
  #28 pc 0000000000140350  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #29 pc 00000000001375b8  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #30 pc 000000000014600c  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+276) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #31 pc 00000000002e3800  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #32 pc 00000000002dea60  /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+892) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #33 pc 00000000005a3aa8  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+372) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #34 pc 0000000000131994  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #35 pc 00000000004251d8  [anon:dalvik-classes.dex extracted in memory from /data/app/com.resilient_games.jumping_ron_adventure-baAhV115cqsoSej3Ce42OQ==/base.apk] (org.godotengine.godot.GodotRenderer.onDrawFrame+20)
  #36 pc 00000000005a2ab4  /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+1788) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #37 pc 0000000000131a14  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #38 pc 00000000002facac  /system/framework/framework.jar (android.opengl.GLSurfaceView$GLThread.guardedRun+1096)
  #39 pc 00000000005a35a0  /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+1100) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #40 pc 0000000000131914  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #41 pc 00000000002fb288  /system/framework/framework.jar (android.opengl.GLSurfaceView$GLThread.run+48)
  #42 pc 00000000002b4b14  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.17460956533834400288+240) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #43 pc 000000000059253c  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1032) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #44 pc 0000000000140468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #45 pc 0000000000137334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #46 pc 0000000000145fec  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #47 pc 00000000004b0f40  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #48 pc 00000000004b2054  /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #49 pc 00000000004f2a10  /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1176) (BuildId: 26b4972f0c05dd090ddf8e4f72cd4ccf)
  #50 pc 00000000000e6890  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 328a3518945f3e056fc055f1eea1cc35)
  #51 pc 0000000000084b6c  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 328a3518945f3e056fc055f1eea1cc35)
abhiagnihotri01 commented 3 years ago

Thanks @ssemakin. GA started working after updating android sdk to 5.4.3.