google-ar / arcore-unity-extensions

Google ARCore Extensions and Geospatial Creator for Unity's AR Foundation
Other
354 stars 96 forks source link

If a gameObject has ARSession and deletes, the app is crush. #78

Open ForJobOk opened 2 years ago

ForJobOk commented 2 years ago

I tried using GeoSpatialAPI, so I add ARCore extensions in my unity project. When I called below code, the app is crushed.

[SerializeField] private ARSession arSession;

GameObject.Destroy(arSession.gameObject);

I reset AR Session before destroy, and it did not crush.

arSession.Reset();
GameObject.Destroy(arSession.gameObject);

version ARCore Extensions 1.32.0 ARFoundation 4.1.7

ForJobOk commented 2 years ago

Crash log

07-14 23:23:26.881 10916 10996 E CRASH   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
07-14 23:23:26.881 10916 10996 E CRASH   :     x0  0000000000000000  x1  0000000000002af4  x2  0000000000000006  x3  00000076e3e3ef80
07-14 23:23:26.881 10916 10996 E CRASH   :     x4  fefefefefefefeff  x5  fefefefefefefeff  x6  fefefefefefefeff  x7  7f7f7f7f7f7f7f7f
07-14 23:23:26.881 10916 10996 E CRASH   :     x8  00000000000000f0  x9  bf804e2c64647f94  x10 0000000000000000  x11 ffffffc0fffffbdf
07-14 23:23:26.881 10916 10996 E CRASH   :     x12 0000000000000001  x13 00000000000000a1  x14 ff00000000000000  x15 ffffffffffffffff
07-14 23:23:26.881 10916 10996 E CRASH   :     x16 0000007af803bc80  x17 0000007af801d3b0  x18 00000076e32b0000  x19 0000000000002aa4
07-14 23:23:26.881 10916 10996 E CRASH   :     x20 0000000000002af4  x21 00000000ffffffff  x22 0000000000000000  x23 0000000000000000
07-14 23:23:26.881 10916 10996 E CRASH   :     x24 0000007867721fe7  x25 0000000000000001  x26 0000007867738f3c  x27 0000007867d3e000
07-14 23:23:26.881 10916 10996 E CRASH   :     x28 b400007887d7e900  x29 00000076e3e3f000
07-14 23:23:26.881 10916 10996 E CRASH   :     sp  00000076e3e3ef60  lr  0000007af7fd0d20  pc  0000007af7fd0d4c
07-14 23:23:26.881 10916 10996 E CRASH   : backtrace:
07-14 23:23:26.881 10916 10996 E CRASH   :       #00 pc 000000000004dd4c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: e212acb3c9435237c61fa89358bfbb94)
07-14 23:23:26.881 10916 10996 E CRASH   :       #01 pc 000000000055d144  /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+2308) (BuildId: 6cc72a77121aa5d80fbdac1503497d38)
07-14 23:23:26.881 10916 10996 E CRASH   :       #02 pc 0000000000013978  /system/lib64/libbase.so (BuildId: 7f81cc97d60164bfae3b52a2cd822f20)
07-14 23:23:26.881 10916 10996 E CRASH   :       #03 pc 0000000000012fa4  /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+320) (BuildId: 7f81cc97d60164bfae3b52a2cd822f20)
07-14 23:23:26.881 10916 10996 E CRASH   :       #04 pc 00000000003851a0  /apex/com.android.art/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+2572) (BuildId: 6cc72a77121aa5d80fbdac1503497d38)
07-14 23:23:26.881 10916 10996 E CRASH   :       #05 pc 00000000003742b4  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckAttachedThread(char const*)+184) (BuildId: 6cc72a77121aa5d80fbdac1503497d38)
07-14 23:23:26.881 10916 10996 E CRASH   :       #06 pc 000000000037793c  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckJNI::DeleteRef(char const*, _JNIEnv*, _jobject*, art::IndirectRefKind)+64) (BuildId: 6cc72a77121aa5d80fbdac1503497d38)
07-14 23:23:26.881 10916 10996 E CRASH   :       #07 pc 00000000015c50ec  /data/app/~~xEAGeQL-56j5lsLfXC86OQ==/com.google.ar.core-D3FsylExrWt8x8tqWQhaDw==/base.apk (BuildId: 935556e61fe580d43a36c81d9b6ed3b4)
07-14 23:23:26.881 10916 10996 E CRASH   :       #08 pc 00000000015c5108  /data/app/~~xEAGeQL-56j5lsLfXC86OQ==/com.google.ar.core-D3FsylExrWt8x8tqWQhaDw==/base.apk (BuildId: 935556e61fe580d43a36c81d9b6ed3b4)
07-14 23:23:26.881 10916 10996 E CRASH   :       #09 pc 0000000001660dc0  /data/app/~~xEAGeQL-56j5lsLfXC86OQ==/com.google.ar.core-D3FsylExrWt8x8tqWQhaDw==/base.apk (BuildId: 935556e61fe580d43a36c81d9b6ed3b4)
07-14 23:23:26.881 10916 10996 E CRASH   :       #10 pc 0000000001661fdc  /data/app/~~xEAGeQL-56j5lsLfXC86OQ==/com.google.ar.core-D3FsylExrWt8x8tqWQhaDw==/base.apk (BuildId: 935556e61fe580d43a36c81d9b6ed3b4)
07-14 23:23:26.881 10916 10996 E CRASH   :       #11 pc 0000000001559bc0  /data/app/~~xEAGeQL-56j5lsLfXC86OQ==/com.google.ar.core-D3FsylExrWt8x8tqWQhaDw==/base.apk (BuildId: 935556e61fe580d43a36c81d9b6ed3b4)
07-14 23:23:26.881 10916 10996 E CRASH   :       #12 pc 0000000001559808  /data/app/~~xEAGeQL-56j5lsLfXC86OQ==/com.google.ar.core-D3FsylExrWt8x8tqWQhaDw==/base.apk (BuildId: 935556e61fe580d43a36c81d9b6ed3b4)
07-14 23:23:26.881 10916 10996 E CRASH   :       #13 pc 0000000000f0c140  /data/app/~~xEAGeQL-56j5lsLfXC86OQ==/com.google.ar.core-D3FsylExrWt8x8tqWQhaDw==/base.apk (ArSession_pause+124) (BuildId: 935556e61fe580d43a36c81d9b6ed3b4)
07-14 23:23:26.881 10916 10996 E CRASH   :       #14 pc 000000000002cad4  /data/app/~~vaEni22kWFznEv5OrrTLyg==/com.psychicvrlab.stylymr.dev-woFdFnpUZ3GUvsmjUQ_crQ==/base.apk (BuildId: ada9b0f10e6bb337508f71ab10a5be53)
07-14 23:23:26.881 10916 10996 E CRASH   :       #15 pc 0000000000029568  /data/app/~~vaEni22kWFznEv5OrrTLyg==/com.psychicvrlab.stylymr.dev-woFdFnpUZ3GUvsmjUQ_crQ==/base.apk (ArPresto_setEnabled+116) (BuildId: ada9b0f10e6bb337508f71ab10a5be53)
07-14 23:23:26.881 10916 10996 E CRASH   :       #16 pc 000000000002da74  /data/app/~~vaEni22kWFznEv5OrrTLyg==/com.psychicvrlab.stylymr.dev-woFdFnpUZ3GUvsmjUQ_crQ==/base.apk (BuildId: 5fc08f2ba7aee8fe2cf6c09e75a3d08340eddf13)
07-14 23:23:26.881 10916 10996 E CRASH   :       #17 pc 0000000000036750  /data/app/~~vaEni22kWFznEv5OrrTLyg==/com.psychicvrlab.stylymr.dev-woFdFnpUZ3GUvsmjUQ_crQ==/base.apk (BuildId: 5fc08f2ba7aee8fe2cf6c09e75a3d08340eddf13)
07-14 23:23:26.881 10916 10996 E CRASH   :       #18 pc 00000000000af888  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: e212acb3c9435237c61fa89358bfbb94)
07-14 23:23:26.881 10916 10996 E CRASH   :       #19 pc 000000000004fd08  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: e212acb3c9435237c61fa89358bfbb94)