cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-8031) Apps Sometimes Crash due to ConcurrentModificationException
Date Tue, 18 Nov 2014 06:22:34 GMT

     [ https://issues.apache.org/jira/browse/CB-8031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Grieve resolved CB-8031.
-------------------------------
    Resolution: Fixed

Fixed in 3.7.0-dev

> Apps Sometimes Crash due to ConcurrentModificationException
> -----------------------------------------------------------
>
>                 Key: CB-8031
>                 URL: https://issues.apache.org/jira/browse/CB-8031
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>            Reporter: Andrew Grieve
>            Assignee: Andrew Grieve
>            Priority: Minor
>
> Came across this when refactoring splashscreen plugin.
> Because plugins are lazily instantiated, and because plugins execute on non-ui thread
by default, if a plugin calls "getPlugin()" while the ui thread is dispatching an onMessage
(or one of the various other plugin functions), then the 
> {code}
> for (CordovaPlugin p : pluginMap.values())
> {code}
> fires an exception due to getPlugin() modifying the map.



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