[AC-5626] Click on CardView crashes
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Done |
Resolution Date | 2018-02-28T21:47:45.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | sonufana4u |
Assignee | Shak Hossain |
Created | 2018-02-27T09:02:06.000+0000 |
Updated | 2018-03-03T22:05:53.000+0000 |
Description
Earlier i had view inside tableview.Now i have changed to cardview inside tableview.But when i click on cardview, it opens the details page and then crashes.Attaching logs.Getting logs as below
[INFO] : WebViewFactory: Loading com.android.chrome version 64.0.3282.137 (code 328213752)
[INFO] : cr_LibraryLoader: Time to load native libraries: 7 ms (timestamps 396-403)
[INFO] : chromium: [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0
[INFO] : cr_LibraryLoader: Expected native library version number "64.0.3282.137", actual native library version number "64.0.3282.137"
[INFO] : cr_BrowserStartup: Initializing chromium process, singleProcess=true
[INFO] : cr_base: Android Locale: en_IN requires .pak files: [en-GB.pak, en-US.pak]
[ERROR] : chromium: [ERROR:instance.cc(49)] Unable to locate service manifest for metrics
[ERROR] : chromium: [ERROR:service_manager.cc(890)] Failed to resolve service name: metrics
[INFO] : art: Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/RenderProcessGoneDetail;
[INFO] : art: at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (WebViewChromium.java:42)
[INFO] : art: at void android.webkit.WebView.(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
[INFO] : art: at void android.webkit.WebView.(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
[INFO] : art: at void android.webkit.WebView.(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
[INFO] : art: at void android.webkit.WebView.(android.content.Context, android.util.AttributeSet) (WebView.java:542)
[INFO] : art: at void android.webkit.WebView.(android.content.Context) (WebView.java:532)
[INFO] : art: at void ti.modules.titanium.ui.widget.webview.TiUIWebView$TiWebView.(ti.modules.titanium.ui.widget.webview.TiUIWebView, android.content.Context) (TiUIWebView.java:97)
[INFO] : art: at void ti.modules.titanium.ui.widget.webview.TiUIWebView$NonHTCWebView.(ti.modules.titanium.ui.widget.webview.TiUIWebView, android.content.Context) (TiUIWebView.java:249)
[INFO] : art: at void ti.modules.titanium.ui.widget.webview.TiUIWebView.(org.appcelerator.titanium.proxy.TiViewProxy) (TiUIWebView.java:302)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView ti.modules.titanium.ui.WebViewProxy.createView(android.app.Activity) (WebViewProxy.java:84)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView org.appcelerator.titanium.proxy.TiViewProxy.handleGetView() (TiViewProxy.java:506)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView() (TiViewProxy.java:492)
[INFO] : art: at void org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(org.appcelerator.titanium.view.TiUIView) (TiViewProxy.java:530)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView org.appcelerator.titanium.proxy.TiViewProxy.handleGetView() (TiViewProxy.java:514)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView() (TiViewProxy.java:492)
[INFO] : art: at void org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(org.appcelerator.titanium.proxy.TiViewProxy) (TiViewProxy.java:702)
[INFO] : art: at boolean org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(android.os.Message) (TiViewProxy.java:241)
[INFO] : art: at boolean org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(android.os.Message) (TiWindowProxy.java:116)
[INFO] : art: at boolean ti.modules.titanium.ui.WindowProxy.handleMessage(android.os.Message) (WindowProxy.java:468)
[INFO] : art: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:98)
[INFO] : art: at void android.os.Looper.loop() (Looper.java:154)
[INFO] : art: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6153)
[INFO] : art: at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
[INFO] : art: at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:868)
[INFO] : art: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:758)
[INFO] : art: Caused by: java.lang.ClassNotFoundException: Didn't find class "android.webkit.RenderProcessGoneDetail" on path: DexPathList[[zip file "/data/app/com.android.chrome-2/base.apk"],nativeLibraryDirectories=[/data/app/com.android.chrome-2/lib/arm64, /data/app/com.android.chrome-2/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
[INFO] : art: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
[INFO] : art: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
[INFO] : art: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
[INFO] : art: at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (WebViewChromium.java:42)
[INFO] : art: at void android.webkit.WebView.(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
[INFO] : art: at void android.webkit.WebView.(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
[INFO] : art: at void android.webkit.WebView.(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
[INFO] : art: at void android.webkit.WebView.(android.content.Context, android.util.AttributeSet) (WebView.java:542)
[INFO] : art: at void android.webkit.WebView.(android.content.Context) (WebView.java:532)
[INFO] : art: at void ti.modules.titanium.ui.widget.webview.TiUIWebView$TiWebView.(ti.modules.titanium.ui.widget.webview.TiUIWebView, android.content.Context) (TiUIWebView.java:97)
[INFO] : art: at void ti.modules.titanium.ui.widget.webview.TiUIWebView$NonHTCWebView.(ti.modules.titanium.ui.widget.webview.TiUIWebView, android.content.Context) (TiUIWebView.java:249)
[INFO] : art: at void ti.modules.titanium.ui.widget.webview.TiUIWebView.(org.appcelerator.titanium.proxy.TiViewProxy) (TiUIWebView.java:302)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView ti.modules.titanium.ui.WebViewProxy.createView(android.app.Activity) (WebViewProxy.java:84)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView org.appcelerator.titanium.proxy.TiViewProxy.handleGetView() (TiViewProxy.java:506)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView() (TiViewProxy.java:492)
[INFO] : art: at void org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(org.appcelerator.titanium.view.TiUIView) (TiViewProxy.java:530)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView org.appcelerator.titanium.proxy.TiViewProxy.handleGetView() (TiViewProxy.java:514)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView() (TiViewProxy.java:492)
[INFO] : art: at void org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(org.appcelerator.titanium.proxy.TiViewProxy) (TiViewProxy.java:702)
[INFO] : art: at boolean org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(android.os.Message) (TiViewProxy.java:241)
[INFO] : art: at boolean org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(android.os.Message) (TiWindowProxy.java:116)
[INFO] : art: at boolean ti.modules.titanium.ui.WindowProxy.handleMessage(android.os.Message) (WindowProxy.java:468)
[INFO] : art: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:98)
[INFO] : art: at void android.os.Looper.loop() (Looper.java:154)
[INFO] : art: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6153)
[INFO] : art: at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
[INFO] : art: at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:868)
[INFO] : art: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:758)
[INFO] : art:
[INFO] : art: Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/SafeBrowsingResponse;
[INFO] : art: at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (WebViewChromium.java:42)
[INFO] : art: at void android.webkit.WebView.(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
[INFO] : art: at void android.webkit.WebView.(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
[INFO] : art: at void android.webkit.WebView.(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
[INFO] : art: at void android.webkit.WebView.(android.content.Context, android.util.AttributeSet) (WebView.java:542)
[INFO] : art: at void android.webkit.WebView.(android.content.Context) (WebView.java:532)
[INFO] : art: at void ti.modules.titanium.ui.widget.webview.TiUIWebView$TiWebView.(ti.modules.titanium.ui.widget.webview.TiUIWebView, android.content.Context) (TiUIWebView.java:97)
[INFO] : art: at void ti.modules.titanium.ui.widget.webview.TiUIWebView$NonHTCWebView.(ti.modules.titanium.ui.widget.webview.TiUIWebView, android.content.Context) (TiUIWebView.java:249)
[INFO] : art: at void ti.modules.titanium.ui.widget.webview.TiUIWebView.(org.appcelerator.titanium.proxy.TiViewProxy) (TiUIWebView.java:302)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView ti.modules.titanium.ui.WebViewProxy.createView(android.app.Activity) (WebViewProxy.java:84)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView org.appcelerator.titanium.proxy.TiViewProxy.handleGetView() (TiViewProxy.java:506)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView() (TiViewProxy.java:492)
[INFO] : art: at void org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(org.appcelerator.titanium.view.TiUIView) (TiViewProxy.java:530)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView org.appcelerator.titanium.proxy.TiViewProxy.handleGetView() (TiViewProxy.java:514)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView() (TiViewProxy.java:492)
[INFO] : art: at void org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(org.appcelerator.titanium.proxy.TiViewProxy) (TiViewProxy.java:702)
[INFO] : art: at boolean org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(android.os.Message) (TiViewProxy.java:241)
[INFO] : art: at boolean org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(android.os.Message) (TiWindowProxy.java:116)
[INFO] : art: at boolean ti.modules.titanium.ui.WindowProxy.handleMessage(android.os.Message) (WindowProxy.java:468)
[INFO] : art: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:98)
[INFO] : art: at void android.os.Looper.loop() (Looper.java:154)
[INFO] : art: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6153)
[INFO] : art: at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
[INFO] : art: at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:868)
[INFO] : art: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:758)
[INFO] : art: Caused by: java.lang.ClassNotFoundException: Didn't find class "android.webkit.SafeBrowsingResponse" on path: DexPathList[[zip file "/data/app/com.android.chrome-2/base.apk"],nativeLibraryDirectories=[/data/app/com.android.chrome-2/lib/arm64, /data/app/com.android.chrome-2/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
[INFO] : art: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
[INFO] : art: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
[INFO] : art: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
[INFO] : art: at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (WebViewChromium.java:42)
[INFO] : art: at void android.webkit.WebView.(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
[INFO] : art: at void android.webkit.WebView.(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
[INFO] : art: at void android.webkit.WebView.(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
[INFO] : art: at void android.webkit.WebView.(android.content.Context, android.util.AttributeSet) (WebView.java:542)
[INFO] : art: at void android.webkit.WebView.(android.content.Context) (WebView.java:532)
[INFO] : art: at void ti.modules.titanium.ui.widget.webview.TiUIWebView$TiWebView.(ti.modules.titanium.ui.widget.webview.TiUIWebView, android.content.Context) (TiUIWebView.java:97)
[INFO] : art: at void ti.modules.titanium.ui.widget.webview.TiUIWebView$NonHTCWebView.(ti.modules.titanium.ui.widget.webview.TiUIWebView, android.content.Context) (TiUIWebView.java:249)
[INFO] : art: at void ti.modules.titanium.ui.widget.webview.TiUIWebView.(org.appcelerator.titanium.proxy.TiViewProxy) (TiUIWebView.java:302)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView ti.modules.titanium.ui.WebViewProxy.createView(android.app.Activity) (WebViewProxy.java:84)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView org.appcelerator.titanium.proxy.TiViewProxy.handleGetView() (TiViewProxy.java:506)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView() (TiViewProxy.java:492)
[INFO] : art: at void org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(org.appcelerator.titanium.view.TiUIView) (TiViewProxy.java:530)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView org.appcelerator.titanium.proxy.TiViewProxy.handleGetView() (TiViewProxy.java:514)
[INFO] : art: at org.appcelerator.titanium.view.TiUIView org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView() (TiViewProxy.java:492)
[INFO] : art: at void org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(org.appcelerator.titanium.proxy.TiViewProxy) (TiViewProxy.java:702)
[INFO] : art: at boolean org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(android.os.Message) (TiViewProxy.java:241)
[INFO] : art: at boolean org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(android.os.Message) (TiWindowProxy.java:116)
[INFO] : art: at boolean ti.modules.titanium.ui.WindowProxy.handleMessage(android.os.Message) (WindowProxy.java:468)
[INFO] : art: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:98)
[INFO] : art: at void android.os.Looper.loop() (Looper.java:154)
[INFO] : art: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6153)
[INFO] : art: at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
[INFO] : art: at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:868)
[INFO] : art: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:758)
[INFO] : art:
[WARN] : cr_media: Requires BLUETOOTH permission
[ERROR] : libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)
[WARN] : VideoCapabilities: Unrecognized profile 2130706433 for video/avc
[WARN] : VideoCapabilities: Unrecognized profile 2130706434 for video/avc
[WARN] : VideoCapabilities: Unrecognized profile 2130706433 for video/avc
[WARN] : VideoCapabilities: Unrecognized profile 2130706434 for video/avc
[WARN] : VideoCapabilities: Unrecognized profile 2130706433 for video/avc
[WARN] : VideoCapabilities: Unrecognized profile 2130706434 for video/avc
[WARN] : VideoCapabilities: Unrecognized profile/level 0/3 for video/mpeg2
[WARN] : VideoCapabilities: Unrecognized profile/level 0/3 for video/mpeg2
[WARN] : VideoCapabilities: Unsupported mime video/x-ms-wmv
[WARN] : VideoCapabilities: Unsupported mime video/x-ms-wmv
[WARN] : VideoCapabilities: Unsupported mime video/divx
[WARN] : VideoCapabilities: Unsupported mime video/divx311
[WARN] : VideoCapabilities: Unsupported mime video/divx4
[WARN] : VideoCapabilities: Unsupported mime video/mp4v-esdp
[INFO] : VideoCapabilities: Unsupported profile 4 for video/mp4v-es
[WARN] : cr_CrashFileManager: /data/user/0/com.tle.parent/cache/WebView/Crash Reports does not exist or is not a directory
[WARN] : OpenGLRenderer: Continuous frame drop occurred, boost cpu now. total duration:22241032,
[WARN] : OpenGLRenderer: CPUScaler boosted due to frame drop, mCPUFreqBoosted:1
[INFO] : Process: Sending signal. PID: 28826 SIG: 9
Hello [~sonufana4u], Thanks for sharing with us.Please create a full reproducible test code and provide here for us to test the issue. Also, attach logs using latest SDK 7.0.2.GA.
It's a known bug to Android / Chromium. I just ran into it with WebView on 5.5.1 SDK running on an Android 7 phone building to target 23 SDK. "You can see the full explanation on the bug at https://crbug.com/791099 but the summary is that this is an Android framework class which only exists on O+ devices and you're presumably running on an N device which (correctly) doesn't have it. The error doesn't cause any problem other than the spam in the logs, because this is just a warning and the code which refers to the missing class is never actually invoked on earlier OS versions." Obviously we're experiencing more than just "spam in the logs" as it kills the WebView in my case. https://bugs.chromium.org/p/chromium/issues/detail?id=791099
My error log... happened by trying to load www.fishwatch.gov/profiles/all-profiles into a webView. [INFO] : art: Rejecting re-init on previously-failed class java.lang.Class
I experienced this on 5.5.1 SDK just opening a WebView. The Chromium folks claim that this just put harmless crud in the log but in my app it prevents the web page from loading. No error event is thrown.
[~sonufana4u],Can you please try using the latest SDK 7.0.2.GA and let us know how it goes.
@joe - thanks for the info. @mostafizur - close this ticket bcz i made layout as card from view itself.Thanks
Hi, We've tried this with *SDK 7.0.2* and we're still getting this error when opening a webView with this URL. https://www.fishwatch.gov/profiles/wild-harvested-profiles Here is the log from running it with SDK 7.0.2 [INFO] : art: Rejecting re-init on previously-failed class java.lang.Class
*So with all due respect we do not agree that this bug should be closed.* This is a real bug. The problem according to the Chromium folks is that this should be ignored and the webView should be loaded but it looks like Titanium is viewing this as a hard error and killing the webView. That's what it looks like to me.
Here is the Chromium ticket about the "logspam" https://bugs.chromium.org/p/chromium/issues/detail?id=791099