Search Issue Tracker

Fixed in 2022.1.X

Fixed in 2021.2.X

Votes

4

Found in

2021.2.0b1

2022.1

Issue ID

1345412

Regression

Yes

[WebGL] Build fails with .emscripten permission errors

WebGL

-

How to reproduce:
1. Open an empty project
2. Select File/Build Settings and switch to WebGL build
3. Select Build and Run

Expected result: project is built and launched
Actual result: build fails

Reproducible with: 2021.2.0b1, 2021.2.0b3, 2022.1.0a2
Not reproducible with: 2018.4.36f1, 2019.4.29f1, 2020.3.14f1, 2021.1.14f1, 2021.2.0a21

Notes:
1. Workaround: Change the properties of the folder C:\Program Files\Unity\2021.2.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten and allow users to modify the folder
2. Reproducible on Windows only
3. Permission errors that appear in the Console:
- "Building C:\Program Files\Unity\Hub\Editor\2021.2.0b2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten-wrapper-2.0.19.bat failed with output:
Error opening for writing the file: C:\Program Files\Unity\Hub\Editor\2021.2.0b2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten-wrapper-2.0.19.bat, error: Permission denied"
- "Building C:\Program Files\Unity\Hub\Editor\2021.2.0b2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\.emscripten failed with output:
Error opening for writing the file: C:\Program Files\Unity\Hub\Editor\2021.2.0b2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\.emscripten, error: Permission denied"

  1. Resolution Note (fix version 2022.1):

    Fixed in: 2022.1.0a5

  2. Resolution Note (fix version 2021.2):

    Fixed in: 2021.2.0b6

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.