[Amazon Shopping ] Crash on launching Amazon shopping |
||||||
Issue descriptionDevice name: ASUS ZenPhone Android version:LRX21V WebView version (from system settings -> Apps -> Android System WebView): Application: 52.0.2722.0 App/ Version : Amazon Shopping / 6.5.0.100 URLs (if applicable): PRE CONDITION : 1. Install Android web view from Playstore. 2.Launch Amazon shopping on the device ACTUAL RESULT : 1.App crashed ADDITIONAL INFORMATION : 1.Logcat Attached.
,
May 2 2016
,
May 2 2016
This issue is not reproducible on 51.0.2704.34 on this device.
,
May 2 2016
Logs & video @ http://go/chrome-androidlogs1/6/608397
,
May 2 2016
E/AndroidRuntime( 4141): FATAL EXCEPTION: main E/AndroidRuntime( 4141): Process: com.amazon.mShop.android.shopping, PID: 4141 E/AndroidRuntime( 4141): java.lang.RuntimeException: Unable to create application com.amazon.mShop.MShopApplication: java.lang.IllegalArgumentException: Context is not and does not wrap an Activity E/AndroidRuntime( 4141): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4553) E/AndroidRuntime( 4141): at android.app.ActivityThread.access$1500(ActivityThread.java:147) E/AndroidRuntime( 4141): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1342) E/AndroidRuntime( 4141): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime( 4141): at android.os.Looper.loop(Looper.java:135) E/AndroidRuntime( 4141): at android.app.ActivityThread.main(ActivityThread.java:5253) E/AndroidRuntime( 4141): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime( 4141): at java.lang.reflect.Method.invoke(Method.java:372) E/AndroidRuntime( 4141): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) E/AndroidRuntime( 4141): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) E/AndroidRuntime( 4141): Caused by: java.lang.IllegalArgumentException: Context is not and does not wrap an Activity E/AndroidRuntime( 4141): at org.chromium.ui.base.ActivityWindowAndroid.<init>(ActivityWindowAndroid.java:70) E/AndroidRuntime( 4141): at org.chromium.android_webview.AwContents.getWindowAndroid(AwContents.java:982) E/AndroidRuntime( 4141): at org.chromium.android_webview.AwContents.setNewAwContents(AwContents.java:1020) E/AndroidRuntime( 4141): at org.chromium.android_webview.AwContents.<init>(AwContents.java:794) E/AndroidRuntime( 4141): at org.chromium.android_webview.AwContents.<init>(AwContents.java:715) E/AndroidRuntime( 4141): at com.android.webview.chromium.WebViewChromium.initForReal(WebViewChromium.java:271) E/AndroidRuntime( 4141): at com.android.webview.chromium.WebViewChromium.access$100(WebViewChromium.java:82) E/AndroidRuntime( 4141): at com.android.webview.chromium.WebViewChromium$1.run(WebViewChromium.java:255) E/AndroidRuntime( 4141): at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.drainQueue(WebViewChromium.java:108) E/AndroidRuntime( 4141): at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue$1.run(WebViewChromium.java:95) E/AndroidRuntime( 4141): at org.chromium.base.ThreadUtils.runOnUiThread(ThreadUtils.java:148) E/AndroidRuntime( 4141): at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.addTask(WebViewChromium.java:92) E/AndroidRuntime( 4141): at com.android.webview.chromium.WebViewChromium.init(WebViewChromium.java:252) E/AndroidRuntime( 4141): at android.webkit.WebView.<init>(WebView.java:548) E/AndroidRuntime( 4141): at android.webkit.WebView.<init>(WebView.java:483) E/AndroidRuntime( 4141): at android.webkit.WebView.<init>(WebView.java:466) E/AndroidRuntime( 4141): at android.webkit.WebView.<init>(WebView.java:453) E/AndroidRuntime( 4141): at android.webkit.WebView.<init>(WebView.java:443) E/AndroidRuntime( 4141): at com.amazon.mobile.mash.util.WebViewSuspensionPolicy$WebViewTimerController.<init>(WebViewSuspensionPolicy.java:60) E/AndroidRuntime( 4141): at com.amazon.mobile.mash.util.WebViewSuspensionPolicy$WebViewTimerController.<init>(WebViewSuspensionPolicy.java:55) E/AndroidRuntime( 4141): at com.amazon.mobile.mash.util.WebViewSuspensionPolicy.establish(WebViewSuspensionPolicy.java:46) E/AndroidRuntime( 4141): at com.amazon.mobile.mash.MASHApplicationFactory.setInstance(MASHApplicationFactory.java:27) E/AndroidRuntime( 4141): at com.amazon.mShop.AmazonApplication.onCreate(AmazonApplication.java:171) E/AndroidRuntime( 4141): at com.amazon.mShop.MShopApplication.onCreate(MShopApplication.java:47) E/AndroidRuntime( 4141): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1011) E/AndroidRuntime( 4141): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4550) E/AndroidRuntime( 4141): ... 9 more
,
May 2 2016
responsible CL https://codereview.chromium.org/1569643002
,
May 2 2016
Oh that one is mine, probably..
,
May 2 2016
Damn it typo.. https://codereview.chromium.org/1932753004/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode983 That line should be WindowAndroid (not ActivityWindowAndroid)
,
May 2 2016
Actually no, I totally did the wrong thing in both cases. Meh, this passed all tests :(
,
May 2 2016
,
May 2 2016
Issue 608403 has been merged into this issue.
,
May 2 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/1fc9c657810e48b9f4677cf4d5dd46027894a64c commit 1fc9c657810e48b9f4677cf4d5dd46027894a64c Author: boliu <boliu@chromium.org> Date: Mon May 02 18:58:08 2016 aw: Fix activityWrapsContext condition Totally did the opposite thing for r390716. Fix it! BUG= 608397 Review-Url: https://codereview.chromium.org/1937233002 Cr-Commit-Position: refs/heads/master@{#391015} [modify] https://crrev.com/1fc9c657810e48b9f4677cf4d5dd46027894a64c/android_webview/java/src/org/chromium/android_webview/AwContents.java
,
May 2 2016
,
May 2 2016
Same issue observed in Google Play newsstand and crash is observed . Logs & Video attached => http://go/chrome-androidlogs1/6/608397. Please verify these issues .
,
May 2 2016
Yeah same crash. fwiw, we are getting a list of apps that passes in the application context into webview constructor. This list is potentially useful :o
,
May 2 2016
Apps Observing the crash with the same stack are listed below : 1.Cnn news 2.Fox news. 3.ebay. 4.NBC News. 5.Google now. 6.Play newstand. 7.Amazon Shopping.
,
May 3 2016
Verified this issue not reproducible on ZenPhone (LRX21V) with latest web view 52.0.2723.0. Tested NBC news, Ebay and the above apps are not crashing any more .
,
May 3 2016
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by sbash...@chromium.org
, May 2 2016