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

[REG: 5.15.6->5.15.7] Qt Purchasing crashes on Android

    XMLWordPrintable

Details

    • Android
    • 2021wk46POAndroid&Mobile, 2021wk48POAndroid&Mobile

    Description

      When a Product with identifier and type are properly set, state of the product is Unknown and also the application crashes like this:

      F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x1 in tid 18201
      (qtMainLoopThrea)
      
      #00 pc 0000000000005670 /data/app/appid/lib/arm64/libQt5Purchasing_arm64-v8a.so
      (QInAppProduct::QInAppProduct(QString const&, QString const&, QString
      const&, QInAppProduct::ProductType, QString const&, QObject*)+216)
      

      I am guessing functions in QAndroidInAppPurchaseBackend blindly pass iterator from m_productTypeForPendingId to the QInAppProduct in release builds and that might be why it crashes like this. So the issue is probably related to the product not being found in m_productTypeForPendingId.

      However, the identifier used should be correct, and it has worked with older versions of Qt.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jani-korteniemi Jani Korteniemi
              poikelin Joni Poikelin
              Votes:
              10 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes