Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Exception IL2CPP after upgrade to 2023.1

Discussion in 'Editor & General Support' started by PineTreeDev, Aug 15, 2023.

  1. PineTreeDev

    PineTreeDev

    Joined:
    Apr 22, 2019
    Posts:
    31
    Hello

    We were using unity 2021 for a project but we had several problems with multiple platform development and addressable packages which hindered our workflow, so we upgrade to 2023

    After solving some other issues, this exception came up while building to any IL2CPP target:

    Building worked fine before and this new error is only happening on my machine as of writing. We tested on a mac as well and it works, building successfully without changing any code

    I've also tried clearing build caches, Bee folder in library, rebuilding addressables, fully re-cloning project (since in some computers it's working without changing anything)

    Anyone has an idea how to go about solving this issue?
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,755
  3. PineTreeDev

    PineTreeDev

    Joined:
    Apr 22, 2019
    Posts:
    31
    Hello Josh,
    I can't send our project folder as a bug report, and don't really know what part of it it's causing to send a minimal example, is there something I can do in the bug report to help your team?

    I've read in some other posts of similar issues with il2cpp building when using generic interfaces, and that may be the case here but generating a new exception. The specific method delegate, where the build process fails, is a variable part of a generic type interface, which in turn uses that interface's type.
     
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,755
    I understand! It looks like the problem might be triggered by a specific assembly:

    Error: IL2CPP error for type 'FP.Web.Internals.PlayerRuntimeRestHistoryLogger/HeadersData' in assembly 'E:\Work\bzzzworld\Library\Bee\artifacts\Android\ManagedStripped\FP.Web.dll'

    Could you send that assembly, or try to make a smaller project that uses that assembly?
     
  5. PineTreeDev

    PineTreeDev

    Joined:
    Apr 22, 2019
    Posts:
    31
    Just sent the bug report, hopefully the project information and dll I sent is enough to pinpoint the bug!
     
    JoshPeterson likes this.