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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a5
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0b6