Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Playable Ads with Unity Tiny and file size problem

Discussion in 'Project Tiny' started by zxcv2008a, Jan 29, 2021.

  1. zxcv2008a

    zxcv2008a

    Joined:
    Jan 21, 2021
    Posts:
    2
    Currently I'm working on creating Playable Ads using tiny. I have one main problem which is the size of both ASMjs and Wasm. I found the option "Minify HTML File" to be working completly fine, But the option "Minify Output With Closure" is not working and giving me an Error. The file size requirements for Playable Ads for Facebook to be below 2MB, and Google is 1MB maximum.

    Even with almost no Assets the file size is around 2.5 MB.

    after zipping it it might be smaller but still the validator for both platforms measure the file size after unzipping.

    P.S. The option "Minify Output With Closure" gives me the following error:

    Build Wasm failed after 39.59s.
    emcc:WARNING: --llvm-lto ignored when using llvm backend
    wasm-ld: warning: function signature mismatch: _ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE7seekposENS_4fposI11__mbstate_tEEj
    >>> defined as () -> void in C:\\


    and ends with:

    \\google-closure-compiler.cmd'] --version") did not execute properly!
    *** Bee build failed (27.01 seconds), 5 items updated, 647 evaluated

    UnityEngine.Debug:LogError(Object, Object)
    Unity.Build.ResultBase:LogResult() (at Library/PackageCache/com.unity.platforms@0.10.0-preview.10/Editor/Unity.Build/ResultBase.cs:65)
    Unity.Build.Editor.<>c:<.cctor>b__34_1(BuildConfiguration) (at Library/PackageCache/com.unity.platforms@0.10.0-preview.10/Editor/Unity.Build.Editor/BuildConfigurationInspector.cs:48)
    Unity.Build.Editor.<>c__DisplayClass30_0:<Build>b__1() (at Library/PackageCache/com.unity.platforms@0.10.0-preview.10/Editor/Unity.Build.Editor/BuildConfigurationInspector.cs:128)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
     
  2. DMinsky

    DMinsky

    Joined:
    May 20, 2012
    Posts:
    30
    Yep, same here. I'm using Unity 2020.1.17f1 and 0.32.0-preview.55 Tiny.
    Basically "Output Single HTML File" and "Minify Output With Closure" are not compatiple with each other and Wasm/Asmjs builds. You could build a single HTML file without Closure Minify, or Minify with Closure but with multiple file configuration but not both simultaneously because of this build error:

    Code (CSharp):
    1. Build Wasm failed after 57.99s.
    2. emcc:WARNING: --llvm-lto ignored when using llvm backend
    3. wasm-ld: warning: function signature mismatch: _ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE7seekposENS_4fposI11__mbstate_tEEj
    4. >>> defined as () -> void in /Users/dminsky/Projects/ProjectTinySamples/Tiny3D/Library/DotsRuntimeBuild/artifacts/emscripten-cache-1.39.17/wasm-lto/libc++-noexcept.a(ios.o)
    5. >>> defined as (i32, i32, i32, i32) -> void in lto.tmp
    6. wasm-ld: warning: function signature mismatch: _ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE7seekoffExNS_8ios_base7seekdirEj
    7. >>> defined as () -> void in /Users/dminsky/Projects/ProjectTinySamples/Tiny3D/Library/DotsRuntimeBuild/artifacts/emscripten-cache-1.39.17/wasm-lto/libc++-noexcept.a(ios.o)
    8. >>> defined as (i32, i32, i64, i32, i32) -> void in lto.tmp
    9. building:ERROR: Closure compiler run failed:
    10. building:ERROR: /var/folders/xm/nz172dtj0dddsbbzx0whjn040000gn/T/emscripten_temp_SFK0DZ/Tiny3D.wasm.o.js.pp.js.jso.js.jso.js.jso.js.jso.js:13: ERROR - [JSC_VAR_MULTIPLY_DECLARED_ERROR] Variable i declared more than once. First occurrence: /var/folders/xm/nz172dtj0dddsbbzx0whjn040000gn/T/emscripten_temp_SFK0DZ/Tiny3D.wasm.o.js.pp.js.jso.js.jso.js.jso.js.jso.js
    11. */var DYNAMICTOP_PTR=848336;var wasmMaximumMemory=32768;var wasmMemory=new WebAssembly.Memory({"initial":2048,"maximum":wasmMaximumMemory});var buffer=wasmMemory.buffer;var wasmTable=new WebAssembly.Table({"initial":5640,"maximum":5640+0,"element":"anyfunc"});var HEAP8,HEAP16,HEAP32,HEAPU8,HEAPU16,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(b){buffer=b;HEAP8=new Int8Array(b);HEAP16=new Int16Array(b);HEAP32=new Int32Array(b);HEAPU8=new Uint8Array(b);HEAPU16=new Uint16Array(b);HEAPU32=new Uint32Array(b);HEAPF32=new Float32Array(b);HEAPF64=new Float64Array(b)}updateGlobalBufferAndViews(buffer);HEAP32[DYNAMICTOP_PTR>>2]=1372800;/** @param {number|boolean=} ignore */function unSign(value,bits,ignore){if(value>=0){return value}return bits<=32?2*Math.abs(1<<(bits-1))+value:Math.pow(2,bits)+value}/** @param {number|boolean=} ignore */function reSign(value,bits,ignore){if(value<=0){return value}var half=bits<=32?Math.abs(1<<(bits-1)):Math.pow(2,bits-1);if(value>=half&&(bits<=32||value>half)){value=-2*half+value}return value}var ASM_CONSTS={24201:function(){debugger}};function _emscripten_asm_const_iii(code,sigPtr,argbuf){var args=readAsmConstArgs(sigPtr,argbuf);return ASM_CONSTS[code].apply(null,args)}function setErrNo(value){return 0}var PATH={splitPath:function(filename){var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return splitPathRe.exec(filename).slice(1)},normalizeArray:function(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up;up--){parts.unshift("..")}}return parts},normalize:function(path){var isAbsolute=path.charAt(0)==="/",trailingSlash=path.substr(-1)==="/";path=PATH.normalizeArray(path.split("/").filter(function(p){return!!p}),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path},dirname:function(path){var result=PATH.splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir},basename:function(path){if(path==="/")return"/";var lastSlash=path.lastIndexOf("/");if(lastSlash===-1)return path;return path.substr(lastSlash+1)},extname:function(path){return PATH.splitPath(path)[3]},join:function(){var paths=Array.prototype.slice.call(arguments,0);return PATH.normalize(paths.join("/"))},join2:function(l,r){return PATH.normalize(l+"/"+r)}};var SYSCALLS={mappings:{},buffers:[null,[],[]],printChar:function(stream,curr){var buffer=SYSCALLS.buffers[stream];if(curr===0||curr===10){(stream===1?out:err)(UTF8ArrayToString(buffer,0));buffer.length=0}else{buffer.push(curr)}},varargs:undefined,get:function(){SYSCALLS.varargs+=4;var ret=HEAP32[(((SYSCALLS.varargs)-(4))>>2)];return ret},getStr:function(ptr){var ret=UTF8ToString(ptr);return ret},get64:function(low,high){return low}};function ___sys_fcntl64(fd,cmd,varargs){SYSCALLS.varargs=varargs;return 0}function ___sys_ioctl(fd,op,varargs){SYSCALLS.varargs=varargs;return 0}function ___sys_open(path,flags,varargs){SYSCALLS.varargs=varargs}function _abort(){throw"abort"}function _clock(){if(_clock.start===undefined)_clock.start=Date.now();return((Date.now()-_clock.start)*(1e6/1e3))|0}var _emscripten_get_now;_emscripten_get_now=function(){return performance.now()};function __webgl_enable_ANGLE_instanced_arrays(ctx){var ext=ctx.getExtension("ANGLE_instanced_arrays");if(ext){ctx["vertexAttribDivisor"]=function(index,divisor){ext["vertexAttribDivisorANGLE"](index,divisor)};ctx["drawArraysInstanced"]=function(mode,first,count,primcount){ext["drawArraysInstancedANGLE"](mode,first,count,primcount)};ctx["drawElementsInstanced"]=function(mode,count,type,indices,primcount){ext["drawElementsInstancedANGLE"](mode,count,type,indices,primcount)};return 1}}function __webgl_enable_OES_vertex_array_object(ctx){var ext=ctx.getExtension("OES_vertex_array_object");if(ext){ctx["createVertexArray"]=function(){return ext["createVertexArrayOES"]()};ctx["deleteVertexArray"]=function(vao){ext["deleteVertexArrayOES"](vao)};ctx["bindVertexArray"]=function(vao){ext["bindVertexArrayOES"](vao)};ctx["isVertexArray"]=function(vao){return ext["isVertexArrayOES"](vao)};return 1}}function __webgl_enable_WEBGL_draw_buffers(ctx){var ext=ctx.getExtension("WEBGL_draw_buffers");if(ext){ctx["drawBuffers"]=function(n,bufs){ext["drawBuffersWEBGL"](n,bufs)};return 1}}function __webgl_enable_WEBGL_draw_instanced_base_vertex_base_instance(ctx){return!!(ctx.dibvbi=ctx.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"))}var GL={counter:1,buffers:[],programs:[],framebuffers:[],renderbuffers:[],textures:[],uniforms:[],shaders:[],vaos:[],contexts:[],offscreenCanvases:{},timerQueriesEXT:[],queries:[],samplers:[],transformFeedbacks:[],syncs:[],programInfos:{},stringCache:{},stringiCache:{},unpackAlignment:4,recordError:function recordError(errorCode){if(!GL.lastError){GL.lastError=errorCode}},getNewId:function(table){var ret=GL.counter++;for(var i=table.length;i<ret;i++){table[i]=null}return ret},getSource:function(shader,count,string,length){var source="";for(var i=0;i<count;++i){var len=length?HEAP32[(((length)+(i*4))>>2)]:-1;source+=UTF8ToString(HEAP32[(((string)+(i*4))>>2)],len<0?undefined:len)}return source},createContext:function(canvas,webGLContextAttributes){var ctx=(webGLContextAttributes.majorVersion>1)?canvas.getContext("webgl2",webGLContextAttributes):(canvas.getContext("webgl",webGLContextAttributes));if(!ctx)return 0;var handle=GL.registerContext(ctx,webGLContextAttributes);function disableHalfFloatExtensionIfBroken(ctx){var t=ctx.createTexture();ctx.bindTexture(3553,/*GL_TEXTURE_2D*/t);for(var i=0;i<8&&ctx.getError();++i);var ext=ctx.getExtension("OES_texture_half_float");if(!ext)return;ctx.texImage2D(3553,/*GL_TEXTURE_2D*/0,6408,/*GL_RGBA*/1,1,0,6408,/*GL_RGBA*/36193,/*HALF_FLOAT_OES*/new Uint16Array(4));var broken=ctx.getError();ctx.bindTexture(3553,/*GL_TEXTURE_2D*/null);ctx.deleteTexture(t);if(broken){ctx.realGetSupportedExtensions=ctx.getSupportedExtensions;ctx.getSupportedExtensions=function(){return(this.realGetSupportedExtensions()||[]).filter(function(ext){return ext.indexOf("texture_half_float")==-1})}}}disableHalfFloatExtensionIfBroken(ctx);return handle},registerContext:function(ctx,webGLContextAttributes){var handle=GL.getNewId(GL.contexts);var context={handle:handle,attributes:webGLContextAttributes,version:webGLContextAttributes.majorVersion,GLctx:ctx};if(ctx.canvas)ctx.canvas.GLctxObject=context;GL.contexts[handle]=context;if(typeof webGLContextAttributes.enableExtensionsByDefault==="undefined"||webGLContextAttributes.enableExtensionsByDefault){GL.initExtensions(context)}return handle},makeContextCurrent:function(contextHandle){GL.currentContext=GL.contexts[contextHandle];Module.ctx=GLctx=GL.currentContext&&GL.currentContext.GLctx;return!(contextHandle&&!GLctx)},getContext:function(contextHandle){return GL.contexts[contextHandle]},deleteContext:function(contextHandle){if(GL.currentContext===GL.contexts[contextHandle])GL.currentContext=null;if(typeof JSEvents==="object")JSEvents.removeAllHandlersOnTarget(GL.contexts[contextHandle].GLctx.canvas);if(GL.contexts[contextHandle]&&GL.contexts[contextHandle].GLctx.canvas)GL.contexts[contextHandle].GLctx.canvas.GLctxObject=undefined;GL.contexts[contextHandle]=null},initExtensions:function(context){if(!context)context=GL.currentContext;if(context.initExtensionsDone)return;context.initExtensionsDone=true;var GLctx=context.GLctx;__webgl_enable_ANGLE_instanced_arrays(GLctx);__webgl_enable_OES_vertex_array_object(GLctx);__webgl_enable_WEBGL_draw_buffers(GLctx);__webgl_enable_WEBGL_draw_instanced_base_vertex_base_instance(GLctx);GLctx.disjointTimerQueryExt=GLctx.getExtension("EXT_disjoint_timer_query");var automaticallyEnabledExtensions=["OES_texture_float","OES_texture_half_float","OES_standard_derivatives","OES_vertex_array_object","WEBGL_compressed_texture_s3tc","WEBGL_depth_texture","OES_element_index_uint","EXT_texture_filter_anisotropic","EXT_frag_depth","WEBGL_draw_buffers","ANGLE_instanced_arrays","OES_texture_float_linear","OES_texture_half_float_linear","EXT_blend_minmax","EXT_shader_texture_lod","EXT_texture_norm16","WEBGL_compressed_texture_pvrtc","EXT_color_buffer_half_float","WEBGL_color_buffer_float","EXT_sRGB","WEBGL_compressed_texture_etc1","EXT_disjoint_timer_query","WEBGL_compressed_texture_etc","WEBGL_compressed_texture_astc","EXT_color_buffer_float","WEBGL_compressed_texture_s3tc_srgb","EXT_disjoint_timer_query_webgl2","WEBKIT_WEBGL_compressed_texture_pvrtc"];var exts=GLctx.getSupportedExtensions()||[];exts.forEach(function(ext){if(automaticallyEnabledExtensions.indexOf(ext)!=-1){GLctx.getExtension(ext)}})},populateUniformTable:function(program){var p=GL.programs[program];var ptable=GL.programInfos[program]={uniforms:{},maxUniformLength:0,maxAttributeLength:-1,maxUniformBlockNameLength:-1};var utable=ptable.uniforms;var numUniforms=GLctx.getProgramParameter(p,35718);/*GL_ACTIVE_UNIFORMS*/for(var i=0;i<numUniforms;++i){var u=GLctx.getActiveUniform(p,i);var name=u.name;ptable.maxUniformLength=Math.max(ptable.maxUniformLength,name.length+1);if(name.slice(-1)=="]"){name=name.slice(0,name.lastIndexOf("["))}var loc=GLctx.getUniformLocation(p,name);if(loc){var id=GL.getNewId(GL.uniforms);utable[name]=[u.size,id];GL.uniforms[id]=loc;for(var j=1;j<u.size;++j){var n=name+"["+j+"]";loc=GLctx.getUniformLocation(p,n);id=GL.getNewId(GL.uniforms);GL.uniforms[id]=loc}}}}};function _emscripten_glActiveTexture(x0){GLctx["activeTexture"](x0)}function _emscripten_glAttachShader(program,shader){GLctx.attachShader(GL.programs[program],GL.shaders[shader])}function _emscripten_glBeginQuery(target,id){GLctx["beginQuery"](target,GL.queries[id])}function _emscripten_glBeginQueryEXT(target,id){GLctx.disjointTimerQueryExt["beginQueryEXT"](target,GL.timerQueriesEXT[id])}function _emscripten_glBeginTransformFeedback(x0){GLctx["beginTransformFeedback"](x0)}function _emscripten_glBindAttribLocation(program,index,name){GLctx.bindAttribLocation(GL.programs[program],index,UTF8ToString(name))}function _emscripten_glBindBuffer(target,buffer){if(target==35051)/*GL_PIXEL_PACK_BUFFER*/{GLctx.currentPixelPackBufferBinding=buffer}else if(target==35052)/*GL_PIXEL_UNPACK_BUFFER*/{GLctx.currentPixelUnpackBufferBinding=buffer}GLctx.bindBuffer(target,GL.buffers[buffer])}function _emscripten_glBindBufferBase(target,index,buffer){GLctx["bindBufferBase"](target,index,GL.buffers[buffer])}function _emscripten_glBindBufferRange(target,index,buffer,offset,ptrsize){GLctx["bindBufferRange"](target,index,GL.buffers[buffer],offset,ptrsize)}function _emscripten_glBindFramebuffer(target,framebuffer){GLctx.bindFramebuffer(target,GL.framebuffers[framebuffer])}function _emscripten_glBindRenderbuffer(target,renderbuffer){GLctx.bindRenderbuffer(target,GL.renderbuffers[renderbuffer])}function _emscripten_glBindSampler(unit,sampler){GLctx["bindSampler"](unit,GL.samplers[sampler])}function _emscripten_glBindTexture(target,texture){GLctx.bindTexture(target,GL.textures[texture])}function _emscripten_glBindTransformFeedback(target,id){GLctx["bindTransformFeedback"](target,GL.transformFeedbacks[id])}function _emscripten_glBindVertexArray(vao){GLctx["bindVertexArray"](GL.vaos[vao])}function _emscripten_glBindVertexArrayOES(vao){GLctx["bindVertexArray"](GL.vaos[vao])}function _emscripten_glBlendColor(x0,x1,x2,x3){GLctx["blendColor"](x0,x1,x2,x3)}function _emscripten_glBlendEquation(x0){GLctx["blendEquation"](x0)}function _emscripten_glBlendEquationSeparate(x0,x1){GLctx["blendEquationSeparate"](x0,x1)}function _emscripten_glBlendFunc(x0,x1){GLctx["blendFunc"](x0,x1)}function _emscripten_glBlendFuncSeparate(x0,x1,x2,x3){GLctx["blendFuncSeparate"](x0,x1,x2,x3)}function _emscripten_glBlitFramebuffer(x0,x1,x2,x3,x4,x5,x6,x7,x8,x9){GLctx["blitFramebuffer"](x0,x1,x2,x3,x4,x5,x6,x7,x8,x9)}function _emscripten_glBufferData(target,size,data,usage){if(GL.currentContext.version>=2){if(data){GLctx.bufferData(target,HEAPU8,usage,data,size)}else{GLctx.bufferData(target,size,usage)}}else{GLctx.bufferData(target,data?HEAPU8.subarray(data,data+size):size,usage)}}function _emscripten_glBufferSubData(target,offset,size,data){if(GL.currentContext.version>=2){GLctx.bufferSubData(target,offset,HEAPU8,data,size);return}GLctx.bufferSubData(target,offset,HEAPU8.subarray(data,data+size))}function _emscripten_glCheckFramebufferStatus(x0){return GLctx["checkFramebufferStatus"](x0)}function _emscripten_glClear(x0){GLctx["clear"](x0)}function _emscripten_glClearBufferfi(x0,x1,x2,x3){GLctx["clearBufferfi"](x0,x1,x2,x3)}function _emscripten_glClearBufferfv(buffer,drawbuffer,value){GLctx["clearBufferfv"](buffer,drawbuffer,HEAPF32,value>>2)}function _emscripten_glClearBufferiv(buffer,drawbuffer,value){GLctx["clearBufferiv"](buffer,drawbuffer,HEAP32,value>>2)}function _emscripten_glClearBufferuiv(buffer,drawbuffer,value){GLctx["clearBufferuiv"](buffer,drawbuffer,HEAPU32,value>>2)}function _emscripten_glClearColor(x0,x1,x2,x3){GLctx["clearColor"](x0,x1,x2,x3)}function _emscripten_glClearDepthf(x0){GLctx["clearDepth"](x0)}function _emscripten_glClearStencil(x0){GLctx["clearStencil"](x0)}function convertI32PairToI53(lo,hi){return(lo>>>0)+hi*4294967296}function _emscripten_glClientWaitSync(sync,flags,timeoutLo,timeoutHi){return GLctx.clientWaitSync(GL.syncs[sync],flags,convertI32PairToI53(timeoutLo,timeoutHi))}function _emscripten_glColorMask(red,green,blue,alpha){GLctx.colorMask(!!red,!!green,!!blue,!!alpha)}function _emscripten_glCompileShader(shader){GLctx.compileShader(GL.shaders[shader])}function _emscripten_glCompressedTexImage2D(target,level,internalFormat,width,height,border,imageSize,data){if(GL.currentContext.version>=2){if(GLctx.currentPixelUnpackBufferBinding){GLctx["compressedTexImage2D"](target,level,internalFormat,width,height,border,imageSize,data)}else{GLctx["compressedTexImage2D"](target,level,internalFormat,width,height,border,HEAPU8,data,imageSize)}return}GLctx["compressedTexImage2D"](target,level,internalFormat,width,height,border,data?HEAPU8.subarray((data),(data+imageSize)):null)}function _emscripten_glCompressedTexImage3D(target,level,internalFormat,width,height,depth,border,imageSize,data){if(GLctx.currentPixelUnpackBufferBinding){GLctx["compressedTexImage3D"](target,level,internalFormat,width,height,depth,border,imageSize,data)}else{GLctx["compressedTexImage3D"](target,level,internalFormat,width,height,depth,border,HEAPU8,data,imageSize)}}function _emscripten_glCompressedTexSubImage2D(target,level,xoffset,yoffset,width,height,format,imageSize,data){if(GL.currentContext.version>=2){if(GLctx.currentPixelUnpackBufferBinding){GLctx["compressedTexSubImage2D"](target,level,xoffset,yoffset,width,height,format,imageSize,data)}else{GLctx["compressedTexSubImage2D"](target,level,xoffset,yoffset,width,height,format,HEAPU8,data,imageSize)}return}GLctx["compressedTexSubImage2D"](target,level,xoffset,yoffset,width,height,format,data?HEAPU8.<message truncated>
     
  3. zxcv2008a

    zxcv2008a

    Joined:
    Jan 21, 2021
    Posts:
    2
    Surprisingly, The Minify with Closure option doesn't work at all when Dots Runtime Build Profile's configuration is set to release. Does that happen to you too?
     
  4. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    953
    The message

    \\google-closure-compiler.cmd'] --version") did not execute properly!

    suggests that somehow the Closure compiler installation did not work out on your OS. You can try debugging by finding file google-closure-compiler.cmd under Unity project Library directory, and try running "google-closure-compiler.cmd --version" to see what the error is. I am surprised that it did not print out the error directly there. :(

    That sounds like a bug. Can you raise a bug report?
     
  5. DMinsky

    DMinsky

    Joined:
    May 20, 2012
    Posts:
    30
    Couldn't confirm that. I'm able to build a webassembly and asmjs with release configuration enabled and both minify options set. But without "Output Signle HTML file". Tested on macOS and Windows.
     
  6. DMinsky

    DMinsky

    Joined:
    May 20, 2012
    Posts:
    30
    Yep,
    Case 1312503
     
  7. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    953
    @DMinsky Thanks, much appreciated! I'll grab that once it gets through triage.
     
  8. CharlieGGarrett

    CharlieGGarrett

    Joined:
    Dec 1, 2020
    Posts:
    1
    I'm having a similar issue while testing Project Tiny in both the TinyRacing project and my own project setup from scratch. Both running in 2020.1.17f1 with Tiny version 0.32.0-preview.55 on MacOS 11.0.1 . Both projects build fine when Minify Output with Closure is disabled but fail and throw the attached error when enabled. Attached error and log is from my own project.

    Code (CSharp):
    1. Build Wasm_BuildConfig failed after 9.94s.
    2. emcc:WARNING: --llvm-lto ignored when using llvm backend
    3. wasm-ld: warning: function signature mismatch: _ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE7seekposENS_4fposI11__mbstate_tEEj
    4. >>> defined as () -> void in /Users/charlieguerri-garrett/Documents/Unity/Unity Projects/ProjectTinyTesting/ProjectTinyTesting/Library/DotsRuntimeBuild/artifacts/emscripten-cache-1.39.17/wasm-lto/libc++-noexcept.a(ios.o)
    5. >>> defined as (i32, i32, i32, i32) -> void in lto.tmp
    6. wasm-ld: warning: function signature mismatch: _ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE7seekoffExNS_8ios_base7seekdirEj
    7. >>> defined as () -> void in /Users/charlieguerri-garrett/Documents/Unity/Unity Projects/ProjectTinyTesting/ProjectTinyTesting/Library/DotsRuntimeBuild/artifacts/emscripten-cache-1.39.17/wasm-lto/libc++-noexcept.a(ios.o)
    8. >>> defined as (i32, i32, i64, i32, i32) -> void in lto.tmp
    9. building:ERROR: Closure compiler run failed:
    10. building:ERROR: ERROR - [JSC_READ_ERROR] Cannot read file /Users/charlieguerri-garrett/Documents/Unity/Unity: /Users/charlieguerri-garrett/Documents/Unity/Unity
    11. 1 error(s), 0 warning(s)
    12. emcc: error: closure compiler failed (rc: 1. the error message may be clearer with -g1 and EMCC_DEBUG=2 set)
    13. *** Bee build failed (8.58 seconds), 2 items updated, 601 evaluated
    14.  
    15. UnityEngine.Debug:LogError(Object, Object)
    16. Unity.Build.ResultBase:LogResult() (at Library/PackageCache/com.unity.platforms@0.10.0-preview.10/Editor/Unity.Build/ResultBase.cs:65)
    17. Unity.Build.Editor.<>c:<.cctor>b__34_1(BuildConfiguration) (at Library/PackageCache/com.unity.platforms@0.10.0-preview.10/Editor/Unity.Build.Editor/BuildConfigurationInspector.cs:48)
    18. Unity.Build.Editor.<>c__DisplayClass30_0:<Build>b__1() (at Library/PackageCache/com.unity.platforms@0.10.0-preview.10/Editor/Unity.Build.Editor/BuildConfigurationInspector.cs:128)
    19. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)
     

    Attached Files: