-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash during ArSession_update with ndk #1199
Comments
Verified. |
Can you please attach the lines above the stack traces? In particular, I'm missing
|
Here are all the lines from the stack trace.
The problem occurs already during ArSession_resume when not called after attachCurrentThread: Here is the stack traces for that particular case:
|
I thought I was able to reproduce, but that turned out to be my own error. Can you create a small reproducible case? I've tried using |
I recreate a small project using the native_activity sample. It crashes in a similar way during ArSession_update. |
Thank you very much for the sample. Strangely, running it myself I am not able to reproduce the issue. Could I possibly ask what device you're running this sample on? Best, |
I tested on a Pixel4 and a Pixel3 and on both it crashes at ArSession_update or ArSession_resume (if _activity->vm->DetachCurrentThread() is called before ArSession_resume). I just updated my sample app to check for the camera permission, otherwise ARCore will not be initialized and used then no crash. |
Hello,
Thanks |
Okay, if I delay the update call about 10 iterations I get the following crash dump:
Thanks |
In the sample ARCore example, the native interface from ARCore is used with from Java with JNI interface which works. Is ARCore meant to be used in a native application? |
Has anyone made any progress on this? I'm having a very similar issue using the emulator (pixel 2) |
SPECIFIC ISSUE ENCOUNTERED
The app runs in a separate thread like the "Native Activity" sample from ndk-samples. During the update, it crashes everytime during ArSession_update.
It worked fine with the previous version ARCore SDK 1.20.0 and arcore services : 1.22.*
Another strange thing is that it crashes with ArSession_resume if this function is not called after vm->attachCurrentThread.
StackTrace:
VERSIONS USED
adb shell getprop ro.build.fingerprint
: google/flame/flame:11/RQ1A.210205.004/7038034:user/release-keysSTEPS TO REPRODUCE THE ISSUE
WORKAROUNDS (IF ANY)
ADDITIONAL COMMENTS
The sample "hello_ar_c" works but it uses the jni interface and ARCore is started from the main thread.
The text was updated successfully, but these errors were encountered: