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

Magisk app ANR on non-root devices #5787

Closed
yujincheng08 opened this issue May 3, 2022 · 3 comments
Closed

Magisk app ANR on non-root devices #5787

yujincheng08 opened this issue May 3, 2022 · 3 comments
Labels
regression Something works in previous versions but not in the current one

Comments

@yujincheng08
Copy link
Collaborator

Device:
Android version:
Magisk version name:
Magisk version code: 24307

generic_x86_64:/ # cat /data/anr/trace_00

----- pid 3509 at 2022-05-03 21:18:58 -----
Cmd line: com.topjohnwu.magisk
Build fingerprint: 'Android/sdk_phone_x86_64/generic_x86_64:8.1.0/OSM1.180201.023/4931629:userdebug/test-keys'
ABI: 'x86_64'
Build type: optimized
Zygote loaded classes=5026 post zygote classes=979
Intern table: 44167 strong; 136 weak
JNI: CheckJNI is on; globals=510 (plus 36 weak)
Libraries: /system/lib64/libandroid.so /system/lib64/libcompiler_rt.so /system/lib64/libjavacrypto.so /system/lib64/libjnigraphics.so /system/lib64/libmedia_jni.so /system/lib64/libsoundpool.so /system/lib64/libwebviewchromium_loader.so libjavacore.so libopenjdk.so (9)
Heap: 13% free, 4MB/5MB; 23595 objects
Dumping cumulative Gc timings
Cumulative bytes moved 1936512
Cumulative objects moved 40978
Total number of allocations 23595
Total bytes allocated 4MB
Total bytes freed 0B
Free memory 717KB
Free memory until GC 717KB
Free memory until OOME 379MB
Total memory 5MB
Max memory 384MB
Zygote space size 492KB
Total mutator paused time: 0
Total time waiting for GC to complete: 63.600us
Total GC count: 0
Total GC time: 0
Total blocking GC count: 0
Total blocking GC time: 0
Registered native bytes allocated: 84523
/data/app/com.topjohnwu.magisk-k5w5FYgENzGNJM507h5-yg==/oat/x86_64/base.odex: quicken
Current JIT code cache size: 56KB
Current JIT data cache size: 44KB
Current JIT capacity: 128KB
Current number of JIT code cache entries: 129
Total number of JIT compilations: 129
Total number of JIT compilations for on stack replacement: 1
Total number of JIT code cache collections: 1
Memory used for stack maps: Avg: 213B Max: 12KB Min: 24B
Memory used for compiled code: Avg: 411B Max: 16KB Min: 1B
Memory used for profiling info: Avg: 113B Max: 3KB Min: 32B
Start Dumping histograms for 130 iterations for JIT timings
Compiling:      Sum: 120.553ms 99% C.I. 99us-19472us Avg: 934.519us Max: 23582us
TrimMaps:       Sum: 19.483ms 99% C.I. 18us-5511us Avg: 151.031us Max: 10709us
Code cache collection:  Sum: 222us 99% C.I. 222us-222us Avg: 222us Max: 222us
Done Dumping histograms
Memory used for compilation: Avg: 120KB Max: 5MB Min: 15KB
ProfileSaver total_bytes_written=0
ProfileSaver total_number_of_writes=0
ProfileSaver total_number_of_code_cache_queries=1
ProfileSaver total_number_of_skipped_writes=1
ProfileSaver total_number_of_failed_writes=0
ProfileSaver total_ms_of_sleep=45000
ProfileSaver total_ms_of_work=2
ProfileSaver max_number_profile_entries_cached=0
ProfileSaver total_number_of_hot_spikes=2
ProfileSaver total_number_of_wake_ups=2

