Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Crash on RestoreTransactions

Discussion in 'Unity IAP' started by justtime, Oct 9, 2019.

  1. justtime

    justtime

    Joined:
    Oct 6, 2013
    Posts:
    424
    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
    Code (CSharp):
    1. Fatal Exception: java.lang.Error: FATAL EXCEPTION [UnityMain]
    2. Unity version     : 2019.2.8f1
    3. Device model      : Google Pixel 3a
    4. Device fingerprint: google/sargo/sargo:10/QP1A.190711.020.C3/5869620:user/release-keys
    Code (CSharp):
    1. Caused by java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
    2. Build fingerprint: 'google/sargo/sargo:10/QP1A.190711.020.C3/5869620:user/release-keys'
    3. Revision: 'MP1.0'
    4. pid: 22899, tid: 23026, name: pool-7-thread-1  >>> com.teq.guitarjam <<<
    5.     r0 00000000  r1 00000000  r2 00000001  r3 b2937d10
    6.     r4 b0a39110  r5 b2937d10  r6 00000000  r7 00000000
    7.     r8 00000002  r9 00000000  sl b2937d10  fp 00000000
    8.     ip bdb78838  sp a2e49bf8  lr bd2219f5  pc bd2219f4  cpsr ae48c300
    9.  
    10.        at libunity.001619f4()
    11.        at libunity.00162e47()
    12.        at libunity.00162fb1()
    13.        at libunity.001ee893()
    14.        at libil2cpp.015afbcc()
    15.        at libil2cpp.00350f78()
    16.        at libil2cpp.0044f774()
     
    Last edited: Oct 9, 2019
  2. justtime

    justtime

    Joined:
    Oct 6, 2013
    Posts:
    424
    Solved. I should not use Debug.IsDebugBuild in OnTransactionRestored callback.
     
    JeffDUnity3D likes this.