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.

Discussion IL2CPP Development Build error UnityEngine.UIElementsModule.dll

Discussion in 'Editor & General Support' started by underhand, Dec 29, 2022.

  1. underhand

    underhand

    Joined:
    Aug 4, 2015
    Posts:
    1
    When I create a development build I have the follow error:

    D:\Unity\2021.3.13f1\Editor\Data\il2cpp\build\deploy\il2cpp.exe @Library\Bee\artifacts\rsp\16769135442202602990.rsp
    Error: IL2CPP error for type 'UnityEngine.UIElements.UIR.Implementation.UIRStylePainter/Entry' in assembly 'D:\Unity_Data\MUH\Library\Bee\artifacts\Android\ManagedStripped\UnityEngine.UIElementsModule.dll'
    System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
    at Unity.IL2CPP.CodeWriters.ChunkedMemoryStream.Seek(Int64 offset, SeekOrigin origin)
    at Unity.IL2CPP.CodeWriters.InMemoryGeneratedMethodCodeWriter.Write(IGeneratedMethodCodeStream other)
    at Unity.IL2CPP.SourceWriters.SourceWriterBase`2.FlushStream(GlobalWriteContext context, IGeneratedMethodCodeStream stream, NPath filePath)
    at Unity.IL2CPP.Contexts.Scheduling.Streams.FileLevelParallelStreamManager`3.WorkerWriteItemsToFile(WorkItemData`2 data)
    at Unity.IL2CPP.Contexts.Scheduling.PhaseWorkScheduler`1.WorkerLoop(Object data)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    No error when I build a release.
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,566