suspend all histogram:  Sum: 3.689ms 99% C.I. 13us-3202.560us Avg: 461.125us Max: 3281us
DALVIK THREADS (20):
"Signal Catcher" daemon prio=5 tid=3 Runnable
  | group="system" sCount=0 dsCount=0 flags=0 obj=0x14300020 self=0x7b20ef8bf400
  | sysTid=3515 nice=0 cgrp=default sched=0/0 handle=0x7b20e78fe4f0
  | state=R schedstat=( 791931 1721014 5 ) utm=0 stm=0 core=2 HZ=100
  | stack=0x7b20e7804000-0x7b20e7806000 stackSize=1005KB
  | held mutexes= "mutator lock"(shared held)
  native: #00 pc 000000000046f015  /system/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*)+213)
  native: #01 pc 00000000005595f0  /system/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+320)
  native: #02 pc 000000000057296e  /system/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+926)
  native: #03 pc 000000000056a5f8  /system/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+488)
  native: #04 pc 0000000000569f47  /system/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+759)
  native: #05 pc 0000000000569b83  /system/lib64/libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+851)
  native: #06 pc 000000000053bec9  /system/lib64/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+201)
  native: #07 pc 000000000054699b  /system/lib64/libart.so (art::SignalCatcher::HandleSigQuit()+2075)
  native: #08 pc 00000000005452fa  /system/lib64/libart.so (art::SignalCatcher::Run(void*)+378)
  native: #09 pc 0000000000079f3b  /system/lib64/libc.so (__pthread_start(void*)+27)
  native: #10 pc 0000000000028c8d  /system/lib64/libc.so (__start_thread+61)
  native: #11 pc 0000000000027515  /system/lib64/libc.so (__bionic_clone+53)
  (no managed stack frames)

