Android webview引起APP崩溃


webview载入网页后,按Home键返回主屏幕,而后点击360加速球后,再次返回APP,则APP崩溃,Logcat没有捕获到日志,我再onCreate,onStart(), onResume()加断点也没有运行到断点,直接就崩溃了,大家帮忙看看。

Android webview

西野加奈. 9 years, 9 months ago

导出log了
02-26 11:55:31.933 25116-25120/com.gusou.mobile.android D/dalvikvm﹕ GC_CONCURRENT freed 6104K, 47% free 11709K/21955K, paused 13ms+2ms, total 70ms
02-26 11:55:31.933 25116-25116/com.gusou.mobile.android D/dalvikvm﹕ WAIT_FOR_CONCURRENT_GC blocked 38ms
02-26 11:55:32.013 25116-25219/com.gusou.mobile.android E/dalvikvm﹕ threadid=14: created from interp,name=SharedPreferencesImpl-load
02-26 11:55:32.013 25116-25219/com.gusou.mobile.android E/dalvikvm﹕ threadid=14: calling run(),name=SharedPreferencesImpl-load
02-26 11:55:32.013 25116-25219/com.gusou.mobile.android E/dalvikvm﹕ threadid=14: exiting,name=SharedPreferencesImpl-load
02-26 11:55:32.123 25116-25225/com.gusou.mobile.android E/dalvikvm﹕ threadid=14: created from interp,name=WebViewCoreThread
02-26 11:55:32.123 25116-25225/com.gusou.mobile.android E/dalvikvm﹕ threadid=14: calling run(),name=WebViewCoreThread
02-26 11:55:32.133 25116-25226/com.gusou.mobile.android E/dalvikvm﹕ threadid=15: created from interp,name=Thread-53937
02-26 11:55:32.133 25116-25226/com.gusou.mobile.android E/dalvikvm﹕ threadid=15: calling run(),name=Thread-53937
02-26 11:55:32.133 25116-25227/com.gusou.mobile.android E/dalvikvm﹕ threadid=16: created from interp,name=CookieSyncManager
02-26 11:55:32.133 25116-25227/com.gusou.mobile.android E/dalvikvm﹕ threadid=16: calling run(),name=CookieSyncManager
02-26 11:55:32.133 25116-25228/com.gusou.mobile.android E/dalvikvm﹕ threadid=17: created from interp,name=AsyncTask #1
02-26 11:55:32.133 25116-25228/com.gusou.mobile.android E/dalvikvm﹕ threadid=17: calling run(),name=AsyncTask #1
02-26 11:55:32.133 25116-25225/com.gusou.mobile.android D/webcoreglue﹕ netstack: Memory Cache feature is ON
02-26 11:55:32.143 25116-25226/com.gusou.mobile.android E/dalvikvm﹕ threadid=15: exiting,name=Thread-53937
02-26 11:55:32.193 25116-25116/com.gusou.mobile.android D/dalvikvm﹕ GC_FOR_ALLOC freed 841K, 47% free 11739K/21955K, paused 41ms, total 41ms
02-26 11:55:32.223 25116-25116/com.gusou.mobile.android D/dalvikvm﹕ GC_FOR_ALLOC freed 8K, 47% free 11986K/22279K, paused 33ms, total 33ms
02-26 11:55:32.233 25116-25232/com.gusou.mobile.android E/dalvikvm﹕ threadid=15: created from interp,name=SharedPreferencesImpl-load
02-26 11:55:32.233 25116-25232/com.gusou.mobile.android E/dalvikvm﹕ threadid=15: calling run(),name=SharedPreferencesImpl-load
02-26 11:55:32.233 25116-25232/com.gusou.mobile.android E/dalvikvm﹕ threadid=15: exiting,name=SharedPreferencesImpl-load
02-26 11:55:32.273 25116-25116/com.gusou.mobile.android D/dalvikvm﹕ GC_FOR_ALLOC freed 261K, 46% free 12590K/23239K, paused 27ms, total 27ms
02-26 11:55:32.353 25116-25116/com.gusou.mobile.android D/dalvikvm﹕ GC_FOR_ALLOC freed 636K, 44% free 13849K/24519K, paused 26ms, total 27ms
02-26 11:55:32.363 25116-25235/com.gusou.mobile.android E/dalvikvm﹕ threadid=15: created from interp,name=Filter
02-26 11:55:32.363 25116-25235/com.gusou.mobile.android E/dalvikvm﹕ threadid=15: calling run(),name=Filter
02-26 11:55:32.383 25116-25236/com.gusou.mobile.android E/dalvikvm﹕ threadid=18: created from interp,name=Thread-53942
02-26 11:55:32.383 25116-25236/com.gusou.mobile.android E/dalvikvm﹕ threadid=18: calling run(),name=Thread-53942
02-26 11:55:32.393 25116-25225/com.gusou.mobile.android W/crash_handler﹕ Caught a crash, signum=11
02-26 11:55:32.393 25116-25225/com.gusou.mobile.android E/webcore﹕ Report WebCore crash to the ErrorReportUtils at:Thu Feb 26 11:55:32 格林尼治标准时间+0800 2015
02-26 11:55:32.393 25116-25235/com.gusou.mobile.android D/StrongHTTPS﹕ not proxying
02-26 11:55:32.413 25116-25247/com.gusou.mobile.android E/dalvikvm﹕ threadid=19: created from interp,name=AsyncTask #2
02-26 11:55:32.413 25116-25247/com.gusou.mobile.android E/dalvikvm﹕ threadid=19: calling run(),name=AsyncTask #2
02-26 11:55:32.413 25116-25251/com.gusou.mobile.android E/dalvikvm﹕ threadid=20: created from interp,name=SharedPreferencesImpl-load
02-26 11:55:32.413 25116-25251/com.gusou.mobile.android E/dalvikvm﹕ threadid=20: calling run(),name=SharedPreferencesImpl-load
02-26 11:55:32.413 25116-25251/com.gusou.mobile.android E/dalvikvm﹕ threadid=20: exiting,name=SharedPreferencesImpl-load
02-26 11:55:32.423 25116-25252/com.gusou.mobile.android E/dalvikvm﹕ threadid=20: created from interp,name=SharedPreferencesImpl-load
02-26 11:55:32.423 25116-25252/com.gusou.mobile.android E/dalvikvm﹕ threadid=20: calling run(),name=SharedPreferencesImpl-load
02-26 11:55:32.423 25116-25252/com.gusou.mobile.android E/dalvikvm﹕ threadid=20: exiting,name=SharedPreferencesImpl-load
02-26 11:55:32.423 25116-25254/com.gusou.mobile.android E/dalvikvm﹕ threadid=20: created from interp,name=SharedPreferencesImpl-load
02-26 11:55:32.423 25116-25254/com.gusou.mobile.android E/dalvikvm﹕ threadid=20: calling run(),name=SharedPreferencesImpl-load
02-26 11:55:32.433 25116-25254/com.gusou.mobile.android E/dalvikvm﹕ threadid=20: exiting,name=SharedPreferencesImpl-load
02-26 11:55:32.433 25116-25255/com.gusou.mobile.android E/dalvikvm﹕ threadid=20: created from interp,name=pool-2-thread-1
02-26 11:55:32.433 25116-25255/com.gusou.mobile.android E/dalvikvm﹕ threadid=20: calling run(),name=pool-2-thread-1
02-26 11:55:32.453 25116-25258/com.gusou.mobile.android E/dalvikvm﹕ threadid=21: created from interp,name=Filter
02-26 11:55:32.453 25116-25258/com.gusou.mobile.android E/dalvikvm﹕ threadid=21: calling run(),name=Filter
02-26 11:55:32.453 25116-25116/com.gusou.mobile.android I/Progress﹕ 100
02-26 11:55:32.543 25116-25116/com.gusou.mobile.android I/Adreno200-EGL﹕ : EGL 1.4 QUALCOMM build: (CL3090659)
Build Date: 09/03/13 Tue
Local Branch:
Remote Branch:
Local Patches:
Reconstruct Branch:
02-26 11:55:32.623 25116-25316/com.gusou.mobile.android E/dalvikvm﹕ threadid=22: created from interp,name=Picasso-Stats
02-26 11:55:32.623 25116-25316/com.gusou.mobile.android E/dalvikvm﹕ threadid=22: calling run(),name=Picasso-Stats
02-26 11:55:32.794 25116-25236/com.gusou.mobile.android E/dalvikvm﹕ threadid=18: exiting,name=Thread-53942
02-26 11:55:33.404 25116-25225/com.gusou.mobile.android A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x0000621c (code=0), thread 25225 (WebViewCoreThre)

Reiin answered 9 years, 9 months ago

讨厌360
没装360,没法模拟,但是据了解,360加速后,的确会影响整个问题,导致崩溃。具体原因可能是系统webview的问题。
系统webview其实下拉选择框也会崩溃。所以建议不要直接用系统的webview。
第3方的。crosswalk就是一个不错选择。

害羞的膀胱 answered 9 years, 9 months ago

Your Answer