Assigned
Status Update
Comments
kd...@gmail.com <kd...@gmail.com> #2
I see same issue and have been debugging it.
NOTE: It DOES NOT happen if not using support package, but use android level 14/15 library. I believe Honeycomb works well too.
My current workaround is to provide my own DialogFragment.show() method, like below:
public int show(FragmentTransaction transaction, String tag) {
return show(transaction, tag, false);
}
public int show(FragmentTransaction transaction, String tag, boolean allowStateLoss) {
transaction.add(this, tag);
mRemoved = false;
mBackStackId = allowStateLoss ? transaction.commitAllowingStateLoss() : transaction.commit();
return mBackStackId;
}
NOTE: It DOES NOT happen if not using support package, but use android level 14/15 library. I believe Honeycomb works well too.
My current workaround is to provide my own DialogFragment.show() method, like below:
public int show(FragmentTransaction transaction, String tag) {
return show(transaction, tag, false);
}
public int show(FragmentTransaction transaction, String tag, boolean allowStateLoss) {
transaction.add(this, tag);
mRemoved = false;
mBackStackId = allowStateLoss ? transaction.commitAllowingStateLoss() : transaction.commit();
return mBackStackId;
}
Description
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'bes2009evb/bes2009evb_wear/bes2009evb:VanillaIceCream/AP2A.240605.024/eng.youhao.20240718.141207:userdebug/test-keys'
Revision: '0'
ABI: 'arm'
Timestamp: 2024-07-29 13:14:29.755144818+0000
Process uptime: 0s
Cmdline: com.android.bluetooth
pid: 731, tid: 740, name: HeapTaskDaemon >>> com.android.bluetooth <<<
uid: 1002
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
Abort message: 'GC tried to mark invalid reference 0x2c002d
ref=0x2c002d <invalid address>
holder=0x7302ce00 klass=0x72fe7f30 <invalid address> space=SpaceTypeZygoteSpace begin=0x72ab6000,end=0x7309f000,size=6052KB,name="Zygote space"] card=0 adjacent_ram=643a0202 00000302 70a591d8 20000000 00000000 00000000 36c9a90f fffffdb4 |72fe7f30 72fe7f48 72fe7f60 00000000 00000005 0023002e 002c0045 002c002d
reference addr adjacent_ram=fffffdb4 72fe7f30 72fe7f48 72fe7f60 00000000 00000005 0023002e 002c0045 |002c002d 003b002e 00252030 00010030 00000000 70d3d130 20000000 00000000 0xf08454a0 main space (region space) 0x12c00000-0x1ec00000
backtrace:
#00 pc 00039122 /apex/com.android.runtime/lib/bionic/libc.so (abort+138) (BuildId: 21aa1d862cd4859d13635b1f4c2a6d82)
#01 pc 004adf05 /apex/com.android.art/lib/libart.so (art::Runtime::Abort(char const*)+1104) (BuildId: 07f0b227d903b60f3ac2c73838052719)
#02 pc 0000ed8f /apex/com.android.art/lib/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_0::__invoke(char const*)+46) (BuildId: 76cb77ad1f9299f2b77a18e81333fd7a)
#03 pc 0000e637 /apex/com.android.art/lib/libbase.so (android::base::LogMessage::~LogMessage()+226) (BuildId: 76cb77ad1f9299f2b77a18e81333fd7a)
#04 pc 002df657 /apex/com.android.art/lib/libart.so (art::gc::Verification::LogHeapCorruption(art::ObjPtr<art::mirror::Object>, art::MemberOffset, art::mirror::Object*, bool) const+854) (BuildId: 07f0b227d903b60f3ac2c73838052719)
#05 pc 00279151 /apex/com.android.art/lib/libart.so (art::gc::collector::ConcurrentCopying::MarkNonMoving(art::Thread*, art::mirror::Object*, art::mirror::Object*, art::MemberOffset)+66) (BuildId: 07f0b227d903b60f3ac2c73838052719)
#06 pc 0027de77 /apex/com.android.art/lib/libart.so (void art::gc::collector::ConcurrentCopying::Process<true>(art::mirror::Object*, art::MemberOffset)+246) (BuildId: 07f0b227d903b60f3ac2c73838052719)
#07 pc 0027d513 /apex/com.android.art/lib/libart.so (void art::mirror::Object::VisitReferences<true, (art::VerifyObjectFlags)0, (art::ReadBarrierOption)1, art::gc::collector::ConcurrentCopying::RefFieldsVisitor<true>, art::gc::collector::ConcurrentCopying::RefFieldsVisitor<true> >(art::gc::collector::ConcurrentCopying::RefFieldsVisitor<true> const&, art::gc::collector::ConcurrentCopying::RefFieldsVisitor<true> const&)+162) (BuildId: 07f0b227d903b60f3ac2c73838052719)
#08 pc 0027d3e1 /apex/com.android.art/lib/libart.so (art::gc::collector::ConcurrentCopying::ScanImmuneObject(art::mirror::Object*)+172) (BuildId: 07f0b227d903b60f3ac2c73838052719)
#09 pc 00274f6d /apex/com.android.art/lib/libart.so (art::gc::collector::ConcurrentCopying::ImmuneSpaceScanObjVisitor::Callback(art::mirror::Object*, void*)+28) (BuildId: 07f0b227d903b60f3ac2c73838052719)
#10 pc 0025fc53 /apex/com.android.art/lib/libart.so (art::gc::accounting::ModUnionTableCardCache::VisitObjects(void (*)(art::mirror::Object*, void*), void*)+366) (BuildId: 07f0b227d903b60f3ac2c73838052719)
#11 pc 002721f1 /apex/com.android.art/lib/libart.so (art::gc::collector::ConcurrentCopying::CopyingPhase()+1008) (BuildId: 07f0b227d903b60f3ac2c73838052719)
#12 pc 00270c11 /apex/com.android.art/lib/libart.so (art::gc::collector::ConcurrentCopying::RunPhases()+6828) (BuildId: 07f0b227d903b60f3ac2c73838052719)
#13 pc 00282401 /apex/com.android.art/lib/libart.so (art::gc::collector::GarbageCollector::Run(art::gc::GcCause, bool)+216) (BuildId: 07f0b227d903b60f3ac2c73838052719)
#14 pc 002a8ded /apex/com.android.art/lib/libart.so (art::gc::Heap::CollectGarbageInternal(art::gc::collector::GcType, art::gc::GcCause, bool, unsigned int)+2476) (BuildId: 07f0b227d903b60f3ac2c73838052719)
#15 pc 002b8f75 /apex/com.android.art/lib/libart.so (art::gc::Heap::ConcurrentGCTask::Run(art::Thread*)+136) (BuildId: 07f0b227d903b60f3ac2c73838052719)
#16 pc 002ded5d /apex/com.android.art/lib/libart.so (art::gc::TaskProcessor::RunAllTasks(art::Thread*)+1140) (BuildId: 07f0b227d903b60f3ac2c73838052719)
#17 pc 002e0295 /data/misc/apexdata/com.android.art/dalvik-cache/arm/boot.oat (art_jni_trampoline+68)
#18 pc 0051fe5d /data/misc/apexdata/com.android.art/dalvik-cache/arm/boot.oat (java.lang.Daemons$HeapTaskDaemon.runInternal+188)
#19 pc 004fb74b /data/misc/apexdata/com.android.art/dalvik-cache/arm/boot.oat (java.lang.Daemons$Daemon.run+114)
#20 pc 00397bd7 /data/misc/apexdata/com.android.art/dalvik-cache/arm/boot.oat (java.lang.Thread.run+70)
#21 pc 000a5375 /apex/com.android.art/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: 07f0b227d903b60f3ac2c73838052719)
#22 pc 0056d991 /apex/com.android.art/lib/libart.so (art_quick_invoke_stub+256) (BuildId: 07f0b227d903b60f3ac2c73838052719)
#23 pc 0020075b /apex/com.android.art/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+126) (BuildId: 07f0b227d903b60f3ac2c73838052719)
#24 pc 004dd1c1 /apex/com.android.art/lib/libart.so (art::Thread::CreateCallback(void*)+1112) (BuildId: 07f0b227d903b60f3ac2c73838052719)
#25 pc 00044323 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+40) (BuildId: 21aa1d862cd4859d13635b1f4c2a6d82)
#26 pc 0003b42b /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: 21aa1d862cd4859d13635b1f4c2a6d82)