Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Another concurrent modification error #42

Open
mikep01 opened this issue Nov 1, 2017 · 0 comments
Open

Another concurrent modification error #42

mikep01 opened this issue Nov 1, 2017 · 0 comments

Comments

@mikep01
Copy link

mikep01 commented Nov 1, 2017

Looking at the code, it probably needs a semaphore, though I can't see everything.

I can't fix this in my code (except perhaps by not searching or retrying). This happens when I retry a bridge search after there is no response (at all) from the SDK. Seems like perhaps when the response finally arrives there's two handlers and they step on each other? Since it's down in the guts in a separate thread I don't have any way to catch this and ignore - it crashes my app.

java.util.ConcurrentModificationException
java.util.ArrayList$Itr.next(ArrayList.java:831)
com.philips.lighting.hue.sdk.notification.impl.PHNotificationManagerImpl$1.onReceived(PHNotificationManagerImpl.java:138)
com.philips.lighting.hue.sdk.notification.impl.PHHueResultReceiver.execute(PHHueResultReceiverjava:24)
com.philips.lighting.hue.sdk.notification.impl.PHNotificationManagerImpl.notifySDKError(PHNotificationManagerImpl.java:146)
com.philips.lighting.hue.sdk.connection.impl.PHBridgeInternal$1.run(PHBridgeInternal.java:132)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant