我们已经开始了React Native
该应用程序的第一个版本终于可以使用了,我们将其发布到了Play商店中。
我发现在应用启动时,我们会收到ANR。
我已经包含了主堆栈跟踪和阻塞堆栈跟踪。如果需要,我可以提供所有内容
React Native:0.60.5
minSdkVersion:21
targetSdkVersion:28
设备:Samsung S8
"main" prio=5 tid=1 Waiting
| group="main" sCount=1 dsCount=0 flags=1 obj=0x73782400 self=0x7ebb6c0a00
| sysTid=31013 nice=-10 cgrp=default sched=0/0 handle=0x7ec0dad9c8
| state=S schedstat=( 323778862 16297043 589 ) utm=15 stm=16 core=7 HZ=100
| stack=0x7ff8db1000-0x7ff8db3000 stackSize=8MB
| held mutexes=
at java.lang.Object.wait (Native method)
- waiting on <0x0cfce672> (a java.lang.Object)
at java.lang.Thread.parkFor$ (Thread.java:2135)
- locked <0x0cfce672> (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.acquireQueued (AbstractQueuedSynchronizer.java:900)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire (AbstractQueuedSynchronizer.java:1223)
at java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock (ReentrantReadWriteLock.java:950)
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName (SoLoader.java:702)
at com.facebook.soloader.SoLoader.loadLibraryBySoName (SoLoader.java:591)
- locked <0x04110ac3> (a java.lang.Object)
at com.facebook.soloader.SoLoader.loadLibraryBySoName (SoLoader.java:539)
at com.facebook.soloader.DirectorySoSource.loadDependencies (DirectorySoSource.java:103)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom (DirectorySoSource.java:73)
at com.facebook.soloader.UnpackingSoSource.loadLibrary (UnpackingSoSource.java:465)
- locked <0x025b2f40> (a java.lang.Object)
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName (SoLoader.java:681)
at com.facebook.soloader.SoLoader.loadLibraryBySoName (SoLoader.java:591)
- locked <0x04b8ce79> (a java.lang.Object)
at com.facebook.soloader.SoLoader.loadLibrary (SoLoader.java:529)
at com.facebook.soloader.SoLoader.loadLibrary (SoLoader.java:484)
at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory (ReactInstanceManagerBuilder.java:304)
at com.facebook.react.ReactInstanceManagerBuilder.build (ReactInstanceManagerBuilder.java:279)
at com.facebook.react.ReactNativeHost.createReactInstanceManager (ReactNativeHost.java:88)
at com.facebook.react.ReactNativeHost.getReactInstanceManager (ReactNativeHost.java:41)
at com.facebook.react.ReactActivityDelegate.loadApp (ReactActivityDelegate.java:91)
at com.facebook.react.ReactActivityDelegate.onCreate (ReactActivityDelegate.java:80)
at com.facebook.react.ReactActivity.onCreate (ReactActivity.java:52)
at android.app.Activity.performCreate (Activity.java:7183)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1220)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2908)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3030)
at android.app.ActivityThread.-wrap11 (ActivityThread.java)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1696)
at android.os.Handler.dispatchMessage (Handler.java:105)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:6938)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)
.
.
.
"HeapTaskDaemon" daemon prio=5 tid=7 Blocked
| group="system" sCount=1 dsCount=0 flags=1 obj=0x15507a18 self=0x70daafc400
| sysTid=19561 nice=4 cgrp=default sched=0/0 handle=0x70c12b84f0
| state=S schedstat=( 16292575 10057040 15 ) utm=1 stm=0 core=4 HZ=100
| stack=0x70c11b6000-0x70c11b8000 stackSize=1037KB
| held mutexes=
#00 pc 000000000001dfac /system/lib64/libc.so (syscall+28)
#01 pc 00000000000e2afc /system/lib64/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+156)
#02 pc 000000000024dfa0 /system/lib64/libart.so (_ZN3art2gc13TaskProcessor7GetTaskEPNS_6ThreadE+304)
#03 pc 000000000024e90c /system/lib64/libart.so (_ZN3art2gc13TaskProcessor11RunAllTasksEPNS_6ThreadE+92)
#04 pc 000000000020c8ac /system/framework/arm64/boot-core-libart.oat (Java_dalvik_system_VMRuntime_runHeapTasks__+124)
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)