Search Unity

  1. Click here to see what's on sale for the "Best of Super Sale" on the Asset Store
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Unity WebGL IAP Out of bounds Error

Discussion in 'WebGL' started by mkramer_upjers, Oct 13, 2020.

  1. mkramer_upjers

    mkramer_upjers

    Joined:
    May 13, 2019
    Posts:
    1
    Hello,

    i am running into a weird WebGL/UnityIAP Problem which i can't figure out. My game starts like normal but as soon as i start to initiliaze the payment part it crashes in my newest builds. I tried several combinations of Unity 2019.4 LTS Versions and Unity In App Purchasing Version, higher that 2.0.

    Code (JavaScript):
    1. exception thrown: RuntimeError: memory access out of bounds,RuntimeError: memory access out of bounds
    2.     at __ZN16VirtFuncInvoker6IP65XmlNodeChangedEventArgs_t0376E69AE8B0ED655552CD4B073F3213AE414BDAP49XmlNode_t07D70045D843753E4FE8AFE40FD36244E6B6D7FBS3_S3_P8String_tS5_iE6InvokeEjP12Il2CppObjectS3_S3_S3_S5_S5_i (<anonymous>:wasm-function[51851]:0x10fd1bd)
    3.     at _Type_GetProperty_m724FAA955DCE10E0C46A9485BCEA32C1CE608130 (<anonymous>:wasm-function[79906]:0x1626c43)
    4.     at _StoreServiceInterface_GetNameProp_m53E9F05C2CF2EBB98BE782592C5131CF4F21A3B6 (<anonymous>:wasm-function[63768]:0x1325ffb)
    5.     at _StoreServiceInterface_GetName_m3131B7D92F063EDB5AE25E39D540B8898BDC7C81 (<anonymous>:wasm-function[63767]:0x1325fac)
    6.     at _GC_call_with_alloc_lock (<anonymous>:wasm-function[96667]:0x1997340)
    7.     at Object.dynCall_ii (blob:https://up-kast-stage1.upjers.com/6f197bf0-7583-4e48-b599-ec7cc7725bfc:27254:37)
    8.     at invoke_ii (blob:https://up-kast-stage1.upjers.com/6f197bf0-7583-4e48-b599-ec7cc7725bfc:17169:30)
    9.     at _UDP_get_Name_m5C1D80C8F6AF99FC37166A086E0800ECC85A4C41 (<anonymous>:wasm-function[63766]:0x1325e9e)
    10.     at _StandardPurchasingModule__cctor_m8694524CB38C12AD41511CC3508EEF0B7D1F31B8 (<anonymous>:wasm-function[63765]:0x1325dfe)
    11.     at __Z66RuntimeInvoker_FalseVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017PFvvEPK10MethodInfoPvPS4_ (<anonymous>:wasm-function[33618]:0xdaabeb)
    12.     at dynCall_iiiii (<anonymous>:wasm-function[97892]:0x19d6ddb)
    13.     at Object.dynCall_iiiii (blob:https://up-kast-stage1.upjers.com/6f197bf0-7583-4e48-b599-ec7cc7725bfc:27499:40)
    14.     at invoke_iiiii (blob:https://up-kast-stage1.upjers.com/6f197bf0-7583-4e48-b599-ec7cc7725bfc:17659:33)
    15.     at __ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException (<anonymous>:wasm-function[95150]:0x1962e98)
    16.     at __ZN6il2cpp2vm7Runtime9ClassInitEP11Il2CppClass (<anonymous>:wasm-function[95153]:0x1963057)
    17.     at __Z33il2cpp_codegen_runtime_class_initP11Il2CppClass (<anonymous>:wasm-function[97214]:0x19a882d)
    18.     at _PaymentModule_Initialize_mDB1C855D7758BAF12AA56BA48531F4D0CC226884 (<anonymous>:wasm-function[57016]:0x11ddaf6)
    19.     at __ZN23InterfaceActionInvoker06InvokeEjP11Il2CppClassP12Il2CppObject (<anonymous>:wasm-function[36243]:0xdefbf5)
    20.     at _PaymentManager_EverythingInitialized_m07D21EE2E5C641FEF5E0AFAD8155CEA9AD07D2F5 (<anonymous>:wasm-function[39030]:0xe66b67)
    21.     at _PaymentPurchaseCallback_Invoke_m353255323D0A9CFEF83168294D2B5C8121E4DF3F (<anonymous>:wasm-function[36915]:0xe0a37e)
    22.     at _StrongTinyMessageSubscription_1_Deliver_mE70C0290BE220F563EA7AB06B941CFCE63A52158_gshared (<anonymous>:wasm-function[76923]:0x159606d)
    23.     at __ZN23InterfaceActionInvoker1IP71ExtensionBuildingDataProvider_t2E586CF9F5F562DD079D21ADCFC8F40B85C75F02E6InvokeEjP11Il2CppClassP12Il2CppObjectS1_ (<anonymous>:wasm-function[36454]:0xdf77b0)
    24.     at _DefaultMessageProxy_Deliver_mC15DFD8FC7A262538B480BEC87414715112977F9 (<anonymous>:wasm-function[59827]:0x126d2f4)
    25.     at __ZN23InterfaceActionInvoker2IP12Il2CppObjectP52WebMessage_tAC206CB014F8C7BCAE7948CC1CB4BFDEE46A23E0E6InvokeEjP11Il2CppClassS1_S1_S3_ (<anonymous>:wasm-function[36440]:0xdf74bc)
    26.     at dynCall_viiiii (<anonymous>:wasm-function[98074]:0x19d8291)
    27.     at Object.dynCall_viiiii (blob:https://up-kast-stage1.upjers.com/6f197bf0-7583-4e48-b599-ec7cc7725bfc:28409:41)
    28.     at invoke_viiiii (blob:https://up-kast-stage1.upjers.com/6f197bf0-7583-4e48-b599-ec7cc7725bfc:19479:27)
    29.     at _MessageBus_PublishInternal_TisRuntimeObject_mC64A2DB4CA466607C7F165AA57F4F9F24ED6E513_gshared (<anonymous>:wasm-function[50645]:0x10d1e4e)
    30.     at _MessageBus_Publish_TisRuntimeObject_mF0C3D4311165772879DAE5CEAE276B430286CD1C_gshared (<anonymous>:wasm-function[50641]:0x10d19ae)
    31.     at __ZN30GenericInterfaceActionInvoker1IP54FocusMessage_t9CDA6AA873AD4E41902E955D4623D981E78C6091E6InvokeEPK10MethodInfoP12Il2CppObjectS1_ (<anonymous>:wasm-function[36491]:0xdf8af9)
    32.     at _ApplicationInitializer_TimedUpdate_m832108D320E8E710339705F2319CD5A45027D424 (<anonymous>:wasm-function[59511]:0x125e06f)
    33.     at __ZN21InterfaceFuncInvoker1IbfE6InvokeEjP11Il2CppClassP12Il2CppObjectf (<anonymous>:wasm-function[38392]:0xe48340)
    34.     at _ApplicationUpdater_Update_mCFDBECE266FBE1CB86F7FF073DECBFFCB0D37C8F (<anonymous>:wasm-function[59521]:0x125e4dd)
    35.     at __ZN23InterfaceActionInvoker1IfE6InvokeEjP11Il2CppClassP12Il2CppObjectf (<anonymous>:wasm-function[37031]:0xe0d4aa)
    36.     at _Bootstrap_Update_m7F9E249E7DA081B2261DEF048C9701EE3DDB764E (<anonymous>:wasm-function[38112]:0xe3cc06)
    37.     at __Z65RuntimeInvoker_TrueVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017PFvvEPK10MethodInfoPvPS4_ (<anonymous>:wasm-function[33617]:0xdaabd5)
    38.     at dynCall_iiiii (<anonymous>:wasm-function[97892]:0x19d6ddb)
    39.     at Object.dynCall_iiiii (blob:https://up-kast-stage1.upjers.com/6f197bf0-7583-4e48-b599-ec7cc7725bfc:27499:40)
    40.     at invoke_iiiii (blob:https://up-kast-stage1.upjers.com/6f197bf0-7583-4e48-b599-ec7cc7725bfc:17659:33)
    41.     at __ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException (<anonymous>:wasm-function[95150]:0x1962e98)
    42.     at _il2cpp_runtime_invoke (<anonymous>:wasm-function[93995]:0x193cac8)
    43.     at __Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb (<anonymous>:wasm-function[5920]:0x2358cd)
    44.     at __ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb (<anonymous>:wasm-function[5918]:0x235690)
    45.     at __ZN13MonoBehaviour16CallUpdateMethodEi (<anonymous>:wasm-function[12805]:0x49892a)
    46.     at __ZN13MonoBehaviour6UpdateEv (<anonymous>:wasm-function[12785]:0x49765e)
    47.     at __ZN20BaseBehaviourManager12CommonUpdateI16BehaviourManagerEEvv (<anonymous>:wasm-function[15287]:0x5b9bc6)
    48.     at __ZN16BehaviourManager6UpdateEv (<anonymous>:wasm-function[15292]:0x5ba384)
    49.     at __ZZ23InitPlayerLoopCallbacksvEN41UpdateScriptRunBehaviourUpdateRegistrator7ForwardEv (<anonymous>:wasm-function[13427]:0x4dc8c4)
    50.     at __Z17ExecutePlayerLoopP22NativePlayerLoopSystem (<anonymous>:wasm-function[12918]:0x4a2c18)
    51.     at __Z17ExecutePlayerLoopP22NativePlayerLoopSystem (<anonymous>:wasm-function[12918]:0x4a2c2d)


    In addition i have an error whenever i try to make an WebGL development Build. Telling me that Emscripten failed. However, i was able to "solve" that problem by running "PlayerSettings.WebGL.emscriptenArgs = "-s ERROR_ON_UNDEFINED_SYMBOLS=0";" before the build.

    Code (JavaScript):
    1. Failed running "C:/Program Files/Unity/Hub/Editor/2019.4.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe" -E "C:/Program Files/Unity/Hub/Editor/2019.4.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\Emscripten\emcc" "
     
    Last edited: Oct 13, 2020
    JuliaWeissenberger likes this.
  2. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    419
    Can you do a build that has Exceptions set to "Full" (either with or without stacktrace)? That may be able to improve the error message to better point to the root cause.
     
unityunity