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
- Profiler - Taking you to the wrong section when using 'show'
- Draw Renderers custom pass doesn't work with SSGI
- WebCamTexture does not set the requested resolution when used in WebGL
- Editor default Stylesheet/Matching Selector buttons in Debugger don't do anything
- Graphics.DrawMeshNow stops rendering Render Texture after a few frames when viewed in the Player
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a5
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0b6