"main" prio=5 tid=1 Native
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x733125f0 self=0x7b20ef8bea00
  | sysTid=3509 nice=-10 cgrp=default sched=0/0 handle=0x7b2174910a08
  | state=S schedstat=( 3728438195 338705637 16760 ) utm=313 stm=59 core=0 HZ=100
  | stack=0x7ffc219a2000-0x7ffc219a4000 stackSize=8MB
  | held mutexes=
  kernel: ep_poll+0x274/0x330
  kernel: SyS_epoll_wait+0x91/0xb6
  kernel: SyS_epoll_pwait+0x84/0xf1
  kernel: system_call_fastpath+0x12/0x17
  native: #00 pc 000000000007c17a  /system/lib64/libc.so (__epoll_pwait+10)
  native: #01 pc 000000000002947c  /system/lib64/libc.so (epoll_pwait+60)
  native: #02 pc 0000000000015fc2  /system/lib64/libutils.so (android::Looper::pollInner(int)+162)
  native: #03 pc 0000000000015e8e  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+94)
  native: #04 pc 000000000011a525  /system/lib64/libandroid_runtime.so (???)
  native: #05 pc 00000000001e31cb  /system/framework/x86_64/boot-framework.oat (Java_android_os_MessageQueue_nativePollOnce__JI+187)
  at android.os.MessageQueue.nativePollOnce(Native method)
  at android.os.MessageQueue.next(MessageQueue.java:325)
  at android.os.Looper.loop(Looper.java:142)
  at android.app.ActivityThread.main(ActivityThread.java:6494)
  at java.lang.reflect.Method.invoke(Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

"Jit thread pool worker thread 0" daemon prio=5 tid=2 Native
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x142c0030 self=0x7b20e7a0e000
  | sysTid=3514 nice=9 cgrp=default sched=0/0 handle=0x7b20e79ff4f0
  | state=S schedstat=( 101268617 44269673 203 ) utm=8 stm=2 core=1 HZ=100
  | stack=0x7b20e7901000-0x7b20e7903000 stackSize=1021KB
  | held mutexes=
  kernel: futex_wait_queue_me+0xdf/0x130
  kernel: futex_wait+0x113/0x22e
  kernel: do_futex+0xbe/0x825
  kernel: SyS_futex+0xbd/0x124
  kernel: system_call_fastpath+0x12/0x17
  native: #00 pc 00000000000276f6  /system/lib64/libc.so (syscall+22)
  native: #01 pc 000000000015154e  /system/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+110)
  native: #02 pc 0000000000574402  /system/lib64/libart.so (art::ThreadPool::GetTask(art::Thread*)+322)
  native: #03 pc 00000000005738b1  /system/lib64/libart.so (art::ThreadPoolWorker::Run()+97)
  native: #04 pc 0000000000573373  /system/lib64/libart.so (art::ThreadPoolWorker::Callback(void*)+131)
  native: #05 pc 0000000000079f3b  /system/lib64/libc.so (__pthread_start(void*)+27)
  native: #06 pc 0000000000028c8d  /system/lib64/libc.so (__start_thread+61)
  native: #07 pc 0000000000027515  /system/lib64/libc.so (__bionic_clone+53)
  (no managed stack frames)

"JDWP" daemon prio=5 tid=4 WaitingInMainDebuggerLoop
  | group="system" sCount=1 dsCount=0 flags=1 obj=0x14340018 self=0x7b20e7a14400
  | sysTid=3516 nice=0 cgrp=default sched=0/0 handle=0x7b20dca2d4f0
  | state=S schedstat=( 5463803 25014551 18 ) utm=0 stm=0 core=1 HZ=100
  | stack=0x7b20dc933000-0x7b20dc935000 stackSize=1005KB
  | held mutexes=
  kernel: poll_schedule_timeout+0x43/0x5f
  kernel: do_select+0x5f2/0x633
  kernel: core_sys_select+0x212/0x360
  kernel: SyS_pselect6+0x105/0x18d
  kernel: system_call_fastpath+0x12/0x17
  native: #00 pc 000000000007c31a  /system/lib64/libc.so (__pselect6+10)
  native: #01 pc 00000000000307ab  /system/lib64/libc.so (select+123)
  native: #02 pc 0000000000620162  /system/lib64/libart.so (art::JDWP::JdwpAdbState::ProcessIncoming()+322)
  native: #03 pc 00000000003af0d0  /system/lib64/libart.so (art::JDWP::JdwpState::Run()+1936)
  native: #04 pc 00000000003ae144  /system/lib64/libart.so (art::JDWP::StartJdwpThread(void*)+36)
  native: #05 pc 0000000000079f3b  /system/lib64/libc.so (__pthread_start(void*)+27)
  native: #06 pc 0000000000028c8d  /system/lib64/libc.so (__start_thread+61)
  native: #07 pc 0000000000027515  /system/lib64/libc.so (__bionic_clone+53)
  (no managed stack frames)

"HeapTaskDaemon" daemon prio=5 tid=5 Blocked
  | group="system" sCount=1 dsCount=0 flags=1 obj=0x12c1f630 self=0x7b20ef913200
  | sysTid=3520 nice=4 cgrp=default sched=0/0 handle=0x7b20dc6214f0
  | state=S schedstat=( 154857 6953763 3 ) utm=0 stm=0 core=0 HZ=100
  | stack=0x7b20dc51f000-0x7b20dc521000 stackSize=1037KB
  | held mutexes=
  kernel: futex_wait_queue_me+0xdf/0x130
  kernel: futex_wait+0x113/0x22e
  kernel: do_futex+0xbe/0x825
  kernel: SyS_futex+0xbd/0x124
  kernel: system_call_fastpath+0x12/0x17
  native: #00 pc 00000000000276f6  /system/lib64/libc.so (syscall+22)
  native: #01 pc 000000000015154e  /system/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+110)
  native: #02 pc 00000000002d708b  /system/lib64/libart.so (art::gc::TaskProcessor::GetTask(art::Thread*)+283)
  native: #03 pc 00000000002d78ff  /system/lib64/libart.so (art::gc::TaskProcessor::RunAllTasks(art::Thread*)+63)
  native: #04 pc 000000000020ed0d  /system/framework/x86_64/boot-core-libart.oat (Java_dalvik_system_VMRuntime_runHeapTasks__+157)
  native: #05 pc 0000000000000003  ???
  at dalvik.system.VMRuntime.runHeapTasks(Native method)
  - waiting to lock an unknown object
  at java.lang.Daemons$HeapTaskDaemon.runInternal(Daemons.java:461)
  at java.lang.Daemons$Daemon.run(Daemons.java:103)
  at java.lang.Thread.run(Thread.java:764)

"FinalizerWatchdogDaemon" daemon prio=5 tid=6 Waiting
  | group="system" sCount=1 dsCount=0 flags=1 obj=0x12c1f590 self=0x7b20ef912800
  | sysTid=3519 nice=4 cgrp=default sched=0/0 handle=0x7b20dc7264f0
  | state=S schedstat=( 61922 7226817 3 ) utm=0 stm=0 core=0 HZ=100
  | stack=0x7b20dc624000-0x7b20dc626000 stackSize=1037KB
  | held mutexes=
  at java.lang.Object.wait(Native method)
  - waiting on <0x01ab5d2d> (a java.lang.Daemons$FinalizerWatchdogDaemon)
  at java.lang.Daemons$FinalizerWatchdogDaemon.sleepUntilNeeded(Daemons.java:297)
  - locked <0x01ab5d2d> (a java.lang.Daemons$FinalizerWatchdogDaemon)
  at java.lang.Daemons$FinalizerWatchdogDaemon.runInternal(Daemons.java:277)
  at java.lang.Daemons$Daemon.run(Daemons.java:103)
  at java.lang.Thread.run(Thread.java:764)

"FinalizerDaemon" daemon prio=5 tid=7 Waiting
  | group="system" sCount=1 dsCount=0 flags=1 obj=0x12c1f4f0 self=0x7b20ef911e00
  | sysTid=3518 nice=4 cgrp=default sched=0/0 handle=0x7b20dc82b4f0
  | state=S schedstat=( 88066 7477334 3 ) utm=0 stm=0 core=0 HZ=100
  | stack=0x7b20dc729000-0x7b20dc72b000 stackSize=1037KB
  | held mutexes=
  at java.lang.Object.wait(Native method)
  - waiting on <0x0a289262> (a java.lang.Object)
  at java.lang.Object.wait(Object.java:422)
  at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:188)
  - locked <0x0a289262> (a java.lang.Object)
  at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:209)
  at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:232)
  at java.lang.Daemons$Daemon.run(Daemons.java:103)
  at java.lang.Thread.run(Thread.java:764)

