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 in Breadcrumbs #72

Closed
rsajob opened this issue Jul 25, 2015 · 1 comment
Closed

ConcurrentModificationException in Breadcrumbs #72

rsajob opened this issue Jul 25, 2015 · 1 comment

Comments

@rsajob
Copy link

rsajob commented Jul 25, 2015

I received java.util.ConcurrentModificationException if first call Bugsnag.notify() and then call Bugsnag.leaveBreadcrumb() in UI Thread.

StackTrace:

Problem sending error to Bugsnag
    java.util.ConcurrentModificationException
            at java.util.LinkedList$LinkIterator.next(LinkedList.java:124)
            at com.bugsnag.android.Breadcrumbs.toStream(Breadcrumbs.java:27)
            at com.bugsnag.android.JsonStream.value(JsonStream.java:37)
            at com.bugsnag.android.Error.toStream(Error.java:97)
            at com.bugsnag.android.JsonStream.value(JsonStream.java:37)
            at com.bugsnag.android.Notification.toStream(Notification.java:40)
            at com.bugsnag.android.HttpClient.post(HttpClient.java:38)
            at com.bugsnag.android.Notification.deliver(Notification.java:64)
            at com.bugsnag.android.Client.deliver(Client.java:619)
            at com.bugsnag.android.Client.access$000(Client.java:19)
            at com.bugsnag.android.Client$1.run(Client.java:611)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
            at java.lang.Thread.run(Thread.java:856)
@kattrali
Copy link
Contributor

Fixed by #98. Thank you for the report, @rsajob!

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