Hello,
I hope I did not miss it in search
We have a problem with building our upcoming games (2 of them) using Command Line Interface. When using the very same build command from editor everything works fine
We tried it on 2 different PCs with 2019.4.16 and 2019.4.18 and they receive the same error. This one is from TeamCity build chain, but it looks the same (sans paths) on my local machine. Second game results in exactly identical issue and again builds just fine from editor itself. Android Builds also build just fine from CLI, it’s just WebGL that is causing headache. New/empty WebGL projects build fine. So it’s not an issue with machines or Unity installation itself
I am removing parts of the pathnames for clarity
[UNITY] → Unity Install Location \ WebGLSupport\BuildTools
— code follows (super long lines, was breaking code tags) —
Filename: “[UNITY]\Emscripten_Win\python\2.7.5.3_64bit\python.exe”
Arguments: -E “[UNITY]\Emscripten\emcc”
@“D:\AgentUnity1\work\37c533f1543ab8a2\Assets..\Temp\emcc_arguments.resp”
index: -1
Failed running “[UNITY]\Emscripten_Win\python\2.7.5.3_64bit\python.exe” -E
“C[UNITY]\Emscripten\emcc”
@“D:\AgentUnity1\work\37c533f1543ab8a2\Assets..\Temp\emcc_arguments.resp”
stdout:
stderr:Traceback (most recent call last): File “[UNITY]\Emscripten\emcc.py”, line 3063, in sys.exit(run()) File “[UNITY]\Emscripten\emcc.py”, line 1632, in run extra_files_to_link += system_libs.calculate([f for , f in sorted(temp_files)] + extra_files_to_link, in_temp, stdout=None, stderr_=None, forced=forced_stdlibs) File “[UNITY]\Emscripten\tools\system_libs.py”, line 520, in calculate symbolses = shared.Building.parallel_llvm_nm(list(map(os.path.abspath, temp_files)))
File “[UNITY]\Emscripten\tools\shared.py”, line 1844, in parallel_llvm_nm object_contents = pool.map(g_llvm_nm_uncached, files)
File “[UNITY]\Emscripten_Win\python\2.7.5.3_64bit\lib\multiprocessing\pool.py”, line 250, in map return self.map_async(func, iterable, chunksize).get()
File “[UNITY]\Emscripten_Win\python\2.7.5.3_64bit\lib\multiprocessing\pool.py”, line 554, in get raise self._valueWindowsError: [Error 6] The handle is invalid
Overall: [Error 6] The handle is invalid
The command used was rather simple, just project path, execute method and the standard “-quit -nographics -batchmode -buildTarget WebGL”
We spent quite some time on Google looking for some suggestions, but things we found (like removing jslibs from project) did not help
Full log is >8 MB and contains things that we cant show due to NDA, but here’s a redacted part starting with Emscripten linking process:
https://imdev.pl/share/6c84886a-8ae3-491d-b8ad-ea23c8f26710/buildlog_webgl_dev.txt
We will be very helpful for any help here