Android

[Android] SharedPreferences ANR 발생

“main” (tid=1) 스레드는 대기 상태입니다.

“main” tid=1 Waiting 

“main” prio=5 tid=1 Waiting
| group=”main” sCount=1 dsCount=0 obj=0x74af0fa8 self=0x55b0818220
| sysTid=12630 nice=-4 cgrp=default sched=0/0 handle=0x7f8efbfea0
| state=S schedstat=( 1667286617 535108206 2261 ) utm=135 stm=31 core=1 HZ=100
| stack=0x7ff91c1000-0x7ff91c3000 stackSize=8MB
| held mutexes=
at java.lang.Object.wait! (Native method)
– waiting on <0x203a46db> (a java.lang.Object)
at java.lang.Thread.parkFor (Thread.java:1220)
– locked <0x203a46db> (a java.lang.Object)
at sun.misc.Unsafe.park (Unsafe.java:299)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt (AbstractQueuedSynchronizer.java:813)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly (AbstractQueuedSynchronizer.java:973)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly (AbstractQueuedSynchronizer.java:1281)
at java.util.concurrent.CountDownLatch.await (CountDownLatch.java:202)
at android.app.SharedPreferencesImpl$EditorImpl$1.run (SharedPreferencesImpl.java:363)
at android.app.QueuedWork.waitToFinish (QueuedWork.java:88)
at android.app.ActivityThread.handleServiceArgs (ActivityThread.java:2941)
at android.app.ActivityThread.access$2100 (ActivityThread.java:177)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1439)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:135)
at android.app.ActivityThread.main (ActivityThread.java:5384)
at java.lang.reflect.Method.invoke! (Native method)
at java.lang.reflect.Method.invoke (Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:907)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:702)
“pool-4-thread-1” tid=13 Native 디스크 I/O 실행 중

“pool-4-thread-1″ prio=5 tid=13 Native
| group=”main” sCount=1 dsCount=0 obj=0x12c17580 self=0x55b0a56e30
| sysTid=12673 nice=0 cgrp=default sched=0/0 handle=0x55b09d1c00
| state=D schedstat=( 22437869 13878643 57 ) utm=2 stm=0 core=1 HZ=100
| stack=0x7f7299f000-0x7f729a1000 stackSize=1036KB
| held mutexes=
#00 pc 000000000005fba0 /system/lib64/libc.so (fsync+8)
#01 pc 000000000003a50c /system/lib64/libjavacore.so (???)
#02 pc 00000000000affe4 /data/dalvik-cache/arm64/system@framework@boot.oat (Java_libcore_io_Posix_fsync__Ljava_io_FileDescriptor_2+168)
at libcore.io.Posix.fsync (Native method)
at libcore.io.BlockGuardOs.fsync (BlockGuardOs.java:143)
at java.io.FileDescriptor.sync (FileDescriptor.java:74)
at android.os.FileUtils.sync (FileUtils.java:152)
at android.app.SharedPreferencesImpl.writeToFile (SharedPreferencesImpl.java:598)
at android.app.SharedPreferencesImpl.access$800 (SharedPreferencesImpl.java:51)
at android.app.SharedPreferencesImpl$2.run (SharedPreferencesImpl.java:512)
– locked <@addr=0x12ee4460> (a java.lang.Object)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:587)
at java.lang.Thread.run (Thread.java:818)
“Answers Events Handler1” tid=15 Native 디스크 I/O 실행 중

“Answers Events Handler1″ prio=5 tid=15 Native
| group=”main” sCount=1 dsCount=0 obj=0x12c175e0 self=0x55b0a4be70
| sysTid=12675 nice=10 cgrp=bg_non_interactive sched=0/0 handle=0x55b0a4c5b0
| state=S schedstat=( 23394636 51155727 90 ) utm=2 stm=0 core=2 HZ=100
| stack=0x7f70be5000-0x7f70be7000 stackSize=1036KB
| held mutexes=
#00 pc 00000000000138c4 /system/lib64/libc.so (syscall+28)
#01 pc 00000000000d0848 /system/lib64/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+140)
#02 pc 0000000000281d60 /system/lib64/libart.so (_ZN3art3JNI24ReleaseByteArrayElementsEP7_JNIEnvP11_jbyteArrayPai+1716)
#03 pc 0000000000036c5c /system/lib64/libjavacore.so (???)
#04 pc 00000000003c0220 /data/dalvik-cache/arm64/system@framework@boot.oat (Java_libcore_io_Posix_writeBytes__Ljava_io_FileDescriptor_2Ljava_lang_Object_2II+212)
at libcore.io.Posix.writeBytes (Native method)
at libcore.io.Posix.write (Posix.java:258)
at libcore.io.BlockGuardOs.write (BlockGuardOs.java:313)
at libcore.io.IoBridge.write (IoBridge.java:497)
at java.io.RandomAccessFile.write (RandomAccessFile.java:688)
at a.a.a.a.a.b.u.a (unavailable)
at a.a.a.a.a.b.u.a (unavailable)
at a.a.a.a.a.b.u.a (unavailable)
at a.a.a.a.a.d.h.a (unavailable)
at a.a.a.a.a.d.b.writeEvent (unavailable)
at com.crashlytics.android.answers.EnabledSessionAnalyticsManagerStrategy.processEvent (unavailable)
at com.crashlytics.android.answers.AnswersEventsHandler$6.run (unavailable)
at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:422)
at java.u
“Heap thread pool worker thread 2” tid=2 Native 

Leave a Reply

error: Content is protected !!