"ReferenceQueueDaemon" daemon prio=5 tid=8 Waiting
  | group="system" sCount=1 dsCount=0 flags=1 obj=0x12c1f450 self=0x7b20ef8c5800
  | sysTid=3517 nice=4 cgrp=default sched=0/0 handle=0x7b20dc9304f0
  | state=S schedstat=( 62913 7667016 3 ) utm=0 stm=0 core=0 HZ=100
  | stack=0x7b20dc82e000-0x7b20dc830000 stackSize=1037KB
  | held mutexes=
  at java.lang.Object.wait(Native method)
  - waiting on <0x09ac5ff3> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
  at java.lang.Daemons$ReferenceQueueDaemon.runInternal(Daemons.java:178)
  - locked <0x09ac5ff3> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
  at java.lang.Daemons$Daemon.run(Daemons.java:103)
  at java.lang.Thread.run(Thread.java:764)

"Binder:3509_1" prio=5 tid=9 Native
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x14380020 self=0x7b20ef88a000
  | sysTid=3521 nice=0 cgrp=default sched=0/0 handle=0x7b20dc41e4f0
  | state=S schedstat=( 2760154 2502525 35 ) utm=0 stm=0 core=1 HZ=100
  | stack=0x7b20dc324000-0x7b20dc326000 stackSize=1005KB
  | held mutexes=
  kernel: binder_thread_read+0x311/0xd3d
  kernel: binder_ioctl_write_read+0x14f/0x265
  kernel: binder_ioctl+0x175/0x4db
  kernel: do_vfs_ioctl+0x350/0x3fe
  kernel: SyS_ioctl+0x55/0x7a
  kernel: system_call_fastpath+0x12/0x17
  native: #00 pc 000000000007c2b5  /system/lib64/libc.so (__ioctl+5)
  native: #01 pc 000000000002dfb2  /system/lib64/libc.so (ioctl+210)
  native: #02 pc 000000000006438e  /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+270)
  native: #03 pc 00000000000644e0  /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+16)
  native: #04 pc 0000000000064bef  /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+63)
  native: #05 pc 000000000008ace7  /system/lib64/libbinder.so (android::PoolThread::threadLoop()+23)
  native: #06 pc 000000000001187a  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+314)
  native: #07 pc 00000000000b8cc3  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+131)
  native: #08 pc 0000000000079f3b  /system/lib64/libc.so (__pthread_start(void*)+27)
  native: #09 pc 0000000000028c8d  /system/lib64/libc.so (__start_thread+61)
  native: #10 pc 0000000000027515  /system/lib64/libc.so (__bionic_clone+53)
  (no managed stack frames)

