Search Unity

Crash after UpdatedTransactions

Discussion in 'Unity IAP' started by vzlomvl, Feb 26, 2020.

  1. vzlomvl

    vzlomvl

    Joined:
    Jun 25, 2016
    Posts:
    43
    Hello @JeffDUnity3D
    Today I have found the crash in my app on IOS device with the Sandbox account after restore.
    Unity 2018.4.17
    Unity IAP 1.23.1
    IOS version 12.4.5
    Stacktrace:
    https://drive.google.com/open?id=1JwHqrOR-B5Nc90WuX2nNgKl0-asqU1Yd
    https://drive.google.com/open?id=1gHMW1i0p-FsjiefkQ3oO1oLzA6ZUpVfQ
    Memory Report:
    https://drive.google.com/open?id=1SO6GxjcmYdPsJyZqdEjmUMQHtVCIdvjM
    The last log which I see in the console is: UnityIAP: UpdatedTransactions
    If I restart the app it happens again. Even if I reinstall the games this happens again until I restart the device.
    Looks like Unity IAP SDK calling UpdatedTransactions which leed to 3-second freeze and crash by out of memory.
    Notes:
    I am using SubscriptionManager inside of the ProcessPurchase.
    Thanks.
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    We have not heard of this issue, it is likely limited to your code. Please provide the device logs as a text attachment here. Also please Debug.Log where this is occurring closest to your code, is it in ProcessPurchase or IAP Initialization for example. https://forum.unity.com/threads/how-to-capturing-device-logs-on-ios.529920/ Also, please share your code here as an attachment (text, not images). Also, please compare your code to the Sample IAP Project here https://forum.unity.com/threads/sample-iap-project.529555/
     
    vzlomvl likes this.