Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Addressables fails to load on Web GL with Faster (Smaller) builds IL2CPP Code Generation

Discussion in '2021.2 Beta' started by vadimtihonyuk, Oct 22, 2021.

Thread Status:
Not open for further replies.
  1. vadimtihonyuk

    vadimtihonyuk

    Joined:
    Feb 26, 2018
    Posts:
    32
    Hi, I collide with issue after switched on beta (beause I really need astc texture compression for my project)

    On Unity 2021.2.b3 (before minimal stripping level was introduced) Im geting exception

    Not implemented: Class::FromIl2CppType
    app.framework.js.gz:2 MethodAccessException: Attempt to access method 'System.Collections.Generic.ICollection<UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation>.get_Count' on type '' failed.
    Code (JavaScript):
    1. Not implemented: Class::FromIl2CppType
    2. app.framework.js.gz:2 MethodAccessException: Attempt to access method 'System.Collections.Generic.ICollection<UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation>.get_Count' on type '' failed.
    After Unity 2021.2.b4 exception looks different
    Code (JavaScript):
    1. app.loader.js:1 exception thrown: RuntimeError: null function or function signature mismatch,RuntimeError: null function or function signature mismatch
    2.  
    3. Invoking error handler due to
    4. RuntimeError: null function or function signature mismatch
    The code which I want to run is very simple
    Code (CSharp):
    1. Addressables.InstantiateAsync("cube.prefab");
    cube.prefab are in Remote group

    With Faster Runtime IL2CPP Code Generation it works, but with Smaller Builds not.

    Any thoughts?
     
  2. vadimtihonyuk

    vadimtihonyuk

    Joined:
    Feb 26, 2018
    Posts:
    32
  3. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,126
    Hi @vadimtihonyuk,

    We've received your bug report about this issue and it has been assigned for processing.
     
    vadimtihonyuk likes this.
  4. vadimtihonyuk

    vadimtihonyuk

    Joined:
    Feb 26, 2018
    Posts:
    32
    Huge thanks!
     
  5. vadimtihonyuk

    vadimtihonyuk

    Joined:
    Feb 26, 2018
    Posts:
    32
Thread Status:
Not open for further replies.