"Binder:3509_2" prio=5 tid=10 Native
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x143c0020 self=0x7b20e7a2b800
  | sysTid=3522 nice=0 cgrp=default sched=0/0 handle=0x7b20dc3214f0
  | state=S schedstat=( 11661459 14180788 35 ) utm=1 stm=0 core=2 HZ=100
  | stack=0x7b20dc227000-0x7b20dc229000 stackSize=1005KB
  | held mutexes=
  kernel: binder_thread_read+0x311/0xd3d
  kernel: binder_ioctl_write_read+0x14f/0x265
  kernel: binder_ioctl+0x175/0x4db
  kernel: do_vfs_ioctl+0x350/0x3fe
  kernel: SyS_ioctl+0x55/0x7a
  kernel: system_call_fastpath+0x12/0x17
  native: #00 pc 000000000007c2b5  /system/lib64/libc.so (__ioctl+5)
  native: #01 pc 000000000002dfb2  /system/lib64/libc.so (ioctl+210)
  native: #02 pc 000000000006438e  /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+270)
  native: #03 pc 00000000000644e0  /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+16)
  native: #04 pc 0000000000064bef  /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+63)
  native: #05 pc 000000000008ace7  /system/lib64/libbinder.so (android::PoolThread::threadLoop()+23)
  native: #06 pc 000000000001187a  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+314)
  native: #07 pc 00000000000b8cc3  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+131)
  native: #08 pc 0000000000079f3b  /system/lib64/libc.so (__pthread_start(void*)+27)
  native: #09 pc 0000000000028c8d  /system/lib64/libc.so (__start_thread+61)
  native: #10 pc 0000000000027515  /system/lib64/libc.so (__bionic_clone+53)
  (no managed stack frames)

"Profile Saver" daemon prio=5 tid=11 Native
  | group="system" sCount=1 dsCount=0 flags=1 obj=0x14400020 self=0x7b20e4cfc400
  | sysTid=3529 nice=9 cgrp=default sched=0/0 handle=0x7b20daf804f0
  | state=S schedstat=( 5119219 5229509 10 ) utm=0 stm=0 core=3 HZ=100
  | stack=0x7b20dae86000-0x7b20dae88000 stackSize=1005KB
  | held mutexes=
  kernel: futex_wait_queue_me+0xdf/0x130
  kernel: futex_wait+0x113/0x22e
  kernel: do_futex+0xbe/0x825
  kernel: SyS_futex+0xbd/0x124
  kernel: system_call_fastpath+0x12/0x17
  native: #00 pc 00000000000276f6  /system/lib64/libc.so (syscall+22)
  native: #01 pc 000000000015154e  /system/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+110)
  native: #02 pc 00000000003d4474  /system/lib64/libart.so (art::ProfileSaver::Run()+340)
  native: #03 pc 00000000003d76c7  /system/lib64/libart.so (art::ProfileSaver::RunProfileSaverThread(void*)+87)
  native: #04 pc 0000000000079f3b  /system/lib64/libc.so (__pthread_start(void*)+27)
  native: #05 pc 0000000000028c8d  /system/lib64/libc.so (__start_thread+61)
  native: #06 pc 0000000000027515  /system/lib64/libc.so (__bionic_clone+53)
  (no managed stack frames)

"DefaultDispatcher-worker-2" daemon prio=5 tid=12 Waiting
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x14453358 self=0x7b20ef914600
  | sysTid=3533 nice=0 cgrp=default sched=0/0 handle=0x7b20dabfc4f0
  | state=S schedstat=( 59156302 26840302 85 ) utm=5 stm=0 core=0 HZ=100
  | stack=0x7b20daafa000-0x7b20daafc000 stackSize=1037KB
  | held mutexes=
  at java.lang.Object.wait(Native method)
  - waiting on <0x0c9314b0> (a java.lang.Object)
  at java.lang.Thread.parkFor$(Thread.java:2137)
  - locked <0x0c9314b0> (a java.lang.Object)
  at sun.misc.Unsafe.park(Unsafe.java:358)
  at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
  at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:868)
  at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1021)
  at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1328)
  at com.topjohnwu.magisk.core.utils.RootUtils$Connection.await(RootUtils.kt:103)
  at com.topjohnwu.magisk.arch.BaseMainActivity.preLoad(BaseMainActivity.kt:110)
  at com.topjohnwu.magisk.arch.BaseMainActivity.onCreate$lambda-2(BaseMainActivity.kt:54)
  at com.topjohnwu.magisk.arch.BaseMainActivity.$r8$lambda$uAeWSyMq9XduVjLPCQ63mk8qCo0(BaseMainActivity.kt:-1)
  at com.topjohnwu.magisk.arch.BaseMainActivity$$ExternalSyntheticLambda1.onShell(D8$$SyntheticClass:-1)
  at com.topjohnwu.superuser.internal.MainShell.lambda$returnShell$0(MainShell.java:60)
  at com.topjohnwu.superuser.internal.MainShell$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:-1)
  at com.topjohnwu.magisk.core.utils.DispatcherExecutor$execute$1.invokeSuspend(DispatcherExecutor.kt:20)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
  at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
  at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

