Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-82617

Crash on exit via back button on Huawei Mate 20 Pro

    XMLWordPrintable

Details

    • Android
    • 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

        1. 2020-09-29.png
          2020-09-29.png
          88 kB
        2. adb-log.txt
          1.28 MB
        3. cut.mp4
          573 kB
        4. debug.diff
          8 kB
        5. image-2020-03-27-07-56-42-548.png
          image-2020-03-27-07-56-42-548.png
          94 kB
        6. image-2021-05-15-22-08-51-070.png
          image-2021-05-15-22-08-51-070.png
          117 kB
        7. image-2021-09-03-14-55-10-181.png
          image-2021-09-03-14-55-10-181.png
          140 kB
        8. image-2022-03-31-22-29-45-783.png
          image-2022-03-31-22-29-45-783.png
          100 kB
        9. image-2022-03-31-22-32-51-714.png
          image-2022-03-31-22-32-51-714.png
          25 kB
        10. image-2022-03-31-22-42-47-599.png
          image-2022-03-31-22-42-47-599.png
          68 kB
        11. image-2022-03-31-22-47-40-433.png
          image-2022-03-31-22-47-40-433.png
          25 kB
        12. main.qml
          2 kB
        13. mat-20-pro-crash.mp4
          4.26 MB
        14. qt_creator_screenshot.png
          qt_creator_screenshot.png
          763 kB
        15. Screenshot 2020-03-26 at 16.37.11.png
          Screenshot 2020-03-26 at 16.37.11.png
          250 kB
        16. VID_20200902_huawei_p40_android10_qt-mapviewer_ok.mp4
          8.09 MB
        17. Скриншот 2020-05-28 08.20.43.png
          Скриншот 2020-05-28 08.20.43.png
          320 kB
        18. Скриншот 2020-05-28 08.32.54.png
          Скриншот 2020-05-28 08.32.54.png
          296 kB
        19. Скриншот 2020-05-28 08.40.38.png
          Скриншот 2020-05-28 08.40.38.png
          315 kB
        20. Скриншот 2020-05-28 08.46.48.png
          Скриншот 2020-05-28 08.46.48.png
          401 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-82617
          # Subject Branch Project Status CR V

          Activity

            People

              rampe Rami Potinkara
              guillaume-chereau guillaume-chereau
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              36 Vote for this issue
              Watchers:
              52 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 4 hours, 30 minutes
                  1d 4h 30m