cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CB-8031) Apps Sometimes Crash due to ConcurrentModificationException
Date Wed, 26 Nov 2014 16:49:13 GMT


ASF subversion and git services commented on CB-8031:

Commit 1feaa7fed717d1f6e02508a280190c3d6914f95c in cordova-android's branch refs/heads/4.0.x
from [~agrieve]
[;h=1feaa7f ]

CB-8031 Fix race condition that shows as ConcurrentModificationException

> Apps Sometimes Crash due to ConcurrentModificationException
> -----------------------------------------------------------
>                 Key: CB-8031
>                 URL:
>             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

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

View raw message