"DefaultDispatcher-worker-3" daemon prio=5 tid=14 TimedWaiting
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x144801c0 self=0x7b20e7a31c00
  | sysTid=3534 nice=0 cgrp=default sched=0/0 handle=0x7b20daaf74f0
  | state=S schedstat=( 20469209 15068017 44 ) utm=1 stm=1 core=3 HZ=100
  | stack=0x7b20da9f5000-0x7b20da9f7000 stackSize=1037KB
  | held mutexes=
  at java.lang.Object.wait(Native method)
  - waiting on <0x0b0d9f29> (a java.lang.Object)
  at java.lang.Thread.parkFor$(Thread.java:2137)
  - locked <0x0b0d9f29> (a java.lang.Object)
  at sun.misc.Unsafe.park(Unsafe.java:358)
  at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:353)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.park(CoroutineScheduler.kt:795)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.tryPark(CoroutineScheduler.kt:740)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:711)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

"DefaultDispatcher-worker-1" daemon prio=5 tid=17 TimedWaiting
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x145c0510 self=0x7b20e4d0a200
  | sysTid=3543 nice=0 cgrp=default sched=0/0 handle=0x7b20da7e04f0
  | state=S schedstat=( 2967172 2433797 13 ) utm=0 stm=0 core=1 HZ=100
  | stack=0x7b20da6de000-0x7b20da6e0000 stackSize=1037KB
  | held mutexes=
  at java.lang.Object.wait(Native method)
  - waiting on <0x0e0172ae> (a java.lang.Object)
  at java.lang.Thread.parkFor$(Thread.java:2137)
  - locked <0x0e0172ae> (a java.lang.Object)
  at sun.misc.Unsafe.park(Unsafe.java:358)
  at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:353)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.park(CoroutineScheduler.kt:795)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.tryPark(CoroutineScheduler.kt:740)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:711)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

"ConnectivityThread" prio=5 tid=18 Native
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x1464cfa0 self=0x7b20e4d0ca00
  | sysTid=3544 nice=0 cgrp=default sched=0/0 handle=0x7b20da6db4f0
  | state=S schedstat=( 4290084 7486679 22 ) utm=0 stm=0 core=2 HZ=100
  | stack=0x7b20da5d9000-0x7b20da5db000 stackSize=1037KB
  | held mutexes=
  kernel: ep_poll+0x274/0x330
  kernel: SyS_epoll_wait+0x91/0xb6
  kernel: SyS_epoll_pwait+0x84/0xf1
  kernel: system_call_fastpath+0x12/0x17
  native: #00 pc 000000000007c17a  /system/lib64/libc.so (__epoll_pwait+10)
  native: #01 pc 000000000002947c  /system/lib64/libc.so (epoll_pwait+60)
  native: #02 pc 0000000000015fc2  /system/lib64/libutils.so (android::Looper::pollInner(int)+162)
  native: #03 pc 0000000000015e8e  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+94)
  native: #04 pc 000000000011a525  /system/lib64/libandroid_runtime.so (???)
  native: #05 pc 00000000001e31cb  /system/framework/x86_64/boot-framework.oat (Java_android_os_MessageQueue_nativePollOnce__JI+187)
  native: #06 pc 000000000000000f  ???
  at android.os.MessageQueue.nativePollOnce(Native method)
  at android.os.MessageQueue.next(MessageQueue.java:325)
  at android.os.Looper.loop(Looper.java:142)
  at android.os.HandlerThread.run(HandlerThread.java:65)

