[
https://issues.apache.org/jira/browse/CB-10530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15141833#comment-15141833
]
Torsten Freyhall commented on CB-10530:
---------------------------------------
I recreated the issue as described by Michael Stanford and tried some
strategies to make it disappear.
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:
https://github.com/toostn/cordova-ios-timer-bug
> App freezes sometimes directly after starting on iOS
> ----------------------------------------------------
>
> Key: CB-10530
> URL: https://issues.apache.org/jira/browse/CB-10530
> 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: Instruments.trace.zip
>
>
> * 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
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]