Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
5.15.0 Alpha
-
android 10, huawei mate 20 Pro.
-
-
2020wk34, 2020wk36, 2020wk38, 2020wk40, 2020wk42, 2020wk44, 2020wk46, 2021wk02, 2021wk04, 2021wk06, 2021wk08PO2
Description
On my huawei mate 20 Pro, any Qt application crashes when I try to exit with the android back button. This wouldn't be such an issue, except that after a crash, if I immediately restart the application it crashes again on startup. It works if I wait a few seconds before restarting the app.
It also has the weird effect of hanging Qt creator for a few seconds, and disabling all keyboard inputs after. The only way is to restart Qt creator each time (on linux).
This is reproducible with qml or QWidget new projects. Only tested on this Huawei device.
Tested with Qt 5.12.7, Qt 5.14.1 and Qt 5.15.0.
Here is the full log in adb:
03-02 19:50:27.271 21922 21953 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 21953 (qtMainLoopThrea), pid 21922 (ct.example.test)
03-02 19:50:27.309 21922 21969 F libc : FORTIFY: pthread_mutex_lock called on a destroyed mutex (0xe9c334b8)
03-02 19:50:27.309 21922 21968 F libc : FORTIFY: pthread_mutex_lock called on a destroyed mutex (0xe9c334b8)
03-02 19:50:27.324 21975 21975 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-02 19:50:27.325 21975 21975 F DEBUG : Build fingerprint: 'HUAWEI/LYA-L29/HWLYA:10/HUAWEILYA-L29/10.0.0.182C636:user/release-keys'
03-02 19:50:27.325 21975 21975 F DEBUG : Revision: '0'
03-02 19:50:27.325 21975 21975 F DEBUG : ABI: 'arm'
03-02 19:50:27.325 21975 21975 F DEBUG : Timestamp: 2020-03-02 19:50:27+0800
03-02 19:50:27.325 21975 21975 F DEBUG : pid: 21922, tid: 21953, name: qtMainLoopThrea >>> org.qtproject.example.test <<<
03-02 19:50:27.325 21975 21975 F DEBUG : uid: 10192
03-02 19:50:27.325 21975 21975 F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
03-02 19:50:27.325 21975 21975 F DEBUG : Abort message: 'terminating'
03-02 19:50:27.325 21975 21975 F DEBUG : r0 00000000 r1 000055c1 r2 00000006 r3 ba9fae80
03-02 19:50:27.325 21975 21975 F DEBUG : r4 ba9fae94 r5 ba9fae78 r6 000055a2 r7 0000016b
03-02 19:50:27.325 21975 21975 F DEBUG : r8 ba9fae90 r9 ba9fae80 r10 ba9faeb0 r11 ba9faea0
03-02 19:50:27.325 21975 21975 F DEBUG : ip 000055c1 sp ba9fae50 lr e7e9d143 pc e7e9d156
{{03-02 19:50:27.331 21975 21975 F DEBUG : }}
03-02 19:50:27.331 21975 21975 F DEBUG : backtrace:
03-02 19:50:27.331 21975 21975 F DEBUG : #00 pc 00054156 /apex/com.android.runtime/lib/bionic/libc.so (abort+166) (BuildId: f2470da1a22265f8104ce6bb9bcaf63e)
03-02 19:50:27.331 21975 21975 F DEBUG : #01 pc 0003606d /system/lib/libc++.so (abort_message+88) (BuildId: fa0397c630f1e14558b6409ed72175a4)
03-02 19:50:27.331 21975 21975 F DEBUG : #02 pc 0003615d /system/lib/libc++.so (demangling_terminate_handler()+20) (BuildId: fa0397c630f1e14558b6409ed72175a4)
03-02 19:50:27.331 21975 21975 F DEBUG : #03 pc 00044eef /system/lib/libc++.so (std::__terminate(void ())+2) (BuildId: fa0397c630f1e14558b6409ed72175a4)
03-02 19:50:27.331 21975 21975 F DEBUG : #04 pc 00044ea1 /system/lib/libc++.so (std::terminate()+40) (BuildId: fa0397c630f1e14558b6409ed72175a4)
03-02 19:50:27.331 21975 21975 F DEBUG : #05 pc 00080527 /system/lib/libc++.so (std::__1::thread::~thread()+10) (BuildId: fa0397c630f1e14558b6409ed72175a4)
03-02 19:50:27.331 21975 21975 F DEBUG : #06 pc 0009e4ef /apex/com.android.runtime/lib/bionic/libc.so (__cxa_finalize+142) (BuildId: f2470da1a22265f8104ce6bb9bcaf63e)
03-02 19:50:27.331 21975 21975 F DEBUG : #07 pc 000997c3 /apex/com.android.runtime/lib/bionic/libc.so (exit+10) (BuildId: f2470da1a22265f8104ce6bb9bcaf63e)
03-02 19:50:27.331 21975 21975 F DEBUG : #08 pc 0001f745 /data/app/org.qtproject.example.test-_iswZeteoNYuyKmN4W27lQ==/lib/arm/libplugins_platforms_qtforandroid_armeabi-v7a.so (BuildId: 78f2b4e3c589ac76a211309492168c476196dbd3)
Attachments
Issue Links
- duplicates
-
QTBUG-85449 Crashes at the destructors of std::thread and std::mutex.
- Closed
- is duplicated by
-
QTBUG-83043 Crash in libqtforandroid.so
- Closed
- relates to
-
QTBUG-55846 Android app hangs (ANR) on exit when using service
- Closed
-
QTBUG-67944 If user pressed back button during application startup. Application becomes unresponsive.
- Closed
-
QTBUG-50889 Android application remains on background when quit
- Closed
-
QTBUG-64565 QML ConicalGradient causes crash on Android when back button is used
- Closed
-
QTBUG-78456 Crash on second startup with QQuickFramebufferObject on Galaxy Tab 3
- Closed
-
QTBUG-87685 Android/ Huawei: Crash in QAbstractEventDispatcherPrivate::allocateTimerId
- Closed
-
QTBUG-97115 When an application that is using a background service is closed then it will cause an ANR after hanging for about 30 seconds
- Closed
-
QTBUG-84118 When entering text in a TextField and pressing back to close the keyboard it will cause the application to hang
- Closed
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...