"Binder:3509_3" prio=5 tid=19 Native
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x146c0020 self=0x7b20e4c9bc00
  | sysTid=3545 nice=0 cgrp=default sched=0/0 handle=0x7b20da5d64f0
  | state=S schedstat=( 2110748 11718443 20 ) utm=0 stm=0 core=2 HZ=100
  | stack=0x7b20da4dc000-0x7b20da4de000 stackSize=1005KB
  | held mutexes=
  kernel: binder_thread_read+0x311/0xd3d
  kernel: binder_ioctl_write_read+0x14f/0x265
  kernel: binder_ioctl+0x175/0x4db
  kernel: do_vfs_ioctl+0x350/0x3fe
  kernel: SyS_ioctl+0x55/0x7a
  kernel: system_call_fastpath+0x12/0x17
  native: #00 pc 000000000007c2b5  /system/lib64/libc.so (__ioctl+5)
  native: #01 pc 000000000002dfb2  /system/lib64/libc.so (ioctl+210)
  native: #02 pc 000000000006438e  /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+270)
  native: #03 pc 00000000000644e0  /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+16)
  native: #04 pc 0000000000064bef  /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+63)
  native: #05 pc 000000000008ace7  /system/lib64/libbinder.so (android::PoolThread::threadLoop()+23)
  native: #06 pc 000000000001187a  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+314)
  native: #07 pc 00000000000b8cc3  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+131)
  native: #08 pc 0000000000079f3b  /system/lib64/libc.so (__pthread_start(void*)+27)
  native: #09 pc 0000000000028c8d  /system/lib64/libc.so (__start_thread+61)
  native: #10 pc 0000000000027515  /system/lib64/libc.so (__bionic_clone+53)
  (no managed stack frames)

"queued-work-looper" daemon prio=5 tid=20 Native
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x144918e0 self=0x7b20e7a5d000
  | sysTid=3546 nice=-2 cgrp=default sched=0/0 handle=0x7b20da1ff4f0
  | state=S schedstat=( 1440781 13162150 13 ) utm=0 stm=0 core=2 HZ=100
  | stack=0x7b20da0fd000-0x7b20da0ff000 stackSize=1037KB
  | held mutexes=
  kernel: ep_poll+0x274/0x330
  kernel: SyS_epoll_wait+0x91/0xb6
  kernel: SyS_epoll_pwait+0x84/0xf1
  kernel: system_call_fastpath+0x12/0x17
  native: #00 pc 000000000007c17a  /system/lib64/libc.so (__epoll_pwait+10)
  native: #01 pc 000000000002947c  /system/lib64/libc.so (epoll_pwait+60)
  native: #02 pc 0000000000015fc2  /system/lib64/libutils.so (android::Looper::pollInner(int)+162)
  native: #03 pc 0000000000015e8e  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+94)
  native: #04 pc 000000000011a525  /system/lib64/libandroid_runtime.so (???)
  native: #05 pc 00000000001e31cb  /system/framework/x86_64/boot-framework.oat (Java_android_os_MessageQueue_nativePollOnce__JI+187)
  native: #06 pc 000000000000000f  ???
  at android.os.MessageQueue.nativePollOnce(Native method)
  at android.os.MessageQueue.next(MessageQueue.java:325)
  at android.os.Looper.loop(Looper.java:142)
  at android.os.HandlerThread.run(HandlerThread.java:65)

"RenderThread" prio=5 tid=21 Native
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x14780020 self=0x7b20da273000
  | sysTid=3550 nice=-10 cgrp=default sched=0/0 handle=0x7b20da0fa4f0
  | state=S schedstat=( 298120748 19005272 11768 ) utm=10 stm=19 core=0 HZ=100
  | stack=0x7b20da000000-0x7b20da002000 stackSize=1005KB
  | held mutexes=
  kernel: ep_poll+0x274/0x330
  kernel: SyS_epoll_wait+0x91/0xb6
  kernel: SyS_epoll_pwait+0x84/0xf1
  kernel: system_call_fastpath+0x12/0x17
  native: #00 pc 000000000007c17a  /system/lib64/libc.so (__epoll_pwait+10)
  native: #01 pc 000000000002947c  /system/lib64/libc.so (epoll_pwait+60)
  native: #02 pc 0000000000015fc2  /system/lib64/libutils.so (android::Looper::pollInner(int)+162)
  native: #03 pc 0000000000015e8e  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+94)
  native: #04 pc 000000000005ccf5  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+1205)
  native: #05 pc 000000000001187a  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+314)
  native: #06 pc 00000000000b8cc3  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+131)
  native: #07 pc 0000000000079f3b  /system/lib64/libc.so (__pthread_start(void*)+27)
  native: #08 pc 0000000000028c8d  /system/lib64/libc.so (__start_thread+61)
  native: #09 pc 0000000000027515  /system/lib64/libc.so (__bionic_clone+53)
  (no managed stack frames)

