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
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"
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Input from the "Backslash" key is not detected in the Web Player when using the Japanese 106/109 key keyboard
- High "Total" value of the "TerrainManager.CullAllTerrains" when generating terrain
- UI Layout rebuild triggered by a rounding error when using TextMesh Pro
- Sprite Shape Corners and Edges are invisible when a closed Sprite Shape is used
- Script icon Gizmos cause lag/performance issues in Scene view even when the Scene Camera is not pointed at Gizmos
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a5
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0b6