google-ar / arcore-android-sdk

ARCore SDK for Android Studio
https://developers.google.com/ar
Other
4.96k stars 1.22k forks source link

Crash when exiting arcore instance after reopening for many times #1025

Open yonathankevinr opened 4 years ago

yonathankevinr commented 4 years ago

SPECIFIC ISSUE ENCOUNTERED

Hi, our device crash very often when exiting the ar core after reopening for many times.

VERSIONS USED

Device manufacturer, model, and O/S: Samsung a6 / Pixel 2013
ARCore: v1.15.0
Output of adb shell getprop ro.build.fingerprint:

STEPS TO REPRODUCE THE ISSUE

Open ar core
Close ar core
Open ar core again
Close ar core again, some times it crashed. Sometimes need to reopen 3 - 4 times

Backtrace

2020-04-02 14:24:00.023 12592-12592/? A/DEBUG: backtrace: 2020-04-02 14:24:00.023 12592-12592/? A/DEBUG: #00 pc 011859f0 /data/app/com.google.ar.core-suCxe8gnWHA6E53t7UdeSA==/lib/arm/libarcore_c.so 2020-04-02 14:24:00.023 12592-12592/? A/DEBUG: #1 pc 01151951 /data/app/com.google.ar.core-suCxe8gnWHA6E53t7UdeSA==/lib/arm/libarcore_c.so 2020-04-02 14:24:00.023 12592-12592/? A/DEBUG: #2 pc 01151a87 /data/app/com.google.ar.core-suCxe8gnWHA6E53t7UdeSA==/lib/arm/libarcore_c.so 2020-04-02 14:24:00.023 12592-12592/? A/DEBUG: #3 pc 01150491 /data/app/com.google.ar.core-suCxe8gnWHA6E53t7UdeSA==/lib/arm/libarcore_c.so (ArSession_destroy+52) 2020-04-02 14:24:00.023 12592-12592/? A/DEBUG: #4 pc 00009357 /data/app/com.gameloft.android.ANMP.GloftGGHM-y5022xt3k_UsDdwTGEiipA==/lib/arm/libarcore_sdk_jni.so 2020-04-02 14:24:00.023 12592-12592/? A/DEBUG: #5 pc 0004da4b /data/app/com.gameloft.android.ANMP.GloftGGHM-y5022xt3k_UsDdwTGEiipA==/oat/arm/base.odex (offset 0x4b000) (com.google.ar.core.Session.nativeCloseSession [DEDUPED]+82) 2020-04-02 14:24:00.023 12592-12592/? A/DEBUG: #6 pc 00420f75 /system/lib/libart.so (art_quick_invoke_stub_internal+68) 2020-04-02 14:24:00.023 12592-12592/? A/DEBUG: #7 pc 003f9a89 /system/lib/libart.so (art_quick_invoke_stub+224) 2020-04-02 14:24:00.023 12592-12592/? A/DEBUG: #8 pc 000a1a0d /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread, unsigned int, unsigned int, art::JValue, char const)+136) 2020-04-02 14:24:00.023 12592-12592/? A/DEBUG: #9 pc 001eceef /system/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread, art::ArtMethod, art::ShadowFrame, unsigned short, art::JValue)+230) 2020-04-02 14:24:00.023 12592-12592/? A/DEBUG: #10 pc 001e7b69 /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod, art::Thread, art::ShadowFrame&, art::Instruction const, unsigned short, art::JValue)+784) 2020-04-02 14:24:00.023 12592-12592/? A/DEBUG: #11 pc 003f55c9 /system/lib/libart.so (MterpInvokeDirect+196)

yonathankevinr commented 4 years ago

Hi, this issue may related to Google Play Services AR SDK We tried to downgrade the sdk. here's the result AR 14.1 -> no crash AR 15 -> no crash AR 16 -> crash

agGitHub commented 3 years ago

I think that this problem still exists. Any solution?