Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
5.15.7
-
-
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
- relates to
-
QTBUG-99568 [REG: 5.15.6->5.15.8] Qt Purchasing doesn't restore purchased products.
- Closed