facebook-android-sdk icon indicating copy to clipboard operation
facebook-android-sdk copied to clipboard

Crashing while logging an event

Open shubhamvashisht opened this issue 6 years ago • 1 comments

Checklist

Environment

Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:

  • Java Version: 8
  • Android SDK Version: API 29
  • Installation Platform & Verison: [Gradle]

Goals

log an event in an android app

Expected Results

event should be logged

Actual Results

App crashed

Caused by java.util.ConcurrentModificationException
       at java.util.ArrayList$Itr.next(ArrayList.java:860)
       at com.facebook.appevents.e.b.a(RestrictiveDataManager.java:138)
       at com.facebook.appevents.c.a(AppEvent.java:235)
       at com.facebook.appevents.c.a(AppEvent.java:188)
       at com.facebook.appevents.c.<init>(AppEvent.java:79)
       at com.facebook.appevents.g.a(AppEventsLoggerImpl.java:669)
       at com.facebook.appevents.g.a(AppEventsLoggerImpl.java:213)
       at com.facebook.appevents.AppEventsLogger.a(AppEventsLogger.java:403)
        a̶t̶ ̶c̶o̶m̶.̶r̶a̶d̶i̶o̶.̶p̶o̶c̶k̶e̶t̶f̶m̶.̶a̶p̶p̶.̶c̶.̶c̶.̶b̶.̶d̶.̶a̶(̶F̶i̶r̶e̶B̶a̶s̶e̶E̶v̶e̶n̶t̶U̶s̶e̶C̶a̶s̶e̶.̶j̶a̶v̶a̶:̶1̶7̶0̶0̶)̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶a̶t̶ ̶ . 
       c̶o̶m̶.̶r̶a̶d̶i̶o̶.̶p̶o̶c̶k̶e̶t̶f̶m̶.̶a̶p̶p̶.̶c̶.̶c̶.̶b̶.̶d̶.̶l̶a̶m̶b̶d̶a̶$̶r̶B̶3̶M̶D̶l̶Q̶T̶J̶v̶T̶o̶W̶y̶P̶y̶Y̶W̶7̶d̶0̶V̶E̶l̶S̶-̶g̶(̶)̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶a̶t̶ ̶ . 
       c̶o̶m̶.̶r̶a̶d̶i̶o̶.̶p̶o̶c̶k̶e̶t̶f̶m̶.̶a̶p̶p̶.̶c̶.̶c̶.̶b̶.̶-̶$̶$̶L̶a̶m̶b̶d̶a̶$̶d̶$̶r̶B̶3̶M̶D̶l̶Q̶T̶J̶v̶T̶o̶W̶y̶P̶y̶Y̶W̶7̶d̶0̶V̶E̶l̶S̶-̶g̶.̶s̶u̶b̶s̶c̶r̶i̶b̶e̶(̶:̶1̶3̶)̶
       at io.reactivex.d.e.a.b.b(CompletableCreate.java:39)
       at io.reactivex.b.a(Completable.java:1919)
       at io.reactivex.d.e.a.k$a.run(CompletableSubscribeOn.java:64)
       at io.reactivex.r$a.run(Scheduler.java:579)
       at io.reactivex.d.g.h.run(ScheduledRunnable.java:66)
       at io.reactivex.d.g.h.call(ScheduledRunnable.java:57)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
       at java.lang.Thread.run(Thread.java:764)

Steps to Reproduce

unable to reproduce at the moment

Code Samples & Details

Please provide a code sample, as well as any additional details, to help us track down the issue. If you can provide a link to a test project that allows us to reproduce the issue, this helps us immensely in both the speed and quality of the fix.

Note: Remember to format your code for readability:

shubhamvashisht avatar Dec 26 '19 06:12 shubhamvashisht

The feature was turned off in the server, should be fine now.

YOUDAN avatar Jan 02 '20 19:01 YOUDAN