{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/1897","labels_url":"https://api.github.com/repos/realm/realm-java/issues/1897/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/1897/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/1897/events","html_url":"https://github.com/realm/realm-java/issues/1897","id":120621354,"number":1897,"title":"ANR in realm 0.84.1","user":{"login":"bangarharshit","id":2506196,"avatar_url":"https://avatars.githubusercontent.com/u/2506196?v=3","gravatar_id":"","url":"https://api.github.com/users/bangarharshit","html_url":"https://github.com/bangarharshit","followers_url":"https://api.github.com/users/bangarharshit/followers","following_url":"https://api.github.com/users/bangarharshit/following{/other_user}","gists_url":"https://api.github.com/users/bangarharshit/gists{/gist_id}","starred_url":"https://api.github.com/users/bangarharshit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bangarharshit/subscriptions","organizations_url":"https://api.github.com/users/bangarharshit/orgs","repos_url":"https://api.github.com/users/bangarharshit/repos","events_url":"https://api.github.com/users/bangarharshit/events{/privacy}","received_events_url":"https://api.github.com/users/bangarharshit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-06T09:40:30Z","updated_at":"2015-12-06T18:53:33Z","closed_at":null,"body":"I am using realm 0.84.1 and it is giving frequent anr in getInstance. Strangely this is happening only on Lenovo phone.\r\n\r\nTraces:\r\n```\r\nCmd line: com.sandwich.chatclient\r\nABI: arm\r\nBuild type: optimized\r\nZygote loaded classes=3681 post zygote classes=1942\r\nIntern table: 51339 strong; 1441 weak\r\nJNI: CheckJNI is on; globals=830 (plus 1 weak)\r\nLibraries: /data/app/com.sandwich.chatclient-1/lib/arm/librealm-jni.so /system/lib/libandroid.so /system/lib/libaudioeffect_jni.so /system/lib/libcompiler_rt.so /system/lib/libjavacrypto.so /system/lib/libjnigraphics.so /system/lib/libmedia_jni.so /system/lib/librs_jni.so /system/lib/libsoundpool.so /system/lib/libwebviewchromium_loader.so libjavacore.so (11)\r\nHeap: 9% free, 14MB/16MB; 195177 objects\r\nDumping cumulative Gc timings\r\nStart Dumping histograms for 476 iterations for concurrent mark sweep\r\nProcessMarkStack:\tSum: 9.191s 99% C.I. 0.012ms-55.962ms Avg: 6.436ms Max: 95.113ms\r\nMarkConcurrentRoots:\tSum: 1.358s 99% C.I. 0.005ms-9.743ms Avg: 1.427ms Max: 11.098ms\r\nUpdateAndMarkImageModUnionTable:\tSum: 944.328ms 99% C.I. 1.123ms-9.247ms Avg: 1.983ms Max: 16.995ms\r\nScanGrayZygoteSpaceObjects:\tSum: 235.793ms 99% C.I. 63us-2432.250us Avg: 504.910us Max: 3348us\r\nMarkNonThreadRoots:\tSum: 186.673ms 99% C.I. 39.666us-1371.999us Avg: 196.085us Max: 2991us\r\nMarkRootsCheckpoint:\tSum: 172.765ms 99% C.I. 46us-2323.999us Avg: 181.475us Max: 20080us\r\nImageModUnionClearCards:\tSum: 155.735ms 99% C.I. 116us-1323.999us Avg: 163.587us Max: 21011us\r\nSweepMallocSpace:\tSum: 145.969ms 99% C.I. 5us-2895.999us Avg: 153.328us Max: 9921us\r\nSweepZygoteSpace:\tSum: 113.907ms 99% C.I. 187us-883.250us Avg: 243.912us Max: 1472us\r\nZygoteModUnionClearCards:\tSum: 103.892ms 99% C.I. 66us-999.500us Avg: 111.233us Max: 1772us\r\nReMarkRoots:\tSum: 93.052ms 99% C.I. 61us-1282.749us Avg: 195.487us Max: 1928us\r\nEnqueueFinalizerReferences:\tSum: 60.861ms 99% C.I. 9.153us-1083.999us Avg: 127.859us Max: 4025us\r\nScanGrayImageSpaceObjects:\tSum: 57.244ms 99% C.I. 91us-880.999us Avg: 120.260us Max: 7552us\r\nScanGrayAllocSpaceObjects:\tSum: 49.620ms 99% C.I. 1us-1659.999us Avg: 52.121us Max: 9971us\r\n(Paused)ScanGrayImageSpaceObjects:\tSum: 46.069ms 99% C.I. 91us-333.749us Avg: 99.073us Max: 772us\r\nSweepSystemWeaks:\tSum: 40.548ms 99% C.I. 24us-592.999us Avg: 85.184us Max: 2118us\r\nFinishPhase:\tSum: 38.489ms 99% C.I. 54us-380.999us Avg: 80.859us Max: 498us\r\nMarkAllocStackAsLive:\tSum: 36.448ms 99% C.I. 29us-780.999us Avg: 76.571us Max: 1763us\r\nAllocSpaceClearCards:\tSum: 33.431ms 99% C.I. 1us-214.799us Avg: 17.558us Max: 825us\r\n(Paused)ScanGrayZygoteSpaceObjects:\tSum: 26.631ms 99% C.I. 52us-167.999us Avg: 58.401us Max: 1182us\r\nProcessCards:\tSum: 23.219ms 99% C.I. 6us-199.209us Avg: 24.389us Max: 13220us\r\nSwapBitmaps:\tSum: 21.624ms 99% C.I. 13us-146.833us Avg: 45.428us Max: 1069us\r\n(Paused)PausePhase:\tSum: 13.026ms 99% C.I. 14us-90.499us Avg: 27.365us Max: 3772us\r\n(Paused)ScanGrayObjects:\tSum: 12.979ms 99% C.I. 0.670ms-3.331ms Avg: 1.179ms Max: 3.404ms\r\n(Paused)ScanGrayAllocSpaceObjects:\tSum: 11.212ms 99% C.I. 1us-49.911us Avg: 12.055us Max: 1465us\r\nPreCleanCards:\tSum: 10.354ms 99% C.I. 15us-93.666us Avg: 21.752us Max: 644us\r\nInitializePhase:\tSum: 9.328ms 99% C.I. 2us-86.199us Avg: 19.596us Max: 309us\r\nMarkingPhase:\tSum: 9.134ms 99% C.I. 14us-49.959us Avg: 19.189us Max: 100us\r\nRevokeAllThreadLocalAllocationStacks:\tSum: 6.474ms 99% C.I. 7us-98.642us Avg: 13.600us Max: 144us\r\nReclaimPhase:\tSum: 6.314ms 99% C.I. 10us-49.959us Avg: 13.264us Max: 422us\r\nSweep:\tSum: 5.717ms 99% C.I. 7us-49.959us Avg: 12.010us Max: 448us\r\nProcessReferences:\tSum: 4.304ms 99% C.I. 5us-90.142us Avg: 9.042us Max: 425us\r\nMarkRoots:\tSum: 3.407ms 99% C.I. 4us-49.854us Avg: 7.157us Max: 78us\r\nSweepLargeObjects:\tSum: 3.333ms 99% C.I. 1us-193.666us Avg: 7.002us Max: 824us\r\nRecursiveMark:\tSum: 2.591ms 99% C.I. 4us-24us Avg: 5.443us Max: 24us\r\nBindBitmaps:\tSum: 1.870ms 99% C.I. 2us-10us Avg: 3.928us Max: 10us\r\nSwapStacks:\tSum: 1.239ms 99% C.I. 2us-36us Avg: 2.602us Max: 36us\r\nUnBindBitmaps:\tSum: 664us 99% C.I. 1us-5us Avg: 1.394us Max: 5us\r\n(Paused)ProcessMarkStack:\tSum: 584us 99% C.I. 1us-49.854us Avg: 1.226us Max: 74us\r\nFindDefaultSpaceBitmap:\tSum: 523us 99% C.I. 1us-16us Avg: 1.098us Max: 16us\r\nPreSweepingGcVerification:\tSum: 477us 99% C.I. 1us-2us Avg: 1.002us Max: 2us\r\nDone Dumping histograms \r\nconcurrent mark sweep paused:\tSum: 227.315ms 99% C.I. 236us-3309.999us Avg: 477.552us Max: 5724us\r\nconcurrent mark sweep total time: 13.240s mean time: 27.815ms\r\nconcurrent mark sweep freed: 427725 objects with total size 18MB\r\nconcurrent mark sweep throughput: 32305.5/s / 1430KB/s\r\nStart Dumping histograms for 2 iterations for partial concurrent mark sweep\r\nProcessMarkStack:\tSum: 77.970ms 99% C.I. 0.007ms-34.100ms Avg: 12.995ms Max: 34.198ms\r\nUpdateAndMarkImageModUnionTable:\tSum: 33.111ms 99% C.I. 10.960ms-22.151ms Avg: 16.555ms Max: 22.151ms\r\nMarkRootsCheckpoint:\tSum: 17.463ms 99% C.I. 0.946ms-8.516ms Avg: 4.365ms Max: 8.516ms\r\nScanGrayAllocSpaceObjects:\tSum: 11.534ms 99% C.I. 0.010ms-8.764ms Avg: 2.883ms Max: 8.815ms\r\nMarkConcurrentRoots:\tSum: 11.342ms 99% C.I. 0.008ms-6.520ms Avg: 2.835ms Max: 6.571ms\r\nSweepMallocSpace:\tSum: 9.586ms 99% C.I. 0.044ms-5.618ms Avg: 2.396ms Max: 5.618ms\r\nSweepLargeObjects:\tSum: 8.462ms 99% C.I. 0.911ms-7.534ms Avg: 4.231ms Max: 7.551ms\r\n(Paused)ScanGrayObjects:\tSum: 7.101ms 99% C.I. 0.725ms-6.344ms Avg: 3.550ms Max: 6.376ms\r\nReMarkRoots:\tSum: 2.535ms 99% C.I. 0.868ms-1.667ms Avg: 1.267ms Max: 1.667ms\r\nMarkAllocStackAsLive:\tSum: 1.550ms 99% C.I. 432us-1118us Avg: 775us Max: 1118us\r\nEnqueueFinalizerReferences:\tSum: 1.226ms 99% C.I. 281us-943.500us Avg: 613us Max: 945us\r\nAllocSpaceClearCards:\tSum: 1.121ms 99% C.I. 14us-490us Avg: 140.125us Max: 496us\r\nSweepSystemWeaks:\tSum: 1.089ms 99% C.I. 136us-953us Avg: 544.500us Max: 953us\r\nUpdateAndMarkZygoteModUnionTable:\tSum: 945us 99% C.I. 462us-483us Avg: 472.500us Max: 483us\r\nImageModUnionClearCards:\tSum: 699us 99% C.I. 128us-266us Avg: 174.750us Max: 266us\r\nScanGrayZygoteSpaceObjects:\tSum: 399us 99% C.I. 62us-337us Avg: 199.500us Max: 337us\r\nScanGrayImageSpaceObjects:\tSum: 367us 99% C.I. 112us-255us Avg: 183.500us Max: 255us\r\nZygoteModUnionClearCards:\tSum: 301us 99% C.I. 69us-87us Avg: 75.250us Max: 87us\r\nFinishPhase:\tSum: 241us 99% C.I. 110us-131us Avg: 120.500us Max: 131us\r\nMarkNonThreadRoots:\tSum: 238us 99% C.I. 49us-85us Avg: 59.500us Max: 85us\r\nRevokeAllThreadLocalAllocationStacks:\tSum: 121us 99% C.I. 55us-66us Avg: 60.500us Max: 66us\r\nProcessReferences:\tSum: 100us 99% C.I. 21us-79us Avg: 50us Max: 79us\r\nMarkingPhase:\tSum: 77us 99% C.I. 29us-48us Avg: 38.500us Max: 48us\r\nPreCleanCards:\tSum: 75us 99% C.I. 23us-52us Avg: 37.500us Max: 52us\r\n(Paused)PausePhase:\tSum: 47us 99% C.I. 23us-24us Avg: 23.500us Max: 24us\r\nProcessCards:\tSum: 43us 99% C.I. 9us-14us Avg: 10.750us Max: 14us\r\nSwapBitmaps:\tSum: 42us 99% C.I. 19us-23us Avg: 21us Max: 23us\r\nReclaimPhase:\tSum: 34us 99% C.I. 16us-18us Avg: 17us Max: 18us\r\nSweep:\tSum: 32us 99% C.I. 15us-17us Avg: 16us Max: 17us\r\nMarkRoots:\tSum: 20us 99% C.I. 9us-11us Avg: 10us Max: 11us\r\nRecursiveMark:\tSum: 10us 99% C.I. 4us-6us Avg: 5us Max: 6us\r\nInitializePhase:\tSum: 8us 99% C.I. 4us-4us Avg: 4us Max: 4us\r\nSwapStacks:\tSum: 7us 99% C.I. 3us-4us Avg: 3.500us Max: 4us\r\nBindBitmaps:\tSum: 6us 99% C.I. 3us-3us Avg: 3us Max: 3us\r\nUnBindBitmaps:\tSum: 5us 99% C.I. 2us-3us Avg: 2.500us Max: 3us\r\n(Paused)ProcessMarkStack:\tSum: 4us 99% C.I. 2us-2us Avg: 2us Max: 2us\r\nFindDefaultSpaceBitmap:\tSum: 2us 99% C.I. 1us-1us Avg: 1us Max: 1us\r\nDone Dumping histograms \r\npartial concurrent mark sweep paused:\tSum: 12.709ms 99% C.I. 4.538ms-8.171ms Avg: 6.354ms Max: 8.171ms\r\npartial concurrent mark sweep total time: 187.919ms mean time: 93.959ms\r\npartial concurrent mark sweep freed: 40546 objects with total size 3MB\r\npartial concurrent mark sweep throughput: 216824/s / 19MB/s\r\nStart Dumping histograms for 6 iterations for sticky concurrent mark sweep\r\nMarkRootsCheckpoint:\tSum: 149.594ms 99% C.I. 0.136ms-110.368ms Avg: 12.466ms Max: 116.361ms\r\nScanGrayAllocSpaceObjects:\tSum: 70.975ms 99% C.I. 0.004ms-25.584ms Avg: 2.957ms Max: 26.096ms\r\nProcessMarkStack:\tSum: 41.441ms 99% C.I. 0.002ms-23.078ms Avg: 1.973ms Max: 24.520ms\r\nScanGrayImageSpaceObjects:\tSum: 29.454ms 99% C.I. 0.093ms-12.308ms Avg: 2.454ms Max: 12.750ms\r\nFreeList:\tSum: 16.627ms 99% C.I. 6us-384us Avg: 167.949us Max: 384us\r\nMarkConcurrentRoots:\tSum: 13.414ms 99% C.I. 0.007ms-3.742ms Avg: 1.117ms Max: 3.824ms\r\nSweepArray:\tSum: 10.557ms 99% C.I. 0.421ms-4.503ms Avg: 1.759ms Max: 4.503ms\r\nReMarkRoots:\tSum: 3.414ms 99% C.I. 97us-1067us Avg: 569us Max: 1067us\r\n(Paused)ScanGrayObjects:\tSum: 3.186ms 99% C.I. 0.579ms-1.374ms Avg: 1.062ms Max: 1.374ms\r\n(Paused)ScanGrayImageSpaceObjects:\tSum: 3.035ms 99% C.I. 0.092ms-2.850ms Avg: 1.011ms Max: 2.850ms\r\nMarkingPhase:\tSum: 2.510ms 99% C.I. 355us-538us Avg: 418.333us Max: 538us\r\nAllocSpaceClearCards:\tSum: 2.265ms 99% C.I. 3us-332us Avg: 94.375us Max: 332us\r\nImageModUnionClearCards:\tSum: 2.141ms 99% C.I. 120us-450us Avg: 178.416us Max: 450us\r\nEnqueueFinalizerReferences:\tSum: 862us 99% C.I. 10us-290us Avg: 143.666us Max: 290us\r\nMarkNonThreadRoots:\tSum: 700us 99% C.I. 23us-157us Avg: 58.333us Max: 157us\r\nZygoteModUnionClearCards:\tSum: 592us 99% C.I. 66us-158us Avg: 98.666us Max: 158us\r\nScanGrayZygoteSpaceObjects:\tSum: 589us 99% C.I. 53us-221us Avg: 98.166us Max: 221us\r\nSweepSystemWeaks:\tSum: 540us 99% C.I. 26us-181us Avg: 90us Max: 181us\r\nResetStack:\tSum: 385us 99% C.I. 43us-122us Avg: 64.166us Max: 122us\r\nFinishPhase:\tSum: 265us 99% C.I. 31us-65us Avg: 44.166us Max: 65us\r\nProcessReferences:\tSum: 244us 99% C.I. 5us-100us Avg: 40.666us Max: 100us\r\n(Paused)ScanGrayAllocSpaceObjects:\tSum: 180us 99% C.I. 2us-56us Avg: 30us Max: 56us\r\nRevokeAllThreadLocalAllocationStacks:\tSum: 175us 99% C.I. 10us-51us Avg: 29.166us Max: 51us\r\n(Paused)PausePhase:\tSum: 135us 99% C.I. 15us-38us Avg: 22.500us Max: 38us\r\nPreCleanCards:\tSum: 132us 99% C.I. 15us-29us Avg: 22us Max: 29us\r\nProcessCards:\tSum: 114us 99% C.I. 6us-14us Avg: 9.500us Max: 14us\r\nReclaimPhase:\tSum: 83us 99% C.I. 12us-16us Avg: 13.833us Max: 16us\r\nMarkRoots:\tSum: 55us 99% C.I. 7us-16us Avg: 9.166us Max: 16us\r\nUnBindBitmaps:\tSum: 32us 99% C.I. 2us-18us Avg: 5.333us Max: 18us\r\nInitializePhase:\tSum: 27us 99% C.I. 3us-9us Avg: 4.500us Max: 9us\r\nBindBitmaps:\tSum: 24us 99% C.I. 2us-8us Avg: 4us Max: 8us\r\nRecordFree:\tSum: 18us 99% C.I. 2us-5us Avg: 3us Max: 5us\r\nSwapStacks:\tSum: 17us 99% C.I. 2us-4us Avg: 2.833us Max: 4us\r\nFindDefaultSpaceBitmap:\tSum: 13us 99% C.I. 1us-3us Avg: 2.166us Max: 3us\r\n(Paused)ProcessMarkStack:\tSum: 10us 99% C.I. 1us-2us Avg: 1.666us Max: 2us\r\nPreSweepingGcVerification:\tSum: 6us 99% C.I. 1us-1us Avg: 1us Max: 1us\r\nDone Dumping histograms \r\nsticky concurrent mark sweep paused:\tSum: 10.346ms 99% C.I. 0.299ms-3.115ms Avg: 1.724ms Max: 3.115ms\r\nsticky concurrent mark sweep total time: 353.876ms mean time: 58.979ms\r\nsticky concurrent mark sweep freed: 92894 objects with total size 5MB\r\nsticky concurrent mark sweep throughput: 263156/s / 16MB/s\r\nTotal time spent in GC: 13.781s\r\nMean GC size throughput: 2047KB/s\r\nMean GC object throughput: 44036.2 objects/s\r\nTotal number of allocations 802084\r\nTotal bytes allocated 42MB\r\nFree memory 1577KB\r\nFree memory until GC 1577KB\r\nFree memory until OOME 113MB\r\nTotal memory 16MB\r\nMax memory 128MB\r\nTotal mutator paused time: 250.370ms\r\nTotal time waiting for GC to complete: 1.087ms\r\n\r\nDALVIK THREADS (50):\r\n\"main\" prio=5 tid=1 Blocked\r\n  | group=\"main\" sCount=1 dsCount=0 obj=0x7439b000 self=0xb4427400\r\n  | sysTid=16433 nice=0 cgrp=default sched=0/0 handle=0xb6fa5bec\r\n  | state=S schedstat=( 3186589058 421835166 2294 ) utm=278 stm=40 core=0 HZ=100\r\n  | stack=0xbe790000-0xbe792000 stackSize=8MB\r\n  | held mutexes=\r\n  at io.realm.Realm.create(Realm.java:244)\r\n  - waiting to lock <0x0cf4373e> (a java.lang.Class<io.realm.Realm>) held by thread 39\r\n  at io.realm.Realm.getInstance(Realm.java:219)\r\n  at io.realm.Realm.getInstance(Realm.java:182)\r\n  at com.sandwich.chatclient.ui.fragments.SandwichMessagesScreen.onCreate(SandwichMessagesScreen.java:110)\r\n  at android.app.Activity.performCreate(Activity.java:6092)\r\n  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1112)\r\n  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2468)\r\n  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2595)\r\n  at android.app.ActivityThread.access$800(ActivityThread.java:178)\r\n  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1470)\r\n  at android.os.Handler.dispatchMessage(Handler.java:111)\r\n  at android.os.Looper.loop(Looper.java:194)\r\n  at android.app.ActivityThread.main(ActivityThread.java:5624)\r\n  at java.lang.reflect.Method.invoke!(Native method)\r\n  at java.lang.reflect.Method.invoke(Method.java:372)\r\n  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)\r\n  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)\r\n\r\n\"Heap thread pool worker thread 2\" prio=5 tid=2 Native (still starting up)\r\n  | group=\"\" sCount=1 dsCount=0 obj=0x0 self=0xaf84a400\r\n  | sysTid=16441 nice=0 cgrp=default sched=0/0 handle=0xb4c17000\r\n  | state=S schedstat=( 3895922 7819922 22 ) utm=0 stm=0 core=3 HZ=100\r\n  | stack=0xb3b35000-0xb3b37000 stackSize=1020KB\r\n  | held mutexes=\r\n  native: #00 pc 000138e8  /system/lib/libc.so (syscall+28)\r\n  native: #01 pc 000a93b7  /system/lib/libart.so (art::ConditionVariable::Wait(art::Thread*)+74)\r\n  native: #02 pc 002369ef  /system/lib/libart.so (art::ThreadPool::GetTask(art::Thread*)+50)\r\n  native: #03 pc 00236999  /system/lib/libart.so (art::ThreadPoolWorker::Run()+52)\r\n  native: #04 pc 002371c1  /system/lib/libart.so (art::ThreadPoolWorker::Callback(void*)+52)\r\n  native: #05 pc 00017373  /system/lib/libc.so (__pthread_start(void*)+30)\r\n  native: #06 pc 000153df  /system/lib/libc.so (__start_thread+6)\r\n  (no managed stack frames)\r\n\r\n\"Heap thread pool worker thread 0\" prio=5 tid=3 Native (still starting up)\r\n  | group=\"\" sCount=1 dsCount=0 obj=0x0 self=0xb4427800\r\n  | sysTid=16438 nice=0 cgrp=default sched=0/0 handle=0xb4c19000\r\n  | state=S schedstat=( 5195154 10233308 21 ) utm=0 stm=0 core=1 HZ=100\r\n  | stack=0xb3d35000-0xb3d37000 stackSize=1020KB\r\n  | held mutexes=\r\n  native: #00 pc 000138e8  /system/lib/libc.so (syscall+28)\r\n  native: #01 pc 000a93b7  /system/lib/libart.so (art::ConditionVariable::Wait(art::Thread*)+74)\r\n  native: #02 pc 002369ef  /system/lib/libart.so (art::ThreadPool::GetTask(art::Thread*)+50)\r\n  native: #03 pc 00236999  /system/lib/libart.so (art::ThreadPoolWorker::Run()+52)\r\n  native: #04 pc 002371c1  /system/lib/libart.so (art::ThreadPoolWorker::Callback(void*)+52)\r\n  native: #05 pc 00017373  /system/lib/libc.so (__pthread_start(void*)+30)\r\n  native: #06 pc 000153df  /system/lib/libc.so (__start_thread+6)\r\n  (no managed stack frames)\r\n\r\n\"Heap thread pool worker thread 1\" prio=5 tid=4 Native (still starting up)\r\n  | group=\"\" sCount=1 dsCount=0 obj=0x0 self=0xaf84b400\r\n  | sysTid=16440 nice=0 cgrp=default sched=0/0 handle=0xb4c18000\r\n  | state=S schedstat=( 8434308 9012384 22 ) utm=0 stm=0 core=0 HZ=100\r\n  | stack=0xb3c35000-0xb3c37000 stackSize=1020KB\r\n  | held mutexes=\r\n  native: #00 pc 000138e8  /system/lib/libc.so (syscall+28)\r\n  native: #01 pc 000a93b7  /system/lib/libart.so (art::ConditionVariable::Wait(art::Thread*)+74)\r\n  native: #02 pc 002369ef  /system/lib/libart.so (art::ThreadPool::GetTask(art::Thread*)+50)\r\n  native: #03 pc 00236999  /system/lib/libart.so (art::ThreadPoolWorker::Run()+52)\r\n  native: #04 pc 002371c1  /system/lib/libart.so (art::ThreadPoolWorker::Callback(void*)+52)\r\n  native: #05 pc 00017373  /system/lib/libc.so (__pthread_start(void*)+30)\r\n  native: #06 pc 000153df  /system/lib/libc.so (__start_thread+6)\r\n  (no managed stack frames)\r\n```"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/162336717","html_url":"https://github.com/realm/realm-java/issues/1897#issuecomment-162336717","issue_url":"https://api.github.com/repos/realm/realm-java/issues/1897","id":162336717,"user":{"login":"emanuelez","id":473050,"avatar_url":"https://avatars.githubusercontent.com/u/473050?v=3","gravatar_id":"","url":"https://api.github.com/users/emanuelez","html_url":"https://github.com/emanuelez","followers_url":"https://api.github.com/users/emanuelez/followers","following_url":"https://api.github.com/users/emanuelez/following{/other_user}","gists_url":"https://api.github.com/users/emanuelez/gists{/gist_id}","starred_url":"https://api.github.com/users/emanuelez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanuelez/subscriptions","organizations_url":"https://api.github.com/users/emanuelez/orgs","repos_url":"https://api.github.com/users/emanuelez/repos","events_url":"https://api.github.com/users/emanuelez/events{/privacy}","received_events_url":"https://api.github.com/users/emanuelez/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T18:53:33Z","updated_at":"2015-12-06T18:53:33Z","body":"Hello. As a first thing I would like to suggest you to use the latest version of the plugin, which right now is 0.86.0. That is because:\r\n 1) we might have already fixed the specific problem\r\n 2) if we didn't we would not release a fix for the 0.84 release\r\n\r\nThat being said, you can now take advantage of async transactions, which allow you to very easily offload writes to another thread.\r\n\r\nAlso, be aware that write are mutually blocking so you if you have a long running transaction in a background thread, no other transaction will be able to start a new transaction until the previous one is committed."}}