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

Crash when changing enabled state of Button in onPressed when using Material style

    XMLWordPrintable

Details

    • Android
    • a14e4fcdf94d26774490b26a4ef77981594f583f (qt/qtdeclarative/dev) 81238e0ff8453f4fb78436ac9bec8452584680ae (qt/qtdeclarative/5.15)
    • 2020wk36, 2020wk38

    Description

      When using the Material style on Android, if you update the enabled state of a Button in the onPressed handler the application will crash with:

      F libc : /Volumes/Android/buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:72: abort_message: assertion "Pure virtual function called!" failed

      This only seems to happen for the Android target. If you use the Material style on the macOS target it works ok.

      I have attached a sample project that reproduces the issue. To run:

      1. Build and run using Qt 5.15.0 for Android
      2. Tap multiple times on the "Press Me" button.

      Attachments

        Issue Links

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

          Activity

            People

              bartlomiejmoskal Bartlomiej Moskal
              rupert_d Rupert Daniel
              Votes:
              1 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes