Crash on RestoreTransactions

Hi there! I’am using latest Unity IAP 1.22.0 and when i attempted run RestoreTransactions method on my Pixel 3a it crashes. But if i use Debug build, it does not crash. Here the crashalytics report

Fatal Exception: java.lang.Error: FATAL EXCEPTION [UnityMain]
Unity version     : 2019.2.8f1
Device model      : Google Pixel 3a
Device fingerprint: google/sargo/sargo:10/QP1A.190711.020.C3/5869620:user/release-keys
Caused by java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
Build fingerprint: 'google/sargo/sargo:10/QP1A.190711.020.C3/5869620:user/release-keys'
Revision: 'MP1.0'
pid: 22899, tid: 23026, name: pool-7-thread-1  >>> com.teq.guitarjam <<<
    r0 00000000  r1 00000000  r2 00000001  r3 b2937d10
    r4 b0a39110  r5 b2937d10  r6 00000000  r7 00000000
    r8 00000002  r9 00000000  sl b2937d10  fp 00000000
    ip bdb78838  sp a2e49bf8  lr bd2219f5  pc bd2219f4  cpsr ae48c300

       at libunity.001619f4()
       at libunity.00162e47()
       at libunity.00162fb1()
       at libunity.001ee893()
       at libil2cpp.015afbcc()
       at libil2cpp.00350f78()
       at libil2cpp.0044f774()

Solved. I should not use Debug.IsDebugBuild in OnTransactionRestored callback.

1 Like