Search Unity

Troubleshooting neverending il2cpp builds

Discussion in 'Windows' started by Carpet_Head, Feb 19, 2018.

  1. Carpet_Head

    Carpet_Head

    Joined:
    Nov 27, 2014
    Posts:
    258
    We are trying to build our application for the UWP. There are a huge amount of missing and incompatible bits of API with the .Net Standard/mono system, so we are looking to use il2cpp

    The issue is the build does not complete, even after 12+ hours.

    Are there any tips or directions we can move to start to resolve these build issues?
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,679
    Let's start with your Unity version. Which one are you on? We have had some fixes recently that addressed issues like this.
     
  3. Carpet_Head

    Carpet_Head

    Joined:
    Nov 27, 2014
    Posts:
    258
    I've tried 2017.3.1f1,2017.3.1p1 and 2018.1.0b7
     
    Last edited: Feb 19, 2018
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,679
    Can we get a bug report on this?
     
  5. Carpet_Head

    Carpet_Head

    Joined:
    Nov 27, 2014
    Posts:
    258
    I'm a bit hesitant to upload our entire codebase to Unity, I guess I will play around and see if we can find some kind of repro case but that could be really hard to track down
     
  6. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,435
    previously reported this issue,
    https://forum.unity.com/threads/il2cpp-building-errors-on-unity-5-4-0f3.423577/#post-2947886

    but it was closed as by design..
    https://issuetracker.unity3d.com/is...f-specific-project-takes-3-5x-longer-to-build

    tested the same project in 2017.2.1p3, still takes pretty long time compared to mono..

    *the project was simply this plugin, try compile to android with il2cpp: https://www.assetstore.unity3d.com/en/#!/content/645

    so i'd guess its some dll plugin in the project..
     
  7. Carpet_Head

    Carpet_Head

    Joined:
    Nov 27, 2014
    Posts:
    258
    This is a separate issue - the build literally never completes.

    I managed to get a repro case. It is the Leap Motion plugin, please check bug 1004743

    in 2018.1 this causes il2cpp builds to fail on windows standalone so it is a pain there too. I have got in touch with the leap motion team about this issue too.
     
    Last edited: Feb 21, 2018
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,679
    That was closed by design because:

    * First build will always take longer, because following builds will use incremental building;
    * The issue on android taking longer than webgl was because android compiles for both ARM and Intel architectures.

    Thanks, we will take a look.