cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Freyhall (JIRA)" <>
Subject [jira] [Commented] (CB-10530) App freezes sometimes directly after starting on iOS
Date Wed, 10 Feb 2016 22:29:18 GMT


Torsten Freyhall commented on CB-10530:

I recreated the issue as described by Michael Stanford and tried some strategies to make it

The issues seems to be related to the failSafeTimerId set in pokeNative function in cordova-js-src/exec.js.

If the sum of the execution time for deviceready callback events is more than ~50 ms it calls
the gap://ready again, which I guess replaces the current command stack with an empty one
or something like that (I'm just guessing here)

I've *worked around* this by increasing the timeout interval from 50ms to 1000ms, however
this probably renders the timeout useless. 

To edit this in your project,  go to Staging / www / cordova.js, row 990. (in Xcode), and
edit the interval there.

Project to reproduce and test fix:

> App freezes sometimes directly after starting on iOS
> ----------------------------------------------------
>                 Key: CB-10530
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 6.0.0
>         Environment: OSX El Capitan 10.11.3, XCODE (7.2.1), iOS 9.2.1, cordova 6.0.0,
ionic 1.7.14
>            Reporter: Florian Kr├╝ger
>            Priority: Critical
>              Labels: triaged
>         Attachments:
> * Installed the "ionic start myApp sidemenu" example application
> * Start XCODE (7.2.1)
> * Start the app by clicking the run button from  xCODE
> * The app probably starts as expected.
> * Repeat the start process until the app freezes.
> The app sometimes freezes completely. If this happens you cannot do anything with the
app (you need to push the home button and close the app via task manager). I had the same
issue for another more complex app.
> The CPU stays at around 99% workload.
> I made a snapshot of the profiler (Instruments)

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message