"DefaultDispatcher-worker-4" daemon prio=5 tid=22 TimedWaiting
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x147c0000 self=0x7b20da279400
  | sysTid=3552 nice=0 cgrp=default sched=0/0 handle=0x7b20d9ffd4f0
  | state=S schedstat=( 7177469 25294662 31 ) utm=0 stm=0 core=2 HZ=100
  | stack=0x7b20d9efb000-0x7b20d9efd000 stackSize=1037KB
  | held mutexes=
  at java.lang.Object.wait(Native method)
  - waiting on <0x0823084f> (a java.lang.Object)
  at java.lang.Thread.parkFor$(Thread.java:2137)
  - locked <0x0823084f> (a java.lang.Object)
  at sun.misc.Unsafe.park(Unsafe.java:358)
  at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:353)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.park(CoroutineScheduler.kt:795)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.tryPark(CoroutineScheduler.kt:740)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:711)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

"Binder:3509_4" prio=5 tid=23 Native
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x14840020 self=0x7b20da28b800
  | sysTid=3557 nice=0 cgrp=default sched=0/0 handle=0x7b20d9ef84f0
  | state=S schedstat=( 871542 9942676 9 ) utm=0 stm=0 core=1 HZ=100
  | stack=0x7b20d9dfe000-0x7b20d9e00000 stackSize=1005KB
  | held mutexes=
  kernel: binder_thread_read+0x311/0xd3d
  kernel: binder_ioctl_write_read+0x14f/0x265
  kernel: binder_ioctl+0x175/0x4db
  kernel: do_vfs_ioctl+0x350/0x3fe
  kernel: SyS_ioctl+0x55/0x7a
  kernel: system_call_fastpath+0x12/0x17
  native: #00 pc 000000000007c2b5  /system/lib64/libc.so (__ioctl+5)
  native: #01 pc 000000000002dfb2  /system/lib64/libc.so (ioctl+210)
  native: #02 pc 000000000006438e  /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+270)
  native: #03 pc 00000000000644e0  /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+16)
  native: #04 pc 0000000000064bef  /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+63)
  native: #05 pc 000000000008ace7  /system/lib64/libbinder.so (android::PoolThread::threadLoop()+23)
  native: #06 pc 000000000001187a  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+314)
  native: #07 pc 00000000000b8cc3  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+131)
  native: #08 pc 0000000000079f3b  /system/lib64/libc.so (__pthread_start(void*)+27)
  native: #09 pc 0000000000028c8d  /system/lib64/libc.so (__start_thread+61)
  native: #10 pc 0000000000027515  /system/lib64/libc.so (__bionic_clone+53)
  (no managed stack frames)

"RenderThread" prio=5 (not attached)
  | sysTid=3558 nice=-10 cgrp=default
  | state=S schedstat=( 370279 705330 3 ) utm=0 stm=0 core=2 HZ=100
  kernel: futex_wait_queue_me+0xdf/0x130
  kernel: futex_wait+0x113/0x22e
  kernel: do_futex+0xbe/0x825
  kernel: SyS_futex+0xbd/0x124
  kernel: system_call_fastpath+0x12/0x17

----- end 3509 -----
@vvb2060
Copy link
Collaborator

vvb2060 commented May 3, 2022

  at com.topjohnwu.magisk.core.utils.RootUtils$Connection.await(RootUtils.kt:103)
  at com.topjohnwu.magisk.arch.BaseMainActivity.preLoad(BaseMainActivity.kt:110)
  at com.topjohnwu.magisk.arch.BaseMainActivity.onCreate$lambda-2(BaseMainActivity.kt:54)

@vvb2060 vvb2060 added the regression Something works in previous versions but not in the current one label May 3, 2022
@yujincheng08
Copy link
Collaborator Author

image

@yujincheng08 yujincheng08 changed the title Magisk app anr on non-root devices Magisk app ANR on non-root devices May 3, 2022
@yujincheng08
Copy link
Collaborator Author

Fixed by 0ac19e3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Something works in previous versions but not in the current one
Projects
None yet
Development

No branches or pull requests

2 participants