{"action":"created","issue":{"url":"https://api.github.com/repos/Tealium/android-library/issues/2","labels_url":"https://api.github.com/repos/Tealium/android-library/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Tealium/android-library/issues/2/comments","events_url":"https://api.github.com/repos/Tealium/android-library/issues/2/events","html_url":"https://github.com/Tealium/android-library/issues/2","id":75532363,"number":2,"title":"Crash on Android 5.0+","user":{"login":"guzno","id":1807950,"avatar_url":"https://avatars.githubusercontent.com/u/1807950?v=3","gravatar_id":"","url":"https://api.github.com/users/guzno","html_url":"https://github.com/guzno","followers_url":"https://api.github.com/users/guzno/followers","following_url":"https://api.github.com/users/guzno/following{/other_user}","gists_url":"https://api.github.com/users/guzno/gists{/gist_id}","starred_url":"https://api.github.com/users/guzno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guzno/subscriptions","organizations_url":"https://api.github.com/users/guzno/orgs","repos_url":"https://api.github.com/users/guzno/repos","events_url":"https://api.github.com/users/guzno/events{/privacy}","received_events_url":"https://api.github.com/users/guzno/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-12T09:18:49Z","updated_at":"2015-06-14T21:46:41Z","closed_at":"2015-05-14T16:54:13Z","body":"We are seeing a crash in the Tealium library (4.1c) on Samsung, HTC, Sony and some other devices running Android 5.0+. The crash seems to be related to some lifecycle event that Tealium reacts to.\r\n\r\nWe get the following stacktrace:\r\n\r\nandroid.util.AndroidRuntimeException: android.content.pm.PackageManager$NameNotFoundException: com.google.android.webview\r\n       at android.webkit.WebViewFactory.getFactoryClass(WebViewFactory.java:161)\r\n       at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:101)\r\n       at android.webkit.WebView.getFactory(WebView.java:2193)\r\n       at android.webkit.WebView.ensureProviderCreated(WebView.java:2188)\r\n       at android.webkit.WebView.setOverScrollMode(WebView.java:2247)\r\n       at android.view.View.(View.java:3795)\r\n       at android.view.View.(View.java:3909)\r\n       at android.view.ViewGroup.(ViewGroup.java:507)\r\n       at android.widget.AbsoluteLayout.(AbsoluteLayout.java:55)\r\n       at android.webkit.WebView.(WebView.java:547)\r\n       at android.webkit.WebView.(WebView.java:492)\r\n       at android.webkit.WebView.(WebView.java:475)\r\n       at android.webkit.WebView.(WebView.java:462)\r\n       at android.webkit.WebView.(WebView.java:452)\r\n       at com.tealium.library.H$1.run()\r\n       at android.os.Handler.handleCallback(Handler.java:739)\r\n       at android.os.Handler.dispatchMessage(Handler.java:95)\r\n       at android.os.Looper.loop(Looper.java:145)\r\n       at android.app.ActivityThread.main(ActivityThread.java:5944)\r\n       at java.lang.reflect.Method.invoke(Method.java)\r\n       at java.lang.reflect.Method.invoke(Method.java:372)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)\r\nCaused by: android.content.pm.PackageManager$NameNotFoundException: com.google.android.webview\r\n       at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:137)\r\n       at android.webkit.WebViewFactory.getFactoryClass(WebViewFactory.java:133)\r\n       at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:101)\r\n       at android.webkit.WebView.getFactory(WebView.java:2193)\r\n       at android.webkit.WebView.ensureProviderCreated(WebView.java:2188)\r\n       at android.webkit.WebView.setOverScrollMode(WebView.java:2247)\r\n       at android.view.View.(View.java:3795)\r\n       at android.view.View.(View.java:3909)\r\n       at android.view.ViewGroup.(ViewGroup.java:507)\r\n       at android.widget.AbsoluteLayout.(AbsoluteLayout.java:55)\r\n       at android.webkit.WebView.(WebView.java:547)\r\n       at android.webkit.WebView.(WebView.java:492)\r\n       at android.webkit.WebView.(WebView.java:475)\r\n       at android.webkit.WebView.(WebView.java:462)\r\n       at android.webkit.WebView.(WebView.java:452)\r\n       at com.tealium.library.H$1.run()\r\n       at android.os.Handler.handleCallback(Handler.java:739)\r\n       at android.os.Handler.dispatchMessage(Handler.java:95)\r\n       at android.os.Looper.loop(Looper.java:145)\r\n       at android.app.ActivityThread.main(ActivityThread.java:5944)\r\n       at java.lang.reflect.Method.invoke(Method.java)\r\n       at java.lang.reflect.Method.invoke(Method.java:372)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)\r\n"},"comment":{"url":"https://api.github.com/repos/Tealium/android-library/issues/comments/111878274","html_url":"https://github.com/Tealium/android-library/issues/2#issuecomment-111878274","issue_url":"https://api.github.com/repos/Tealium/android-library/issues/2","id":111878274,"user":{"login":"ChadHartman","id":5520913,"avatar_url":"https://avatars.githubusercontent.com/u/5520913?v=3","gravatar_id":"","url":"https://api.github.com/users/ChadHartman","html_url":"https://github.com/ChadHartman","followers_url":"https://api.github.com/users/ChadHartman/followers","following_url":"https://api.github.com/users/ChadHartman/following{/other_user}","gists_url":"https://api.github.com/users/ChadHartman/gists{/gist_id}","starred_url":"https://api.github.com/users/ChadHartman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChadHartman/subscriptions","organizations_url":"https://api.github.com/users/ChadHartman/orgs","repos_url":"https://api.github.com/users/ChadHartman/repos","events_url":"https://api.github.com/users/ChadHartman/events{/privacy}","received_events_url":"https://api.github.com/users/ChadHartman/received_events","type":"User","site_admin":false},"created_at":"2015-06-14T21:46:41Z","updated_at":"2015-06-14T21:46:41Z","body":"In version 4.1.1, WebView instantiation was wrapped in a try-catch to catch the NameNotFoundException and prevent a crash. I was unable to determine whether the app needed a re-start or whether the WebView could load later. The library queues track calls until the WebView is created and there is network connection, so no data is lost. \r\n\r\nIf you don't mind me asking; are you implementing our library or did this issue come up on a search? "}}