Answer the question
In order to leave comments, you need to log in
Android application crashes on Android 5.0.2 (Lollipop), where to look for an error if it works fine on other versions of android?
My app works fine on Android 4.4 . On 5.0.2 I get an error
Thread suspend timeout
runtime/thread_list.cc:170] DALVIK THREADS (49):
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list. cc:170] "main" prio=5 tid=1 Runnable
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] | group="main" sCount=1 dsCount=0 obj=0x764a3000 self=0xb77c6d08 05-10
15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] | sysTid=19773 nice=0 cgrp=apps sched=0/0 handle=0xb6f4cec8 05-10
15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] | state=R schedstat=( 30265878441 1350904530 6311 ) utm=2988 stm=38 core=2 HZ=100
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] | stack=0xbe413000-0xbe415000 stackSize=8MB 05-10
15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] | held mutexes= "mutator lock"(shared held)
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] Not able to dump stack of thread that isn't suspended
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] "Signal Catcher" daemon prio=5 tid=2 WaitingInMainSignalCatcherLoop
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] | group="system" sCount=1 dsCount=0 obj=0x12c70080 self=0xb7ae3848
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] | sysTid=19780 nice=0 cgrp=apps sched=0/0 handle=0xb7ae1c40 05-10
15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] | state=S schedstat=( 1236458 289739 1 ) utm=0 stm=0 core=1 HZ=100
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc :170] | stack=0xb4943000-0xb4945000 stackSize=1012KB 05-10
15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] | held mutexes= 05-10
15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] native: #00 pc 00039efc /system/lib/libc.so (__rt_sigtimedwait +12)
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] native: #01 pc 00014675 /system/lib/libc.so (sigwait+24)
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] native: #02 pc 00220cc3 /system/lib/libart.so (art::SignalCatcher ::WaitForSignal(art::Thread*, art::SignalSet&)+66)
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] native : #03 pc 002227b1 /system/lib/libart.so (art::SignalCatcher::Run(void*)+196)
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart /runtime/thread_list.cc:170] native: #04 pc 00012f23 /system/lib/libc.so (__pthread_start(void*)+30)
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] native: #05 pc 00010fe7 /system/lib/libc.so (__start_thread+6)
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] (no managed stack frames)
05-10 15:40:40.641 19773-19781/com .pochtar.mine A/art: sart/runtime/thread_list.cc:170]
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170]" JDWP" daemon prio=5 tid=3 Suspended
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] | group="system" sCount=0 dsCount=0 obj=0x12c74080 self=0xb7ae6490
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] | sysTid=19781 nice=0 cgrp=apps sched=0/0 handle=0xb77cdb80 05-10
15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] | state=R schedstat=( 35144429 12791981 121 ) utm=2 stm=1 core=1 HZ=100
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc :170] | stack=0xb483f000-0xb4841000 stackSize=1012KB 05-10
15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] | held mutexes= 05-10
15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] native: #00 pc 00004640 /system/lib/libbacktrace_libc++.so (UnwindCurrent ::Unwind(unsigned int, ucontext*)+23)
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] native: #01 pc 00002e8d /system/lib/libbacktrace_libc++.so (Backtrace::Unwind (unsigned int, ucontext*)+8)
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] native: #02 pc 00248389 /system/ lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream >&, int, char const*, art::mirror::ArtMethod*)+68)
05-10 15:40:40.641 19773-19781 /com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] native: #03 pc 0022d0c3 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream >&) const+146)
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] native: #04 pc 00235a41 /system/lib/libart.so (art::ThreadList ::DumpLocked(std::__1::basic_ostream >&)+104)
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] native: #05 pc 00235f21 /system/lib/libart.so (art::UnsafeLogFatalForThreadSuspendAllTimeout()+184)
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc :170] native: #06 pc 0023626d /system/lib/libart.so (art::ThreadList::SuspendAll()+748)
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] native: #07 pc 0014e8bd /system/lib/libart.so (art::gc ::space::RosAllocSpace::InspectAllRosAlloc(void (*)(void*, void*, unsigned int, void*), void*, bool)+412) 05-10
15:40:40.641 19773-19781/com. pochtar.mine A/art: sart/runtime/thread_list.cc:170] native: #08 pc 0014ee29 /system/lib/libart.so (art::gc::space::RosAllocSpace::GetObjectsAllocated()+24)
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] native: #09 pc 0012e93d /system/lib/libart.so (art::gc ::Heap::GetObjectsAllocated() const+20)
05-10 15:40:40.641 19773-19781/com.pochtar.mine A/art: sart/runtime/thread_list.cc:170] native: #10 pc 000efb81 /system/lib/libart.so (art::Dbg ::DdmSendHeapInfo(art::Dbg::HpifWhen)+852)
and so on.
How to fix ?
Answer the question
In order to leave comments, you need to log in
Видимо в логе на устройстве много мусора. Желательно поймать в logcat именно Exception - он скореее всего будет выведен на уровне Error, Может быть не следует также фильтровать вывод по пакету, а смотреть все. По другому не понять...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question