Search Unity

IL2CPP over-stripping? (2021.2.7f1)

Discussion in 'Editor & General Support' started by Eden1230, Jan 24, 2022.

  1. Eden1230

    Eden1230

    Joined:
    Feb 23, 2020
    Posts:
    10
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    This error is not related to managed code stripping, but instead means that there is a generic type which is used with generic arguments that IL2CPP has never seen before, so it cannot generate code for those arguments.

    In Unity 2022.1 we have eliminated this error - you can read about that feature here: https://blog.unity.com/technology/feature-preview-il2cpp-full-generic-sharing-in-unity-20221-beta

    In Unity 2021.2.7 is this a new error for your project, that did not happen in earlier versions of Unity? That might indicate a bug.
     
  3. Eden1230

    Eden1230

    Joined:
    Feb 23, 2020
    Posts:
    10
    Q1) How do I verify if the project works on previous versions?

    info1) Though I can confirm the error continues appearing in 2021.2.8f1.

    info2) I have verified that the mono2.0 code behaves as expected

    For source code, the issue tracking id is 1397474.
     
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    You would need to try it with older versions of Unity. I was kind of wondering if this project worked before, but stopped working when you upgraded the Unity version. If you don't have that information, that is fine.

    This is not surprising, because Mono is a JIT runtime, and is not subject to the same restrictions as an AOT runtime like IL2CPP.

    Thanks for the bug report!
     
  5. Eden1230

    Eden1230

    Joined:
    Feb 23, 2020
    Posts:
    10
    Answer1) I dont know if I will be able to test it out on previous versions, its a project I test new features with.
    Answer2) I have not build the project until now.

    Anyhow, does the bug occur on unity's own testing machine.

    Thanks for the support once more.
     
  6. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    I'm not aware that we have seen this in any of our tests - but there might be some new situation here.