Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Question Build Tiny 0.31.0 for Web with Github Actions on Linux

Discussion in 'Project Tiny' started by NagaChiang, Nov 19, 2020.

  1. NagaChiang

    NagaChiang

    Joined:
    Sep 17, 2020
    Posts:
    13
    it's built with command line:
    Code (JavaScript):
    1. /opt/Unity/Editor/Unity -batchmode -nographics -logfile /dev/stdout -quit -projectPath '.' -username ${{ secrets.UNITY_EMAIL }} -password ${{ secrets.UNITY_PASSWORD }} -serial ${{ secrets.UNITY_SERIAL }} -executeMethod Timespawn.TinyRogue.Editor.CI.BuildUtils.CommandBuild ${{ matrix.buildConfiguration }}
    And the executed method would do:
    Code (CSharp):
    1. BuildResult buildResult = buildConfig.Build();
    2. buildResult.LogResult();
    The build log said:
    Code (JavaScript):
    1. DisplayProgressbar: Building Web-Wasm
    2. DisplayProgressbar: Building Web-Wasm (Step 1 of 4)
    3. CreateDirectory '' failed:  (current dir: )
    4. CreateDirectory '' failed:  (current dir: )
    Then it stuck literally forever with no further log at all. I cancelled it after 30 mins. I have no idea about this error message.

    I checked the "BuildConfiguration", the "Output Build Directory" is still "Builds/Wasm".

    The log also contained lots of warnings about the conditional guard, but I believed those were not the reason why the build failed:
    Code (JavaScript):
    1. Burst warning BC1370: An exception was thrown from a function without the correct [Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")] guard. Exceptions only work in the editor and so should be only thrown in a function protected by this guard
    Manifest.json:
    Code (JavaScript):
    1. {
    2.   "dependencies": {
    3.     "com.timespawn.entitytween": "https://github.com/NagaChiang/entity-tween.git#develop",
    4.     "com.unity.2d.entities": "0.31.0-preview.3",
    5.     "com.unity.2d.sprite": "1.0.0",
    6.     "com.unity.2d.tilemap": "1.0.0",
    7.     "com.unity.collab-proxy": "1.3.9",
    8.     "com.unity.ide.rider": "1.2.1",
    9.     "com.unity.ide.visualstudio": "2.0.3",
    10.     "com.unity.ide.vscode": "1.2.2",
    11.     "com.unity.test-framework": "1.1.18",
    12.     "com.unity.textmeshpro": "3.0.1",
    13.     "com.unity.timeline": "1.3.2",
    14.     "com.unity.tiny.all": "0.31.0-preview.26",
    15.     "com.unity.ugui": "1.0.0",
    16.     "com.unity.modules.ai": "1.0.0",
    17.     "com.unity.modules.androidjni": "1.0.0",
    18.     "com.unity.modules.animation": "1.0.0",
    19.     "com.unity.modules.assetbundle": "1.0.0",
    20.     "com.unity.modules.audio": "1.0.0",
    21.     "com.unity.modules.cloth": "1.0.0",
    22.     "com.unity.modules.director": "1.0.0",
    23.     "com.unity.modules.imageconversion": "1.0.0",
    24.     "com.unity.modules.imgui": "1.0.0",
    25.     "com.unity.modules.jsonserialize": "1.0.0",
    26.     "com.unity.modules.particlesystem": "1.0.0",
    27.     "com.unity.modules.physics": "1.0.0",
    28.     "com.unity.modules.physics2d": "1.0.0",
    29.     "com.unity.modules.screencapture": "1.0.0",
    30.     "com.unity.modules.terrain": "1.0.0",
    31.     "com.unity.modules.terrainphysics": "1.0.0",
    32.     "com.unity.modules.tilemap": "1.0.0",
    33.     "com.unity.modules.ui": "1.0.0",
    34.     "com.unity.modules.uielements": "1.0.0",
    35.     "com.unity.modules.umbra": "1.0.0",
    36.     "com.unity.modules.unityanalytics": "1.0.0",
    37.     "com.unity.modules.unitywebrequest": "1.0.0",
    38.     "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    39.     "com.unity.modules.unitywebrequestaudio": "1.0.0",
    40.     "com.unity.modules.unitywebrequesttexture": "1.0.0",
    41.     "com.unity.modules.unitywebrequestwww": "1.0.0",
    42.     "com.unity.modules.vehicles": "1.0.0",
    43.     "com.unity.modules.video": "1.0.0",
    44.     "com.unity.modules.vr": "1.0.0",
    45.     "com.unity.modules.wind": "1.0.0",
    46.     "com.unity.modules.xr": "1.0.0"
    47.   }
    48. }
    The job ran on "ubuntu-latest" with image "gableroux/unity3d:2020.1.12f1".

    I know maybe it's kind of early to do CI with Tiny when there are other features with higher priority. Just want to see if anyone has any clue about this issue. Thanks.
     
    Last edited: Nov 19, 2020
    cultureulterior likes this.
  2. AbdulAlgharbi

    AbdulAlgharbi

    Unity Technologies

    Joined:
    Jul 27, 2018
    Posts:
    319
    did you install the required libs before running the job?
    Can you share the editor logs?
     
  3. NagaChiang

    NagaChiang

    Joined:
    Sep 17, 2020
    Posts:
    13
    Hi AbdulAlgharbi,

    Thanks for the help! The log is attached. It's too huge so I didn't provide.

    It looks like the package manager had worked properly to resolve the dependency.

    Forgot to mention that, the executed method "CommandBuild()" has been tested on my local machine (windows) and it succeeded. I guess it has something to do with the linux version Unity editor?

    Besides, do you know where the log came from:

    Code (CSharp):
    1. CreateDirectory '' failed:  (current dir: )
    Maybe I would know the next step for debugging if I figure it out.

    Thanks!

    Best,
    Naga
     

    Attached Files:

  4. AbdulAlgharbi

    AbdulAlgharbi

    Unity Technologies

    Joined:
    Jul 27, 2018
    Posts:
    319
    I haven't seen this error before tbh
    but it's failing while converting the scene
    I see a bunch of exceptions in the logs
    Have you tried accessing the VM via remote desktop?
    or maybe try your project on a physical Linux machine and see if it can build manually first
     
    tonialatalo likes this.
  5. NagaChiang

    NagaChiang

    Joined:
    Sep 17, 2020
    Posts:
    13
    Yeah you're right maybe I should try on a physical Linux machine to see if I have any luck. I would consider if it's worth the effort though. I'll report back here if I have resolved it. Thank you for the help!
     
    AbdulAlgharbi and tonialatalo like this.