AndroidJobService ANR after update SDK to 9.1.0


Log:

"main" tid=1 Waiting 
"main" prio=5 tid=1 Waiting | group="main" sCount=1 dsCount=0 obj=0x735bb3e8 self=0xb80526f0 | sysTid=25642 nice=0 cgrp=default sched=0/0 handle=0xb6f63bec | state=S schedstat=( 0 0 0 ) utm=83 stm=46 core=0 HZ=100 | stack=0xbe224000-0xbe226000 stackSize=8MB | held mutexes=
 
at java.lang.Object.wait! (Native method)
- waiting on <0x38bb1892> (a java.lang.Object)
 
at java.lang.Thread.parkFor (Thread.java:1220)
- locked <0x38bb1892> (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:365)
 
at android.app.QueuedWork.waitToFinish (QueuedWork.java:88)
 
at android.app.ActivityThread.handleStopService (ActivityThread.java:2971)
 
at android.app.ActivityThread.access$2200 (ActivityThread.java:151)
 
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1416)
 
at android.os.Handler.dispatchMessage (Handler.java:102)
 
at android.os.Looper.loop (Looper.java:135)
 
at android.app.ActivityThread.main (ActivityThread.java:5348)
 
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:947)
 
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:742)
"pool-5-thread-1" tid=22 Native 正在执行磁盘 I/O
"pool-5-thread-1" prio=5 tid=22 Native | group="main" sCount=1 dsCount=0 obj=0x1ac012a8 self=0xb8273720 | sysTid=25820 nice=0 cgrp=default sched=0/0 handle=0xb82745e0 | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=2 HZ=100 | stack=0xa2f5e000-0xa2f60000 stackSize=1036KB | held mutexes=
 
#00 pc 000000000001297c /system/lib/libc.so (syscall+28)
 
#01 pc 00000000000a9af3 /system/lib/libart.so (art::ConditionVariable::Wait(art::Thread*)+82)
 
#02 pc 000000000027cb75 /system/lib/libart.so (art::GoToRunnable(art::Thread*)+756)
 
#03 pc 0000000000087739 /system/lib/libart.so (art::JniMethodEnd(unsigned int, art::Thread*)+8)
 
#04 pc 000000000007469d /system/framework/arm/boot.oat (Java_libcore_io_Posix_fsync__Ljava_io_FileDescriptor_2+112)
 
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:600)
 
at android.app.SharedPreferencesImpl.access$800 (SharedPreferencesImpl.java:51)
 
at android.app.SharedPreferencesImpl$2.run (SharedPreferencesImpl.java:514)
- locked <@addr=0x1ac013b8> (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)
 
 
"Thread-19559" tid=19 Suspended 线程已暂停
"Thread-19559" prio=5 tid=19 Suspended | group="main" sCount=1 dsCount=0 obj=0x1ac00b20 self=0xb8256040 | sysTid=25788 nice=0 cgrp=default sched=0/0 handle=0xb8256548 | state=S schedstat=( 0 0 0 ) utm=38 stm=56 core=2 HZ=100 | stack=0xa326a000-0xa326c000 stackSize=1036KB | held mutexes=
 
at android.database.AbstractCursor.checkPosition (AbstractCursor.java:428)
 
at android.database.AbstractWindowedCursor.checkPosition (AbstractWindowedCursor.java:136)
 
at android.database.AbstractWindowedCursor.getString (AbstractWindowedCursor.java:50)
 
at com.urbanairship.remotedata.RemoteDataPayloadEntry.<init> (RemoteDataPayloadEntry.java:79)
 
at com.urbanairship.remotedata.RemoteDataStore.generatePayloadEntries (RemoteDataStore.java:204)
 
at com.urbanairship.remotedata.RemoteDataStore.getPayloads (RemoteDataStore.java:134)
 
at com.urbanairship.remotedata.RemoteData$6.apply (RemoteData.java:332)
 
at com.urbanairship.remotedata.RemoteData$6.apply (RemoteData.java:329)
 
at com.urbanairship.reactive.Observable$15.apply (Observable.java:442)
 
at com.urbanairship.reactive.Observable$15.apply (Observable.java:439)
 
at com.urbanairship.reactive.Observable.subscribe (Observable.java:135)
 
at com.urbanairship.reactive.Observable$14.apply (Observable.java:403)
 
at com.urbanairship.reactive.Observable$14.apply (Observable.java:400)
 
at com.urbanairship.reactive.Observable.subscribe (Observable.java:135)
 
at com.urbanairship.reactive.Observable$17.apply (Observable.java:589)
 
at com.urbanairship.reactive.Observable$17.apply (Observable.java:574)
 
at com.urbanairship.reactive.Observable.subscribe (Observable.java:135)
 
at com.urbanairship.reactive.Observable$17.apply (Observable.java:589)
 
at com.urbanairship.reactive.Observable$17.apply (Observable.java:574)
 
at com.urbanairship.reactive.Observable.subscribe (Observable.java:135)
 
at com.urbanairship.reactive.Observable$17.apply (Observable.java:589)
 
at com.urbanairship.reactive.Observable$17.apply (Observable.java:574)
 
at com.urbanairship.reactive.Observable.subscribe (Observable.java:135)
 
at com.urbanairship.remoteconfig.RemoteConfigManager.init (RemoteConfigManager.java:62)
 
at com.urbanairship.UAirship.init (UAirship.java:687)
 
at com.urbanairship.UAirship.executeTakeOff (UAirship.java:392)
- locked <@addr=0x1ac00ed8> (a java.lang.Object)
 
at com.urbanairship.UAirship.access$000 (UAirship.java:54)
 
at com.urbanairship.UAirship$2.run (UAirship.java:351)
 
at java.lang.Thread.run (Thread.java:818)
 
 

Didn't find what you were looking for?

New post

Comments

3 comments

  • Hi Soccer Dog,

    Thank you for that information. I see you have other posts related to ANRs you're experiencing, so I'll respond to the latest thread here.

    Currently, you're using the 9.1.0 library. The latest version right now is on 9.3.1. Can you let us know if you have been able to reproduce this ANR with the 9.3.1 SDK?

    0
  • Hi,

    I am also facing the same issue, but I am using 9.4.0 SDK. Could you please help me out. what is the root cause of getting this ANR

    you can find more details on this thread https://support.urbanairship.com/hc/en-us/community/posts/360026375431-Android-users-facing-ANR-with-SDK-9-4-0

    0
  • Thanks for the headsup Ankit. We'll address that ANR in that thread.

    0

Please sign in to leave a comment.