Webgl build not connected

I created a world with coherence in Unity, I’m trying to connect to it. It works in the editor, but when I get the webgl build it doesn’t work. The code is as follows

public void StartLobby()
{
cloudService = bridge.CloudService; CreateAndJoinRoom();
}
private async void CreateAndJoinRoom()
{
await cloudService.WaitForCloudServiceLoginAsync(1000); IReadOnlyList availableWorlds = await cloudService.Worlds.FetchWorldsAsync();
if(availableWorlds.Count > 0)
{
bridge.JoinWorld(availableWorlds[0]);
}
}

Hello, can you please post what sort of errors you are receiving in the console. Press F12 to see the console, then right click and save as to upload your console.

Test.loader.js:1 wasm streaming compile failed: TypeError: Failed to execute ‘compile’ on ‘WebAssembly’: Incorrect response MIME type. Expected ‘application/wasm’.
printErr @ Test.loader.js:1
Test.loader.js:1 falling back to ArrayBuffer instantiation
printErr @ Test.loader.js:1
Test.loader.js:1 [UnityCache] ‘http://localhost/Test/Build/Test.data’ successfully revalidated and served from the indexedDB cache
Test.framework.js:10 navigator.mediaDevices support available
Test.framework.js:10 [UnityMemory] Configuration Parameters - Can be set up in boot.config

Test.framework.js:10 “memorysetup-allocator-temp-initial-block-size-main=262144”

Test.framework.js:10 “memorysetup-allocator-temp-initial-block-size-worker=262144”

Test.framework.js:10 “memorysetup-temp-allocator-size-nav-mesh-worker=65536”

Test.framework.js:10 “memorysetup-temp-allocator-size-audio-worker=65536”

Test.framework.js:10 “memorysetup-temp-allocator-size-background-worker=32768”

Test.framework.js:10 “memorysetup-bucket-allocator-granularity=16”

Test.framework.js:10 “memorysetup-bucket-allocator-bucket-count=8”

Test.framework.js:10 “memorysetup-bucket-allocator-block-size=4194304”

Test.framework.js:10 “memorysetup-bucket-allocator-block-count=1”

Test.framework.js:10 “memorysetup-main-allocator-block-size=16777216”

Test.framework.js:10 “memorysetup-thread-allocator-block-size=16777216”

Test.framework.js:10 “memorysetup-gfx-main-allocator-block-size=16777216”

Test.framework.js:10 “memorysetup-gfx-thread-allocator-block-size=16777216”

Test.framework.js:10 “memorysetup-cache-allocator-block-size=4194304”

Test.framework.js:10 “memorysetup-typetree-allocator-block-size=2097152”

Test.framework.js:10 “memorysetup-profiler-bucket-allocator-granularity=16”

Test.framework.js:10 “memorysetup-profiler-bucket-allocator-bucket-count=8”

Test.framework.js:10 “memorysetup-profiler-bucket-allocator-block-size=4194304”

Test.framework.js:10 “memorysetup-profiler-bucket-allocator-block-count=1”

Test.framework.js:10 “memorysetup-profiler-allocator-block-size=16777216”

Test.framework.js:10 “memorysetup-profiler-editor-allocator-block-size=1048576”

Test.framework.js:10 “memorysetup-temp-allocator-size-main=4194304”

Test.framework.js:10 “memorysetup-job-temp-allocator-block-size=2097152”

Test.framework.js:10 “memorysetup-job-temp-allocator-block-size-background=1048576”

Test.framework.js:10 “memorysetup-job-temp-allocator-reduction-small-platforms=262144”

Test.framework.js:10 [Physics::Module] Initialized SinglethreadedJobDispatcher.

Test.framework.js:10 Loading player data from data.unity3d

Test.framework.js:10 Initialize engine version: 2022.3.14f1 (eff2de9070d8)

Test.loader.js:1 Creating WebGL 2.0 context.
Test.framework.js:10 Renderer: WebKit WebGL

Test.framework.js:10 Vendor: WebKit

Test.framework.js:10 Version: OpenGL ES 3.0 (WebGL 2.0 (OpenGL ES 3.0 Chromium))

Test.framework.js:10 GLES: 3

