[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14316857#comment-14316857 ] Rajat Paharia commented on CB-8002: --- Based on the idea from [~Hirbod], while waiting for the official 3.8.0 release, I put this function into my app, and call it from some user-initiated actions that I know happen relatively frequently: (note that it's not totally generic as it references frameworks and variables from my app, but it's just to give you an idea). {code:title=killZombies|borderStyle=solid|language=JavaScript} killZombies: function() { Temporary JS workaround until iOS Platform 3.80 is available to deal with this bug in 3.70 // https://issues.apache.org/jira/browse/CB-8002 // delete extra gap://ready iframes. $ionicPlatform.ready(function() { if ($rootScope.vars.isCordovaApp && angular.isDefined(device.platform) && device.platform.toUpperCase() == "IOS") { var frames = document.getElementsByTagName("iframe"); var gapFrames = []; angular.forEach(frames, function(value) { if (value.src == "gap://ready") { gapFrames.push(value); } }); // delete all but the last one. var deleteCounter = 0; var totalLength = gapFrames.length; if (gapFrames.length > 1) { for (var i = gapFrames.length -2; i >= 0; i--) { //console.log ("Deleting gapFrame " + i + " of " + totalLength); angular.element(gapFrames[i]).remove(); deleteCounter++; } } console.log ("Deleted " + deleteCounter + " gapFrames"); } }); }, {code} > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Andrew Grieve >Priority: Critical > Fix For: 3.8.0 > > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14316838#comment-14316838 ] Kim Hansen commented on CB-8002: The Fix for me was simply to use the 3.8.0dev version of the iOS platform. My little interval thing was just to let me see exactly when my app stopped sending console messages, as this appeared to happen at the same time that my app stopped handling calls to native code. Once I confirmed that the new iOS platform code was successful in controlling the memory growth, I took it out! > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Andrew Grieve >Priority: Critical > Fix For: 3.8.0 > > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14316827#comment-14316827 ] Matt Stuehler commented on CB-8002: --- @Kim - would you mind sharing some advice about the fix you implemented? I was thinking about setting up an interval that would look for these iframes and remove them from the DOM, but that seems pretty inefficient. I'm also planning to try to add a function that would eliminate iframes from the DOM after each native function call, but I'm not sure about the timing (e.g., are they added to the DOM immediately after the native function call, or do I need to wait x milliseconds?) Hopefully you've come up with a more robust, reliable, and elegant solution! > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Andrew Grieve >Priority: Critical > Fix For: 3.8.0 > > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14309379#comment-14309379 ] Kim Hansen commented on CB-8002: Putting in a plug for getting this fix out sooner than later. The memory growth doesn't trigger iOS memory warnings so a dev may be unaware it's happening. It does not appear as a leak in Instruments, but that's expected since it's not really a leak. In our app, it seems like the OS puts us in bad-app jail and queues up native calls. Symptomatically, Xcode console output stops and calls through the dialogs plugin don't result in a dialog presentation--nothing at all happens. Non system events proceed normally so until there's a failed system level call a user will think the app is ok. As soon as the home button is pressed, Xcode console will barf out all of the queued console.log messages and when the app is relaunched (without force quit), the queued dialogs appear. All of them, one at a time. For the benefit of google, Instruments shows unabated growth of the memory allocated to VM: JS garbage collector. My simple test method is to use setInterval to fire off a console.log message indicating the current time, and then watch the console either in Xcode itself or via the devices window in Xcode. At some point in time with 3.7.0, the console messages will stop arriving. I have tested the fix on the following devices, watching both for the above symptoms and for the linear memory usage expansion signature (we make routine system calls in our app) in both Instruments and Xcode. I am satisfied (enough) that the fix is production worthy, we'll be shipping to Apple later today. * iPhone 4S on 7.0.6 * iPhone 5, 5S and 6 on 8.1.3 > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Andrew Grieve >Priority: Critical > Fix For: 3.8.0 > > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14290234#comment-14290234 ] Hirbod commented on CB-8002: [~ghowen] it sounds stupid, but my hotfix I've implemented works like charm (with JS) $('iframe').not(':last').remove(); As soon as my DOM reaches 999+ nodes, it freezes my app and the google maps plugin. As soon as I fire $('iframe').remove() inside console (Safari Web Inspector) - everything runs fine again. For now (till 3.8.0 is out I can upgrade without removing and readding), this fixed all my problems for me. > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Andrew Grieve >Priority: Critical > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14283729#comment-14283729 ] Georg Howen commented on CB-8002: - Yeah, I found that out too. But for me it was fine. The hassle about removing and readding the platform is mostly with the icons and splash screens. But so far I had to remove and readd the platform for most of the cordova updates to get things to work. So I'm kinda used to it. I am testing for two days now and things seem to be OK. Thanks again, Shazron, especially for the parameters to add the platform from git. > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Andrew Grieve >Priority: Critical > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14283157#comment-14283157 ] Shazron Abdullah commented on CB-8002: -- The dev version I mentioned contains only the two bug fixes above plus 3.7.0, if you are comfortable with that I say install it. Sorry I didn't mention (as Hirbod below found out), you will have to remove your ios platform first, then add the new ios@9e53 platform > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Andrew Grieve >Priority: Critical > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14281783#comment-14281783 ] Georg Howen commented on CB-8002: - Thanks for the tip Shazron. I am a bit hesitant as I am not sure what kind of new bugs I'll introduce in my app with a -dev release. Would you recommend using 3.8.0-dev in a production app? > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Andrew Grieve >Priority: Critical > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14280609#comment-14280609 ] Shazron Abdullah commented on CB-8002: -- You can install the 3.8.0-dev version of the cordova-ios platform which includes the fix thus: {code} cordova platform add ios@9e53aa9976772ea0a6861d6c451fef019d29fc65 --usegit {code} This includes the fix in CB-8002 and CB-5706 (which should impact you minimally). When the final 3.8.0 is out, after updating your cordova-cli tool, just do a: {code} cordova platform update ios {code} > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Andrew Grieve >Priority: Critical > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14280455#comment-14280455 ] Hirbod commented on CB-8002: I'll have some similiar issues here. I use a native google maps plugin and every time I call the addMarker() request, a new iFrame is created in DOM. After 1000 markers, my app is crashing and dead. Please guys, at least provide some way of hotfixing. You just can't leave such critical bugs open since 11/Nov/14. More then 2 months. Please push a 3.7.4 including at least a hotfix for that. I know this is an open source project and I respect this as much as I can, donate and try to contribute as much as possible but don't ignore critical bugs for that such amount of time.. > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Andrew Grieve >Priority: Critical > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14280449#comment-14280449 ] Georg Howen commented on CB-8002: - I'll second Hirbod here. A new version of my app including the current Cordova released on the app store yesterday and currently my users are more or less killing me. My app uses the SQLite plugin. After a few hundred SQL updates (which happen quite frequently) we have 999+ iframes in the DOM, the iOS device runs out of memory, the database stops and we have a very unhappy user. A severe memory leak like that in a framework requires an immediate fix IMHO. I had to remove my app from the app store just now to contain the damage and I am thinking hard about going native to lessen the dependancy on third party frameworks. I know very well that bugs do happen. But this one should be fixed asap as the consequences can be very bad indeed and are not visible right away - memory leaks... > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Andrew Grieve >Priority: Critical > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14264089#comment-14264089 ] Shazron Abdullah commented on CB-8002: -- As mentioned the fix is in cordova ios 3.8.0 which has not been released yet - wait for that > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Andrew Grieve >Priority: Critical > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14264065#comment-14264065 ] Andrew Schadendorff commented on CB-8002: - I am also having this issue on Cordova 4.1.2 > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Andrew Grieve >Priority: Critical > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14245306#comment-14245306 ] Max Plischke commented on CB-8002: -- i am seeing this in cordova 4.1.2. > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Andrew Grieve >Priority: Critical > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14224969#comment-14224969 ] ASF subversion and git services commented on CB-8002: - Commit 9e53aa9976772ea0a6861d6c451fef019d29fc65 in cordova-ios's branch refs/heads/master from [~agrieve] [ https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;h=9e53aa9 ] CB-8002 CB-7735 Update cordova.js to include bridge fix > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Shazron Abdullah >Priority: Critical > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14224966#comment-14224966 ] ASF subversion and git services commented on CB-8002: - Commit 227d83a122733fdf0300ffe75507a221bcef2b06 in cordova-js's branch refs/heads/master from [~agrieve] [ https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;h=227d83a ] CB-8002 CB-7735 ios: Properly address iframe bridge failing when is removed from DOM. > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Shazron Abdullah >Priority: Critical > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14223276#comment-14223276 ] Andrew Grieve commented on CB-8002: --- Almost got this figured out... Should be able to commit a fix by eod. > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Shazron Abdullah >Priority: Critical > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14218742#comment-14218742 ] Hirbod commented on CB-8002: I can confirm this bug. I had a setInterval() with an console.log inside and wondered myself... More then 1000 created iframes in few minutes. But it seems not the effect memory that badly (because of display: none I guess) But I guess this should be fixed quickly. > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Shazron Abdullah >Priority: Critical > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14218680#comment-14218680 ] Shazron Abdullah commented on CB-8002: -- See CB-7735. I contacted the patch author for comment. > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Assignee: Shazron Abdullah >Priority: Critical > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-8002) Creating a new div for every Js -> Native exec() call
[ https://issues.apache.org/jira/browse/CB-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14214943#comment-14214943 ] Armen Badalyan commented on CB-8002: Happens to me as well. Created a new project with cordova cli, cordova version 4.1.1. Added console plugin. Each console.log call adds a new "gap://ready" iframe. Tested on iPad 3, iOS 7.1. > Creating a new div for every Js -> Native exec() call > - > > Key: CB-8002 > URL: https://issues.apache.org/jira/browse/CB-8002 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 3.7.0 > Environment: Tested on multiple iOS 8.1 devices, simulators >Reporter: Serdar Onal >Priority: Critical > > Since the 3.7.0 update, when cordova does a Js to Native call using exec(), > somehow the underlying cordova.js is creating a "gap://ready" iframe on every > call. This means that if you made 1000 native calls you'll have 1000 divs on > the DOM. > I believe this issue is of critical priority as it incurs a huge memory leak. > Screenshot from safari inspector > https://drive.google.com/file/d/0B94TXiq5ycp1anp6aGpTbjhPdG8/view?usp=sharing -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org