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
- Crash on PrepareDrawShadowsCommandStep1 when entering the Play Mode in a specific project
- Physics Layer Collision Matrix's Layer names, checkboxes and hover highlights become misaligned when the Editor's UI Scaling gets changed
- Light/shadow information on an edge of a Terrain tile creates a seam with an adjacent Terrain tile when baking a LightMap
- "Missing types referenced from component UniversalRenderPipelineGlobalSettings on game object UniversalRenderPipelineGlobalSettings..." warning is thrown after switching the Platform to tvOS
- “Metal: Error creating pipeline state (Universal Render Pipeline/2D/Sprite-Lit-Default): Vertex attribute BLENDINDICES0(5) of type uint4 cannot be read using MTLAttributeFormatFloat2 (null)“ when setting GPU Skinning to GPU after opening the project
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a5
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0b6