-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
ANR happens with arm64-v8a apk #755
Comments
Thank you for the report! We were just tracking a similar issue. |
romainguy
added
bug
Something isn't working
android
Issue/feature request for Android only
sceneform
labels
Jan 29, 2019
I can reproduce the issue very easily, thanks. |
Here is the stack in debug, it looks like the job system has a bug in
|
pixelflinger
added a commit
that referenced
this issue
Jan 29, 2019
This reverts a JobSystem optimization that attempted to avoid signaling a condition when there was no waiters. Unfortunately, there was a race that caused the the signaling thread to miss that the waiter flag was set, thus not signaling.
AdrianAtGoogle
pushed a commit
to AdrianAtGoogle/filament
that referenced
this issue
Jan 30, 2019
This reverts a JobSystem optimization that attempted to avoid signaling a condition when there was no waiters. Unfortunately, there was a race that caused the the signaling thread to miss that the waiter flag was set, thus not signaling.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
If only build arm64-v8a target sample(image-based-lighting) apk, the anr happens in some devices:
To Reproduce
Steps to reproduce the behavior:
productFlavors {
arm8 {
dimension 'cpuArch'
ndk {
abiFilters 'arm64-v8a'
}
}
Expected behavior
The apk should runs well
Smartphone (please complete the following information):
Additional context
ANR logs as below:
"main" prio=5 tid=1 Native
| group="main" sCount=1 dsCount=0 flags=1 obj=0x758918f0 self=0x7d98a14c00
| sysTid=8779 nice=-4 cgrp=default sched=0/0 handle=0x7e1f12f548
| state=S schedstat=( 328631778 11113018 529 ) utm=26 stm=6 core=1 HZ=100
| stack=0x7fe72eb000-0x7fe72ed000 stackSize=8MB
| held mutexes=
kernel: __switch_to+0x9c/0xc0
kernel: futex_wait_queue_me+0xcc/0x144
kernel: futex_wait+0xe4/0x1a0
kernel: do_futex+0x190/0x548
kernel: SyS_futex+0x134/0x1d4
kernel: __sys_trace+0x4c/0x4c
native: #00 pc 000000000001f3ec /system/lib64/libc.so (syscall+28)
native: #1 pc 00000000000905d8 /data/app/com.google.android.filament.ibl-m0lYnrjI-SnIkOOjzTfTNg==/lib/arm64/libfilament-jni.so (utils::Condition::wait_until(utils::Mutex*, bool, timespec*)+104)
at com.google.android.filament.Renderer.nEndFrame(Native method)
at com.google.android.filament.Renderer.endFrame(Renderer.java:49)
at com.google.android.filament.ibl.MainActivity$FrameCallback.doFrame(MainActivity.kt:270)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1077)
at android.view.Choreographer.doCallbacks(Choreographer.java:885)
at android.view.Choreographer.doFrame(Choreographer.java:806)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1065)
at android.os.Handler.handleCallback(Handler.java:891)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:7470)
at java.lang.reflect.Method.invoke(Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
The text was updated successfully, but these errors were encountered: