Home > Mobile >  Android applications for the first time installing the load webview initialize Google kernel anr
Android applications for the first time installing the load webview initialize Google kernel anr

Time:12-03

Work recently encountered a strange problem, should be installed after unloading, found after installation first open the webview will appear a large probability anr, different model different vendors will appear, version 9.0 8.1 8.0, and so on, to see anrlog found:
"Main" prio=5 Native tid=1
| group="main" sCount=1 dsCount=0 flags=1 obj=0 x759d1660 self=0 xec848000
| sysTid=nice=1000-10 CGRP=default sched handle=0/0=0 xf156c494
| schedstat state=S=(1883703598, 130625584, 1640), utm=168 STM=20 core=6 HZ=100
| stack xff7e4000=0 0 xff7e6000 stackSize=8 MB
| by mutexes=
The kernel: __switch_to + 0 x90/0 xe8
The kernel: futex_wait_queue_me + 0 xc4/0 x13c
The kernel: futex_wait + 0 xe4/0 x204
The kernel: do_futex + 0 x168/0 x80c
The kernel: compat_SyS_futex + 0 xf0/0 x174
The kernel: cpu_switch_to + 0 x2ec/0 x1ca8
Native: # 00 00019 ef0 PC/system/lib/libc. So (syscall + 28)
Native: # 01 PC 0001 d3cb/system/lib/libc. So (__futex_wait_ex (void volatile *, Boolean, int, Boolean, timespec const *) + 90)
Native: # 02 PC 00073 a99/system/lib/libc. So (NonPI: : MutexLockWithTimeout (pthread_mutex_internal_t *, bool, timespec const *) + 436)
Native: # 3 PCS 0006 e503/system/lib/libc. So (fwrite + 42)
Native: # 4 PC 05 ae1bb7/system/app/WebViewGoogle/WebViewGoogle apk (502 e000 offset) (????? )
The at org. Chromium. Base. Library_loader. LibraryLoader. NativeLibraryLoaded (Native method)
The at org. Chromium. Base. Library_loader. LibraryLoader. InitializeAlreadyLocked (LibraryLoader. Java: 119)
The at org. Chromium. Base. Library_loader. LibraryLoader. The ensureInitialized (LibraryLoader. Java: 10)
- locked & lt; 0 x0d0b159f & gt; (a Java. Lang. Object)
At com. Android. Webview. Chromium. WebViewChromiumAwInit. StartChromiumLocked (WebViewChromiumAwInit. Java: 23)
At com. Android. Webview. Chromium. WebViewChromiumAwInitForP. StartChromiumLocked (WebViewChromiumAwInitForP. Java: 3)
At com. Android. Webview. Chromium. WebViewChromiumAwInit $3. The run (WebViewChromiumAwInit. Java: 3)
- locked & lt; 0 x0648d6ec & gt; (a Java. Lang. Object)
An android. OS. Handler. HandleCallback (Handler. Java: 873)
An android. OS. Handler. DispatchMessage (Handler. Java: 99)
. An android OS. Stars. Loop (224). Which Java:
. An android app. ActivityThread. Main (7071) ActivityThread. Java:
The at Java. Lang. Reflect. Method. Invoke (Native Method)
At com. Android. Internal. OS. RuntimeInit $MethodAndArgsCaller. Run (536) RuntimeInit. Java:
At com. Android. Internal. OS. ZygoteInit. Main (ZygoteInit. Java: 878)

Compared with normal applog:
- 25581/? I/cr_LibraryLoader: Time to load native libraries: 1 ms (2671-2672 timestamps)
The 2020-06-01 16:37:20. 418, 25581-25581/? I/cr_LibraryLoader: Expected native library version number "70.0.3538.110", actual native library version number "70.0.3538.110
"The 2020-06-01 16:37:20. 425, 25581-25776/? W/cr_ChildProcLH: Create a new ChildConnectionAllocator with package name=com. Google. Android. Webview, sandboxed=true
The 2020-06-01 16:37:20. 434, 25581-25581/? I/cr_BrowserStartup: Initializing chromium process, singleProcess=false
The 2020-06-01 16:37:20. 739, 25581-25773/? W/cr_CrashFileManager:/data/user/0/com. Eoffcn. Mobile/cache/WebView/Crash Reports does not exist or is not a directory


Abnormal situation app log: - 25581/? I/cr_LibraryLoader: Time to load native libraries: 1 ms (2671-2672 timestamps)
No follow-up,
And there is no other abnormal log


After tests found in the webview initialization time card here, beg god for help,

CodePudding user response:

You try using a url, also may be the result of your web pages

CodePudding user response:

reference 1st floor BDMH (ag memghui001) response:
you try using a url, also may be the result of your web page

Replacing the different urls such as baidu and so on are the same effect,

CodePudding user response:

The 2020-06-02 10:18:29. 279, 10770-10923/com. Eoffcn. Mobile E/AndroidRuntime: FATAL EXCEPTION: | ANR - WatchDog |
Process: com. Eoffcn. Mobile, PID: 10770
Com. Making. Anrwatchdog. ANRError: Application Not Responding for the at further 5000 ms.
Under Caused by: com. Making. Anrwatchdog. ANRError $$$_Thread: main (state=RUNNABLE)
The at org. Chromium. Base. Library_loader. LibraryLoader. NativeLibraryLoaded (Native Method)
The at org. Chromium. Base. Library_loader. LibraryLoader. C (PG: 149)
The at org. Chromium. Base. Library_loader. LibraryLoader. A (PG: 13)
The at jO. B (PG: 23)
The at jO. B (PG: 182)
The at jO. A (PG: 163)
At com. Android. Webview. Chromium. WebViewChromiumFactoryProvider. A (PG: 234)
At com. Android. Webview. Chromium. WebViewChromium. Init (PG: 44)
An android. Its. WebView. & lt; init> (WebView. Java: 651)
An android. Its. WebView. & lt; init> (WebView. Java: 581)
An android. Its. WebView. & lt; init> (WebView. Java: 564)
An android. Its. WebView. & lt; init> (WebView. Java: 551)
The at Java. Lang. Reflect. Constructor. NewInstance0 (Native Method)
The at Java. Lang. Reflect. Constructor. NewInstance (334) Constructor. Java:
An android. View. LayoutInflater. CreateView (LayoutInflater. Java: 658)
At com. Android. Internal. Policy. PhoneLayoutInflater. OnCreateView (PhoneLayoutInflater. Java: 64)
At com. Android. Internal. Policy. HwPhoneLayoutInflater. OnCreateView (HwPhoneLayoutInflater. Java: 107)
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related