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

Linux editor - webgl build fail - Win32Exception ?

Discussion in 'Linux' started by Deleted User, Jan 1, 2021.

  1. Deleted User

    Deleted User

    Guest

    Code (csharp):
    1. System.ComponentModel.Win32Exception (2): No such file or directory
    2.    at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
    3.    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    4.    at System.Diagnostics.Process.Start()
    5.    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 423
    6.    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 299
    7.    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 355
    8.    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 331
    9.    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/ParallelFor.cs:line 73
    10.  
    Odds on if I could start the editor from the command line (without the hub starting) - I'd be able to see what it was trying to run!

    I've got clang installed which pulls in llvm, also installed default-jre, mono-complete, libtinfo

    This was happening on Ubuntu LTS and after upgrading to 20.10 it still happens.
     
    Last edited by a moderator: Jan 1, 2021
  2. Deleted User

    Deleted User

    Guest

    forgot to mention this is with Unity 2021.1.01b
     
  3. tech_unity883

    tech_unity883

    Joined:
    Apr 23, 2021
    Posts:
    3
    i am getting the same issue in unity 2020.3.5f1
     
  4. tech_unity883

    tech_unity883

    Joined:
    Apr 23, 2021
    Posts:
    3
    I found the solution

    1) Install python2 (it should be run by typing python2 not python )
    2) pip install Brotli
     
  5. ambivalenzia

    ambivalenzia

    Joined:
    Nov 8, 2019
    Posts:
    1
    In Unity 2020.3.0f1 on Linux Mint 20 it worked when I installed python2, but installing Brotli as Compression Format did not work, unfortunately. For the time being I disabled Compression Format in the Player Settings so I can at least preview the build in firefox.
     
  6. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,067
    for 2021.2 this should be fixed in the current alpha