cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-7204) Race condition when hiding and showing spinner
Date Thu, 09 Apr 2015 19:34:13 GMT

    [ https://issues.apache.org/jira/browse/CB-7204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14488083#comment-14488083
] 

ASF GitHub Bot commented on CB-7204:
------------------------------------

Github user shazron commented on the pull request:

    https://github.com/apache/cordova-plugin-splashscreen/pull/21#issuecomment-91335908
  
    Ugh - it's related.
    Basically, when calling this:
    https://gist.github.com/shazron/e45705f76bef4448139a#file-gistfile1-m-L15
    
    ...it calls this:
    https://github.com/apache/cordova-plugin-splashscreen/blob/d2e62a551c950041cb4c9683624a04d931f4bee3/src/ios/CDVSplashScreen.m#L108-L119
    
    ... and it crashes because the active thread it is on is not the main thread. All UIKit
operations (which the calls in destroyViews are) must be called on the main thread, or they
will crash.



> Race condition when hiding and showing spinner
> ----------------------------------------------
>
>                 Key: CB-7204
>                 URL: https://issues.apache.org/jira/browse/CB-7204
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin SplashScreen
>         Environment: iOS
>            Reporter: Andrey Kurdyumov
>            Assignee: Shazron Abdullah
>            Priority: Minor
>         Attachments: Screenshot 2014-07-27 at 19.31.09.png
>
>
> I have application which show spinner on resume to indicate loading activity for the
application.
> When quickly show and hide application there appears race condition which result in the
application crash.



--
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


Mime
View raw message