ANR/Crash when background services are running and user tries to close the app from recent apps or using back button.
-
Hello,
Qt version: 5.15.1
Devices tested: Samsung S20, OnePlus6We are using Qt/qml to create an application for android and iOS. We are
experiencing ANR/Crash when background services are running and user tries to
close the app from recent apps or using back button.We have integrated android SDK from zoom to implement meeting functionality.
Zoom SDK runs background services internally. When these background services
are running and user tries to close the app from recent apps below logs are
observed:
Thread[6,tid=21492,WaitingInMainSignalCatcherLoop,Thread*=0x761c03a080,peer=0 x13b80330,"Signal Catcher"]: reacting to signal 3 Wrote stack traces to tombstoned
And below crash is observed on pressing back button:
F libc : FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x749863e774) F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 22836 (qtMainLoopThrea), pid 22253
Note that this crash/ANR is not observed on native android apps with same SDK
and code. The issue is observed only when
org.qtproject.qt5.android.bindings.QtActivity
is used.For native android apps which has activity class extended from
android.app.Activity
doesn't crash or give ANR when background services are
running and user closes the app.Please let us know if there are any inputs.