Skip to content
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

A wacky crash while calling ArSession_create #586

Closed
wuzeqin opened this issue Sep 29, 2018 · 5 comments
Closed

A wacky crash while calling ArSession_create #586

wuzeqin opened this issue Sep 29, 2018 · 5 comments

Comments

@wuzeqin
Copy link

wuzeqin commented Sep 29, 2018

A wacky crash while calling ArSession_create. Here is a crash stack call trace snapshot
15381443739558
This crash suddenly occur to me in my Samsung SM-G9600 every time , I have no idea to deal with it. Please give me some advice to solve it. Thank you.

@inio
Copy link

inio commented Sep 29, 2018

The fact that this suddenly started happening probably means it's related to the 1.5 update that released a few days ago.

Is there a logcat message generated by this crash? Since it's entering an abort path I would suspect there is.

One thing that's suspicious is that this is coming from CheckThread. Is it possible that you're not calling ArSession_create from the JNI thread? If you have a vm object you can use AttachCurrentThread to get an env for another thread.

@inio
Copy link

inio commented Sep 29, 2018

One thought: in particular check your logcat for the message "AssetManager has been finalized!". This would indicate that this is actually #563 surfacing in a different way.

@inio inio added the bug label Sep 29, 2018
@inio
Copy link

inio commented Sep 29, 2018

Actually, I'm going to assume that this is #563. #584 has a crash withart::ScopedCheck::CheckThread(_JNIEnv*) on the stack and and "AssetManager has been finalized!". Deduping both these issues into #563 and bumping internal priority,

@inio
Copy link

inio commented Sep 29, 2018

Duplicate of #563

@wuzeqin
Copy link
Author

wuzeqin commented Sep 30, 2018

Thank you for your advice inio. I'm sure that calling ArSession_create from the JNI thread. And your assumption is correct, there really is a message “AssetManager has been finalized!” in logcat.
#588 find a certainly path lead to this crash in the domestic edition(CN) Samsung S9 While running arcore official sample.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants