Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConcurrentModificationException crash #87

Closed
RadoslawHardyl opened this issue Mar 21, 2016 · 3 comments
Closed

ConcurrentModificationException crash #87

RadoslawHardyl opened this issue Mar 21, 2016 · 3 comments

Comments

@RadoslawHardyl
Copy link

Lately we find out that, we have a lot of crashes related with Braintree SDK. Below you can find a crash report:

java.lang.RuntimeException: An error occurred while executing doInBackground()
    at android.os.AsyncTask$3.done(AsyncTask.java:309)
    at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
    at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
    at java.util.concurrent.FutureTask.run(FutureTask.java:242)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
    at java.lang.Thread.run(Thread.java:818)
Caused by: java.util.ConcurrentModificationException
    at java.util.ArrayList$ArrayListIterator.next(ArrayList.java:573)
    at com.devicecollector.CollectorProcess.checkIfDone(SourceFile:197)
    at com.devicecollector.CollectorProcess.doInBackground(SourceFile:126)
    at com.devicecollector.CollectorProcess.doInBackground(SourceFile:34)
    at android.os.AsyncTask$2.call(AsyncTask.java:295)
    at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    ... 3 

As you can see it is related with braintree device collector class.
I found on github very similar issue to this one: #53
the reason is the same, even the class in which crash occur.
We already are using SDKversion 1.7.5, like @lkorth suggested.
I also have checked new newest version of SDK and implementation is the same as in 1.7.5.

Most of crashes comes from devices with android 6.0(Marshmallow), but there is a few from older devices.

Can you take a look on this issue?

@lkorth
Copy link
Member

lkorth commented Mar 21, 2016

@RadoslawHardyl: thanks for the report. I'll check with our fraud partner for an update to the library to fix this crash.

@lkorth lkorth closed this as completed in 321239a Mar 28, 2016
lkorth added a commit that referenced this issue Mar 29, 2016
@lkorth
Copy link
Member

lkorth commented Mar 29, 2016

I've updated the library with a fix. It will be available in the next release of 1.x and 2.x.

@RadoslawHardyl
Copy link
Author

@lkorth thanks for your hard work! I will check the new version after the release.

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

No branches or pull requests

2 participants