Search Unity

Bug with IAP Catalog, if you modify a script with this window open it crashes.

Discussion in 'Unity IAP' started by JustAnotherDude, Jan 8, 2020.

  1. JustAnotherDude

    JustAnotherDude

    Joined:
    Oct 28, 2013
    Posts:
    279
    As title says, this error is thrown hundreds of times and the window stops working, have to restart unity to bring it back.

    Code (CSharp):
    1. UnityException: get_unityVersion is not allowed to be called from a ScriptableObject constructor (or instance field initializer), call it in OnEnable instead. Called from ScriptableObject 'ProductCatalogEditor'.
    2. See "Script Serialization" page in the Unity Manual for further details.
    3. UnityEditor.Purchasing.UdpSynchronizationApi.CheckUdpAvailability () (at <9c5a6c83d4ce4fea836412d752fa7e99>:0)
    4. UnityEditor.Purchasing.ProductCatalogEditor..cctor () (at <9c5a6c83d4ce4fea836412d752fa7e99>:0)
    5. Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.Purchasing.ProductCatalogEditor' threw an exception.
    6.  
    Using package 2.0.6 and Unity 2019.2.17f1.
    Should I file a bug report?
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    It is an issue that we are aware of and working on. You'll want to close the catalog window after you've entered your products, there is no need to have it open after that.
     
  3. Starbox

    Starbox

    Joined:
    Sep 17, 2014
    Posts:
    467
    2.0.6, Unity 2019.2.15f1
    Same error spam, happened right after a popup signaling a new version of the Unity IAP in the Asset Store.
     
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Yes, just close the catalog window after you've entered your products.