Skip to content

Instantly share code, notes, and snippets.

@liortal53
Created June 8, 2016 10:07
Show Gist options
  • Save liortal53/22a2bffef03d6f36eccaf0bd35d2d51d to your computer and use it in GitHub Desktop.
Save liortal53/22a2bffef03d6f36eccaf0bd35d2d51d to your computer and use it in GitHub Desktop.
Android thread dump of a deadlock in Facebook Android SDK (AppEventsLogger)
1 12139 Runnable 949 378 main
at com.unity3d.player.UnityPlayer.UnitySendMessage(Native Method)
at com.androidnative.AndroidNativeBridge.onStop(AndroidNativeBridge.java:186)
at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1278)
at android.app.Activity.performStop(Activity.java:6395)
at android.app.ActivityThread.handleSleeping(ActivityThread.java:3621)
at android.app.ActivityThread.-wrap19(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1519)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
*3 12146 Runnable 690 527 JDWP
at org.apache.harmony.dalvik.ddmc.DdmVmInternal.getStackTraceById(Native Method)
at android.ddm.DdmHandleThread.handleSTKL(DdmHandleThread.java:131)
at android.ddm.DdmHandleThread.handleChunk(DdmHandleThread.java:77)
at org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)
18 13287 Monitor 0 0 pool-11-thread-1
at com.facebook.appevents.AppEventsLogger.<init>(AppEventsLogger.java:747)
at com.facebook.appevents.AppEventsLogger.newLogger(AppEventsLogger.java:440)
at com.facebook.appevents.internal.SessionLogger.logDeactivateApp(SessionLogger.java:119)
at com.facebook.appevents.internal.ActivityLifecycleTracker$4$1.run(ActivityLifecycleTracker.java:218)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)
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)
20 12897 Monitor 854 185 UnityMain
at com.facebook.appevents.AppEventsLogger.<init>(AppEventsLogger.java:747)
at com.facebook.appevents.AppEventsLogger.newLogger(AppEventsLogger.java:395)
at com.facebook.unity.FB.getAppEventsLogger(FB.java:65)
at com.facebook.unity.FB.LogAppEvent(FB.java:220)
at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
at com.unity3d.player.UnityPlayer.a(Unknown Source)
at com.unity3d.player.UnityPlayer$b.run(Unknown Source)
21 12946 Wait 0 0 pool-3-thread-1
at java.lang.Object.wait(Native Method)
at java.lang.Thread.parkFor$(Thread.java:1220)
at sun.misc.Unsafe.park(Unsafe.java:299)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1038)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
39 13288 Monitor 0 0 pool-12-thread-1
at com.facebook.appevents.AppEventCollection.keySet(AppEventCollection.java:59)
at com.facebook.appevents.AppEventQueue.getKeySet(AppEventQueue.java:121)
at com.facebook.appevents.AppEventsLogger$3.run(AppEventsLogger.java:770)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:278)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:270)
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)
79 13289 Monitor 1 0 pool-13-thread-1
at com.facebook.appevents.AppEventsLogger.getAnonymousAppDeviceGUID(AppEventsLogger.java:923)
at com.facebook.appevents.AppEventCollection.getSessionEventsState(AppEventCollection.java:85)
at com.facebook.appevents.AppEventCollection.addEvent(AppEventCollection.java:54)
at com.facebook.appevents.AppEventQueue$4.run(AppEventQueue.java:99)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)
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)
@wudh147
Copy link

wudh147 commented Jan 19, 2017

How did you fix that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment