question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ubuntu WebGL Build Error

See original GitHub issue

Bug description

New project with one scene. No custom builds step. Builds locally in WebGL. Error in CI using v2.0-alpha-6

How to reproduce

runs-on: ubuntu-latest

uses: game-ci/unity-builder@v2.0-alpha-6 with: targetPlatform: WebGL unityVersion: 2020.1.1f1

Errors Out:

2021-01-25T19:40:50.6235448Z 
2021-01-25T19:40:50.6236214Z stdout:
2021-01-25T19:40:50.6237137Z Running il2cpp.exe in server GC mode.
2021-01-25T19:40:50.6238261Z Building build.bc with EmscriptenToolChain
2021-01-25T19:40:50.6239512Z 	Output directory: /github/workspace/Temp/StagingArea/Data/Native
2021-01-25T19:40:50.6240779Z 	Cache directory: /github/workspace/Library/il2cpp_cache
2021-01-25T19:40:50.6242934Z il2cpp.exe didn't catch exception: System.AggregateException: One or more errors occurred. (No such file or directory) (No such file or directory)
2021-01-25T19:40:50.6245157Z  ---> System.ComponentModel.Win32Exception (2): No such file or directory
2021-01-25T19:40:50.6248278Z    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)
2021-01-25T19:40:50.6251764Z    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
2021-01-25T19:40:50.6253395Z    at System.Diagnostics.Process.Start()
2021-01-25T19:40:50.6255364Z    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 329
2021-01-25T19:40:50.6258018Z    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 256
2021-01-25T19:40:50.6260708Z    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 277
2021-01-25T19:40:50.6264101Z    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 319
2021-01-25T19:40:50.6267657Z    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
2021-01-25T19:40:50.6269797Z    --- End of inner exception stack trace ---
2021-01-25T19:40:50.6271846Z    at Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T](D[] data, Func`2 action) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/ParallelFor.cs:line 95
2021-01-25T19:40:50.6275560Z    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 240
2021-01-25T19:40:50.6279401Z    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 135
2021-01-25T19:40:50.6282561Z    at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Compilation/CompilationDriver.cs:line 64
2021-01-25T19:40:50.6285412Z    at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Program.cs:line 86
2021-01-25T19:40:50.6287593Z    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Program.cs:line 71
2021-01-25T19:40:50.6289436Z    at il2cpp.Program.Main(String[] args) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Program.cs:line 36
2021-01-25T19:40:50.6291565Z  ---> (Inner Exception #1) System.ComponentModel.Win32Exception (2): No such file or directory
2021-01-25T19:40:50.6294781Z    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)
2021-01-25T19:40:50.6297932Z    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
2021-01-25T19:40:50.6299532Z    at System.Diagnostics.Process.Start()
2021-01-25T19:40:50.6301501Z    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 329
2021-01-25T19:40:50.6304236Z    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 256
2021-01-25T19:40:50.6306923Z    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 277
2021-01-25T19:40:50.6310305Z    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 319
2021-01-25T19:40:50.6314143Z    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<---
2021-01-25T19:40:50.6315603Z 
2021-01-25T19:40:50.6316310Z stderr:
2021-01-25T19:40:50.6317731Z Unhandled exception. System.AggregateException: One or more errors occurred. (No such file or directory) (No such file or directory)
2021-01-25T19:40:50.6319784Z  ---> System.ComponentModel.Win32Exception (2): No such file or directory
2021-01-25T19:40:50.6322910Z    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)
2021-01-25T19:40:50.6326073Z    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
2021-01-25T19:40:50.6327718Z    at System.Diagnostics.Process.Start()
2021-01-25T19:40:50.6329665Z    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 329
2021-01-25T19:40:50.6332449Z    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 256
2021-01-25T19:40:50.6335131Z    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 277
2021-01-25T19:40:50.6338501Z    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 319
2021-01-25T19:40:50.6342000Z    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
2021-01-25T19:40:50.6344166Z    --- End of inner exception stack trace ---
2021-01-25T19:40:50.6346187Z    at Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T](D[] data, Func`2 action) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/ParallelFor.cs:line 95
2021-01-25T19:40:50.6349915Z    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 240
2021-01-25T19:40:50.6353719Z    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 135
2021-01-25T19:40:50.6356853Z    at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Compilation/CompilationDriver.cs:line 64
2021-01-25T19:40:50.6359597Z    at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Program.cs:line 86
2021-01-25T19:40:50.6361780Z    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Program.cs:line 71
2021-01-25T19:40:50.6363680Z    at il2cpp.Program.Main(String[] args) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Program.cs:line 36
2021-01-25T19:40:50.6365640Z  ---> (Inner Exception #1) System.ComponentModel.Win32Exception (2): No such file or directory
2021-01-25T19:40:50.6368810Z    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)
2021-01-25T19:40:50.6372119Z    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
2021-01-25T19:40:50.6373736Z    at System.Diagnostics.Process.Start()
2021-01-25T19:40:50.6375717Z    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 329
2021-01-25T19:40:50.6378363Z    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 256
2021-01-25T19:40:50.6381037Z    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 277
2021-01-25T19:40:50.6384445Z    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 319
2021-01-25T19:40:50.6388231Z    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<---

Expected behavior

Build

Not sure why so many reference to Win32 or if this is normal to run il2cpp.exe while running on ubuntu.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
webbertakkencommented, Feb 15, 2021

Failed compression has been fixed in https://github.com/game-ci/docker/pull/77 and will be released in the next image version (0.10)The version of the actions that you have set up will automatically switch to that new version.

We’re working hard to make it happen and roll out new versions. Please allow a few more days.

0reactions
webbertakkencommented, Mar 1, 2021

This has been released in https://github.com/game-ci/docker/releases/tag/v0.10. The images should become available soon, and builder v2-alpha will automatically roll to the latest 0.x image.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug - [SOLVED] ubuntu webgl build fails on empty project
SOLUTION part 1 for error msg: /BeeSettings/offline/bee.exe] sudo apt-get -q ... Bug [SOLVED] ubuntu webgl build fails on empty project.
Read more >
WebGL Publishing Error on Ubuntu 20.04 and Unity
Does your path to the project contain any special characters ? I had this issue (on windows though) that my user name contained...
Read more >
[Linux] WebGL build always fails and throws a ... - Issue Tracker
How to reproduce: 1. Create and open a new project 2. Press Ctrl+Shift+B to open the "Build Settings" window 3. In the "Platform"...
Read more >
Error when building WebGl build on linux : r/Unity3D - Reddit
I'm using Unity on Linux and try to create a WebGl build for my game, but I get the following error message each...
Read more >
WebGL is not initializing properly? - Ask Ubuntu
prefer-native-gl false webgl.shader_validator true webgl.verbose true -- didnt work then I tried this - To Enable WebGL: 1. Type about:config in your browser...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found