Build freeze on 5.4

Im building WebGL, but its been stuck at “Native Compile to JS” for over 50 minutes.

I have a pretty decent computer 24 GB RAM, i7 2.6G 64-bit Win 8.1, with CPU cores all over the place.

I think these people got nothing to do so they invent this f&^%ing WebGL to keep their jobs.

I had to force quit Unity, disable Develpment build and try again, this is the result:

IOException: Sharing violation on path C:/UnityProjects/WebGLIsland/Assets/…/Temp/EmscriptenTemp\tmppxqej3.cl.js.js
System.IO.File.Delete (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:179)
System.IO.Directory.RecursiveDelete (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:195)
System.IO.Directory.Delete (System.String path, Boolean recursive) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:205)
UnityEditor.WebGL.Il2Cpp.EmscriptenCompiler.CleanupAndCreateEmscriptenDirs () (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/Il2Cpp/EmscriptenCompiler.cs:33)
UnityEditor.WebGL.WebGlBuildPostprocessor.ModifyIl2CppOutputDirBeforeCompile (System.String outputDir) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:457)
UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean developmentBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:139)
UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:373)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:176)
UnityEditor.HostView:OnGUI()

This error probably means that a some process is left around holding on the files after you quit Unity. You may want to try restarted if you haven’t done so already.

Anyone else has Win 8.1 here?

The build freeze only seems to happen when development build is checked, if i uncheck that it builds.

I have same problem in Unity 5.4.3p4. Freeze on “Native Compile to JS”.

My problem with Game Analytics 3.8.9.

After deleting these files, the project compiled successfully:
Plugins/WebGL/GameAnalytics.jslib
Plugins/WebGL/GameAnalyticsUnity.jslib

The old version of Game Analytics had no such problems (with files GameAnalytics.WebGL.dll, HandleIO.jslib, Mono.Data.Sqlite.dll, sqlite3.c, sqlite3.h).

The issue concerning GameAnalytics has been fixed in 3.9.1. The native libs extension needed to change as well… The error was related to compilation order.

1 Like

Unfortunatelly problem still exists in GA 3.9.1 with Unity 5.5.1f1 but it freezes, the same way as Nolex case, on: Converting managed assemblies to C++ when building for WebGL

2941508--217699--GAbuilderror.png

Disabling or removing Game Analytics resolves build problems.

any chance you could submit a bug report with repro project?

Problem fixed.
After manual update of GA to v3.9.1 I overlooked that there were two files in Assets\Plugins\WebGL:
GameAnalytics.jslib and GameAnalytics.jspre.
Delete the first one (.jslib) and it works now :wink:

If you are updating from 3.8.9 or from any older version to 3.9.1 and above you need to make sure you perform a clean import (as per how the documentation generally recommends) to make sure unused old files will be deleted from the previous version of the package. Delete the GameAnalytics previous files (Assets/GameAnalytics, Assets/Plugins and Assets/Gizmos)

I’ll leave here a handy link to our GameAnalytics Unity SDK GitHub repository.