h6ah4i / android-openslmediaplayer

Re-implementation of Android's MediaPlayer and audio effect classes based on OpenSL ES APIs.
https://openslmediaplayer.h6ah4i.com
Apache License 2.0
419 stars 97 forks source link

Native API example app crashes when "Don't keep activities" option is enabled #4

Closed h6ah4i closed 9 years ago

h6ah4i commented 9 years ago

The C++ native API example app crashes when "Don't keep activities" developer option is enabled.

h6ah4i commented 9 years ago

Error message:

I/DEBUG   (30693): Abort message: 'art/runtime/thread.cc:1019] Native thread exited without calling DetachCurrentThread: Thread[14,tid=22779,Native,Thread*=0xa3c1e400,peer=0x12cf3080,"Thread-16152"]'
I/DEBUG   (30693):     r0 00000000  r1 a3ecbdb0  r2 fffffa98  r3 0000000c
I/DEBUG   (30693):     r4 01f19d5e  r5 a3ecba60  r6 b4ffeffc  r7 fffffa9c
I/DEBUG   (30693):     r8 70af1cf8  r9 00000000  sl 70af1cf8  fp 72933d40
I/DEBUG   (30693):     ip b4ffca7c  sp a3ecb888  lr b4f5aed9  pc b4f5aed8  cpsr 80070030
I/DEBUG   (30693): 
I/DEBUG   (30693): backtrace:
I/DEBUG   (30693):     #00 pc 00261ed8  /system/lib/libart.so (art::verifier::MethodVerifier::FindLocksAtDexPc(art::mirror::ArtMethod*, unsigned int, std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >*)+59)
I/DEBUG   (30693):     #01 pc 001f41e5  /system/lib/libart.so (art::Monitor::VisitLocks(art::StackVisitor*, void (*)(art::mirror::Object*, void*), void*, bool)+252)
I/DEBUG   (30693):     #02 pc 00233a07  /system/lib/libart.so (art::StackDumpVisitor::VisitFrame()+374)
I/DEBUG   (30693):     #03 pc 0022da3d  /system/lib/libart.so (art::StackVisitor::WalkStack(bool)+272)
I/DEBUG   (30693):     #04 pc 002361c9  /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+224)
I/DEBUG   (30693):     #05 pc 0023f31d  /system/lib/libart.so (art::ThreadList::DumpLocked(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+120)
I/DEBUG   (30693):     #06 pc 00225d91  /system/lib/libart.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+272)
I/DEBUG   (30693):     #07 pc 00225fdb  /system/lib/libart.so (art::Runtime::Abort()+82)
I/DEBUG   (30693):     #08 pc 000a72e9  /system/lib/libart.so (art::LogMessage::~LogMessage()+1360)
I/DEBUG   (30693):     #09 pc 002337e7  /system/lib/libart.so (art::Thread::ThreadExitCallback(void*)+186)
I/DEBUG   (30693):     #10 pc 00016955  /system/lib/libc.so (pthread_key_clean_all()+80)
I/DEBUG   (30693):     #11 pc 000165d3  /system/lib/libc.so (pthread_exit+30)
I/DEBUG   (30693):     #12 pc 000162e5  /system/lib/libc.so (__pthread_start(void*)+32)
I/DEBUG   (30693):     #13 pc 000142d3  /system/lib/libc.so (__start_thread+6)