game-ci / game-ci/docker

Build fails for editor-ubuntu-2023.1.0f1-webgl-1.1.2 with URP

Open
#214 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Dockerfile
Stars
470
Forks
140
PR merge metrics
No merged PRs in 30d

Description

**Bug description**
When building the project ([Link](https://github.com/JohannesDeml/UnityWebGL-LoadingTest)) with Unity 2023.1.0f1 with urp ([Branch](https://github.com/JohannesDeml/UnityWebGL-LoadingTest/tree/2023.1-urp)) I get the following error:
```
emcc: error: '/opt/unity/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/llvm/wasm-ld @/tmp/emscripten_v1u3qz8c.rsp.utf-8' failed (received SIGKILL (-9))
```

The build works in CI when creating a development build, but not for normal builds (for both WebGL1 & 2). When building locally on a windows machine I don't have any errors, also when using the commandline to start the build the same way as in the action.

**How to reproduce**

1. Fork https://github.com/JohannesDeml/UnityWebGL-LoadingTest
2. Run action to get a unity license and set it in the secrets
3. Push the tag `2023.1.0f1-urp-webgl2` to the 2023.1-urp branch
4. A new build should be triggered by automation, this build will fail

-

**Expected behavior**

The build should finish successfully

**Additional details**

Full log from the action: [5_Build project.log](https://github.com/game-ci/docker/files/11775850/5_Build.project.log)
Full log from the local build that succeeded: [build-2023.1.0f1-urp-webgl2.log](https://github.com/game-ci/docker/files/11775854/build-2023.1.0f1-urp-webgl2.log)
Local build run through the following batch script:
```
@echo off

set UNITY_VERSION=2023.1.0f1
set TAG=%UNITY_VERSION%-urp-webgl2
set BUILD_NAME=%TAG%

echo "Building %BUILD_NAME%"
"C:\Program Files\Unity\%UNITY_VERSION%\Editor\Unity.exe" -quit -batchmode -logFile Builds\build-%BUILD_NAME%.log -projectPath "%~dp0" -executeMethod UnityBuilderAction.BuildScript.BuildWithCommandlineArgs -customParameters "-tag %TAG%" -buildTarget WebGL -customBuildName %BUILD_NAME% -customBuildPath "Builds\%BUILD_NAME%" -buildVersion "1.0.0" -androidVersionCode "1"
PAUSE
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.