Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6DE6A18BA5 for ; Tue, 5 Jan 2016 11:55:45 +0000 (UTC) Received: (qmail 48997 invoked by uid 500); 5 Jan 2016 11:55:40 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 48963 invoked by uid 500); 5 Jan 2016 11:55:40 -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 48792 invoked by uid 99); 5 Jan 2016 11:55:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jan 2016 11:55:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E8C8F2C1F5D for ; Tue, 5 Jan 2016 11:55:39 +0000 (UTC) Date: Tue, 5 Jan 2016 11:55:39 +0000 (UTC) From: "Omar Mefire (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-10276) cordova-ios@4 is unstable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-10276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15082925#comment-15082925 ] Omar Mefire commented on CB-10276: ---------------------------------- Are you using WKWebView or UIWebView ? > cordova-ios@4 is unstable > ------------------------- > > Key: CB-10276 > URL: https://issues.apache.org/jira/browse/CB-10276 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > Environment: cordova@5.4.1 cordova-ios@4.0.1 > Reporter: Kirill Anoshin > Assignee: Omar Mefire > Priority: Blocker > Labels: cordova-ios-4.1.0 > > Here is a demo project to reproduce unstable behavior - https://github.com/kanoshin/cordova-bug-reproduction. You can try to run this app ~20 times and I'm sure that you will be able to reproduce huge memory leak and 100% cpu usage (both on real device and emulator). This app shows current state on the screen - "Done!" means that everything is fine, any other state is most likely a marker of 100% cpu usage. > This app is using 3rd party plugin that works stable on previous versions of cordova-ios. After some research I noticed that unstable behavior disappears if I wrap all plugin calls in: > {code} > [self.commandDelegate runInBackground:^{ > ... > }]; > {code} > block. Otherwise WebThread sometimes goes crazy and device becomes unresponsive. I believe that this is a bug because previously it was ok to run plugin calls that takes small amount of time in the main thread. Also it seems that a lot of existing plugins don't care about running in background thread and it makes update to cordova-ios@4 impossible. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org