itmk64
January 23, 2021, 6:51pm
1
I’m newbie in Unity (today installed) and I’m trying to go through first tutorial with Lego Microgame, and I come across to failure in creation of build in WebGL.
This is error message:
Exception: Failed building WebGL Player.
UnityEditor.WebGL.ProgramUtils.StartProgramChecked (System.Diagnostics.ProcessStartInfo p) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/ProgramUtils.cs:48)
UnityEditor.WebGL.WebGlBuildPostprocessor.EmscriptenLink (UnityEditor.Modules.BuildPostProcessArgs args, System.Boolean wasmBuild, System.String sourceFiles, System.String sourceFilesHash) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:445)
UnityEditor.WebGL.WebGlBuildPostprocessor.LinkBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:495)
UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:933)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at :0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at :0)
UnityEditor.BuildPipeline:BuildPlayer(BuildPlayerOptions)
Unity.Play.Publisher.Editor.PublisherBuildProcessor:OpenBuildGameDialog(BuildTarget) (at Library/PackageCache/com.unity.connect.share@4.0.3/Editor/PublisherBuildProcessor.cs:180)
Unity.Play.Publisher.Editor.PublisherWindow:OnWebGLBuildTargetSet() (at Library/PackageCache/com.unity.connect.share@4.0.3/Editor/PublisherWindow.cs:734)
Unity.Play.Publisher.Editor.PublisherWindow:OnCreateABuildClicked() (at Library/PackageCache/com.unity.connect.share@4.0.3/Editor/PublisherWindow.cs:509)
Unity.Play.Publisher.Editor.<>c__DisplayClass75_0:b__0() (at Library/PackageCache/com.unity.connect.share@4.0.3/Editor/PublisherWindow.cs:627)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Do you know what can be an issue here, and how to fix it?
Thanks in advance.
itmk64
i think the system.diagnostics namespace is not supported in WebGL.
and the same applies to System.IO btw…
itmk64
January 24, 2021, 2:13pm
3
Interesting, because I’m using the WebGL in the tutorial for publish of LEGO: Microgame and there is no other options, so to be honest I really don’t know what I’m doing wrong…
itmk64
January 24, 2021, 2:17pm
4
But I’m real noob, so I’ll Google more and figure it out
jukka_j
February 5, 2021, 12:41pm
5
Unfortunately that error message is missing the full log. Can you post full Editor.log for a failing build?
1 Like
I closed out of the editor and saved it somewhere other than the temp folder and tried it again and it worked
AmmarT
September 3, 2021, 11:27pm
7
I am having the same issue I don’t know what is the problem