corona icon indicating copy to clipboard operation
corona copied to clipboard

Android Google Play Controller.stop() blocked when onPause()

Open pythonokai opened this issue 4 years ago • 0 comments

Thank you for your awesome SDK!

I have some problems and I need your help.

Description

  • Description: com.ansca.corona.Controller.stop() blocked when calling ExtendedCoronaActivity.onPause()
  • Type: ANR
  • Platform: Android
  • SDK Version: Corona 2019.3559
  • Device distribution: no specific android version or device model
  • Reproduce: can't
  • Duplicate issue: NOT FOUND

I have ExtendedCoronaActivity Class which extended CoronaActivity, and Google Play Console shown that cause an ANR when calling onPause.

I try to reproduce on several devices but none of those can reproduce it.

Stacktrace

"main" prio=5 tid=1 Blocked
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x7a1ac1e8 self=0x789ba14c00
  | sysTid=29332 nice=0 cgrp=default sched=0/0 handle=0x7921915548
  | state=S schedstat=( 28077156064 6940306921 126855 ) utm=1646 stm=1161 core=1 HZ=100
  | stack=0x7fe7b26000-0x7fe7b28000 stackSize=8MB
  | held mutexes=
 
  at com.ansca.corona.Controller.stop (Controller.java)
- waiting to lock <0x0011fa7b> (a com.ansca.corona.Controller) held by thread 53
  at com.ansca.corona.CoronaActivity.requestSuspendCoronaRuntime (CoronaActivity.java:2031)
  at com.ansca.corona.CoronaActivity.onPause (CoronaActivity.java:1854)

Stack shown below is another thread relate to above. It also appear on the Crashed list, strange is, that Crash just print the stack only, no further information. It just like Android Vital detected something wrong, show you process after that but not the real cause. I think that Crashed maybe related to this ANR, but also marked as Crashed.

"Signal Catcher" daemon prio=5 tid=3 Runnable
  | group="system" sCount=0 dsCount=0 flags=0 obj=0x13340668 self=0x789ba16400
  | sysTid=29339 nice=0 cgrp=default sched=0/0 handle=0x7894f8c4f0
  | state=R schedstat=( 44115205 3775834 49 ) utm=1 stm=3 core=2 HZ=100
  | stack=0x7894e91000-0x7894e93000 stackSize=1009KB
  | held mutexes= "mutator lock"(shared held)
 
  #00  pc 00000000003c2908  /system/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+220)
  #01  pc 000000000049044c  /system/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+352)
  #02  pc 00000000004aa7dc  /system/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+936)
  #03  pc 00000000004a368c  /system/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*, bool)+856)
  #04  pc 00000000004a23d0  /system/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+1068)
  #05  pc 00000000004a1ed0  /system/lib64/libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+884)
  #06  pc 0000000000472188  /system/lib64/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+176)
  #07  pc 000000000047def8  /system/lib64/libart.so (art::SignalCatcher::HandleSigQuit()+1372)
  #08  pc 000000000047cbd0  /system/lib64/libart.so (art::SignalCatcher::Run(void*)+256)
  #09  pc 0000000000090534  /system/lib64/libc.so (__pthread_start(void*)+36)
  #10  pc 0000000000023cb8  /system/lib64/libc.so (__start_thread+68)

Any reply will be help, and if any detail I can provide, please feel free to tell me.

Thank you.

pythonokai avatar Sep 04 '20 07:09 pythonokai