Test.framework.js:10 EXT_clip_control EXT_color_buffer_float EXT_color_buffer_half_float EXT_conservative_depth EXT_depth_clamp EXT_disjoint_timer_query_webgl2 EXT_float_blend EXT_polygon_offset_clamp EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic EXT_texture_mirror_clamp_to_edge EXT_texture_norm16 KHR_parallel_shader_compile NV_shader_noperspective_interpolation OES_draw_buffers_indexed OES_texture_float_linear OVR_multiview2 WEBGL_blend_func_extended WEBGL_clip_cull_distance WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context WEBGL_multi_draw WEBGL_polygon_mode WEBGL_provoking_vertex WEBGL_stencil_texturing GL_EXT_clip_control GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_conservative_depth GL_EXT_depth_clamp GL_EXT_disjoint_timer_query_webgl2 GL_EXT_float_blend GL_EXT_polygon_offset_clamp GL_EXT_texture_compression_bptc GL_EXT_texture_compression_rgtc GL_EXT_texture_filter_anisotropic GL_E

Test.framework.js:10 XT_texture_mirror_clamp_to_edge GL_EXT_texture_norm16 GL_KHR_parallel_shader_compile GL_NV_shader_noperspective_interpolation GL_OES_draw_buffers_indexed GL_OES_texture_float_linear GL_OVR_multiview2 GL_WEBGL_blend_func_extended GL_WEBGL_clip_cull_distance GL_WEBGL_compressed_texture_s3tc GL_WEBGL_compressed_texture_s3tc_srgb GL_WEBGL_debug_renderer_info GL_WEBGL_debug_shaders GL_WEBGL_lose_context GL_WEBGL_multi_draw GL_WEBGL_polygon_mode GL_WEBGL_provoking_vertex GL_WEBGL_stencil_texturing

Test.framework.js:10 OPENGL LOG: Creating OpenGL ES 3.0 graphics device ; Context level <OpenGL ES 3.0> ; Context handle 1

The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
Test.framework.js:10 Input Manager initialize…

Test.framework.js:10 Trying to get length of sound which is not loaded.
Test.framework.js:10 Trying to get length of sound which is not loaded.
Test.framework.js:10 Trying to get length of sound which is not loaded.
Test.framework.js:10 Trying to get length of sound which is not loaded.
Test.framework.js:10 Trying to get length of sound which is not loaded.
Test.framework.js:10 Trying to get length of sound which is not loaded.
Test.framework.js:10 The referenced script on this Behaviour (Game Object ‘NewAvatar’) is missing!

_JS_Log_Dump @ Test.framework.js:10
Test.framework.js:10 The referenced script on this Behaviour (Game Object ‘NewAvatar’) is missing!

_JS_Log_Dump @ Test.framework.js:10
Test.framework.js:10 The referenced script on this Behaviour (Game Object ‘NewAvatar’) is missing!

_JS_Log_Dump @ Test.framework.js:10
Test.framework.js:10 The referenced script on this Behaviour (Game Object ‘NewAvatar’) is missing!

_JS_Log_Dump @ Test.framework.js:10
Test.framework.js:10 The referenced script on this Behaviour (Game Object ‘NewAvatar’) is missing!

_JS_Log_Dump @ Test.framework.js:10
Test.framework.js:10 The referenced script on this Behaviour (Game Object ‘Camera’) is missing!

_JS_Log_Dump @ Test.framework.js:10
Test.framework.js:10 [Physics::Module] Initialized SinglethreadedJobDispatcher.

Test.framework.js:10 UnloadTime: 4.399999 ms

Test.framework.js:10 10

When you say “it doesn’t work”, what exactly do you mean? Does the game appear at all? Does the connect dialog appear? Are you able to see a list of worlds? Are you clicking the ‘connect’ button and nothing happens? Please describe in detail and/or with screenshots.

Oh, I see you are joining via code. Can you add debug logs to see if a list of worlds returns from your async call to our SDK?

loading screen

await cloudService.Wait For CloudService LoginAsync(1000);

after this line
It should close, but it doesn’t because it doesn’t work after this line.


I use this system in two different projects. I connect to the world in both. The same code block runs in both. But the coherence version of the two is different.

Thanks - can you please share your project IDs - we will investigate to see if we can replicate the issue.

cnsloli2t1cm3tqm0hr0, cp07ghq2t1cg46im9l60

It looks like both of these are using SDK version 1.2.0 - is that true? Which project is working and which is not?

The second one is 1.2.0 and does not work. The first one is 1.1.3 and works. I tried the second project once in the first coherence project. That’s why they may both say 1.2.0.

Thanks, we are investigating. If you are able, can you please attempt to use the non-async versions of hte SDK calls to see if that unblocks you. We have seen async work inconsistently in WebGL in the past and are seeing if there is anything we can do about it.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.