Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 03CB4200D4A for ; Tue, 28 Nov 2017 21:24:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 023B9160C07; Tue, 28 Nov 2017 20:24:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 46C76160BE7 for ; Tue, 28 Nov 2017 21:24:09 +0100 (CET) Received: (qmail 68405 invoked by uid 500); 28 Nov 2017 20:24:03 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 68107 invoked by uid 99); 28 Nov 2017 20:24:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Nov 2017 20:24:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 76E911807A5 for ; Tue, 28 Nov 2017 20:24:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id j_qW1BFf7cPX for ; Tue, 28 Nov 2017 20:24:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 3FD885F2C5 for ; Tue, 28 Nov 2017 20:24:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id AF69AE0161 for ; Tue, 28 Nov 2017 20:24:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6429D241BE for ; Tue, 28 Nov 2017 20:24:00 +0000 (UTC) Date: Tue, 28 Nov 2017 20:24:00 +0000 (UTC) From: "Reinier Ruiz Ramos (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-13259) Crash on Samsung devices with android 6+ MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 28 Nov 2017 20:24:10 -0000 [ https://issues.apache.org/jira/browse/CB-13259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16269403#comment-16269403 ] Reinier Ruiz Ramos commented on CB-13259: ----------------------------------------- [~veniamin] Did you solve this issue. > Crash on Samsung devices with android 6+ > ---------------------------------------- > > Key: CB-13259 > URL: https://issues.apache.org/jira/browse/CB-13259 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-inappbrowser > Affects Versions: cordova@7.0.0 > Environment: InAppBrowser 1.7.1 > OS: Android 6 and 7 > Samsung and Huawei devices > Reporter: Veniamin Craciun > > Using latest version of cordova and InAppBrowser a crash occurs on Samsung and Huawei devices that run Android 6 or 7. > Below is a google crash report from such device: > {color:red}java.lang.IllegalArgumentException: > at android.view.WindowManagerGlobal.findViewLocked (WindowManagerGlobal.java:473) > at android.view.WindowManagerGlobal.removeView (WindowManagerGlobal.java:382) > at android.view.WindowManagerImpl.removeViewImmediate (WindowManagerImpl.java:128) > at android.app.Dialog.dismissDialog (Dialog.java:610) > at android.app.Dialog.dismiss (Dialog.java:593) > at org.apache.cordova.inappbrowser.InAppBrowser$5$1.onPageFinished (InAppBrowser.java:434) > at com.android.webview.chromium.WebViewContentsClientAdapter.onPageFinished (WebViewContentsClientAdapter.java:196) > at org.chromium.android_webview.AwContentsClientCallbackHelper$MyHandler.handleMessage (AwContentsClientCallbackHelper.java:65) > at android.os.Handler.dispatchMessage (Handler.java:102) > at android.os.Looper.loop (Looper.java:154) > at android.app.ActivityThread.main (ActivityThread.java:6682) > at java.lang.reflect.Method.invoke (Native Method) > at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1520) > at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1410){color} > I already searched such crash and I couldn't find any report of this for cordova or inappbrowser. The problem seems to be occuring [here|https://github.com/apache/cordova-plugin-inappbrowser/blob/master/src/android/InAppBrowser.java#L434] that's because on samsung device it's needed to verify if dialog.isShowing() as stated from a StackOverflow [answer|https://stackoverflow.com/a/19511069/6723787]. That being said I think the bug can be easily solved by changing one line. I also want to mention that app only crashes if user has enabled "Don't keep activities" on Settings->Developer Options. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org