# Webgl build not connected

**URL:** <https://community.coherence.io/t/webgl-build-not-connected/524>\
**Category:** Help\
**Created:** [May 20, 2024, 11:52am UTC](https://community.coherence.io/t/webgl-build-not-connected/524 "2024-05-20T11:52:58Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![harun.esad](https://avatars.discourse-cdn.com/v4/letter/h/94ad74/32.png) [@harun.esad](https://community.coherence.io/u/harun.esad)\
**Post date:** [May 20, 2024, 11:52am UTC](https://community.coherence.io/t/webgl-build-not-connected/524/1 "2024-05-20T11:52:58Z")

</div>

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]);  
}  
}

---

<div class="post-metadata">

**Author:** ![brit](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/brit/32/34_2.png) [@brit](https://community.coherence.io/u/brit)\
**Post date:** [May 20, 2024, 12:04pm UTC](https://community.coherence.io/t/webgl-build-not-connected/524/2 "2024-05-20T12:04:16Z")

</div>

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.

 ![CleanShot 2024-05-20 at 07.03.42@2x](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/6e12b9b1f26e82cf0a6d56e5a21a456998e76e3b.png)

---

<div class="post-metadata">

**Author:** ![harun.esad](https://avatars.discourse-cdn.com/v4/letter/h/94ad74/32.png) [@harun.esad](https://community.coherence.io/u/harun.esad)\
**Post date:** [May 20, 2024, 12:20pm UTC](https://community.coherence.io/t/webgl-build-not-connected/524/3 "2024-05-20T12:20:02Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![brit](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/brit/32/34_2.png) [@brit](https://community.coherence.io/u/brit)\
**Post date:** [May 20, 2024, 12:32pm UTC](https://community.coherence.io/t/webgl-build-not-connected/524/4 "2024-05-20T12:32:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![brit](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/brit/32/34_2.png) [@brit](https://community.coherence.io/u/brit)\
**Post date:** [May 20, 2024, 12:33pm UTC](https://community.coherence.io/t/webgl-build-not-connected/524/5 "2024-05-20T12:33:22Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![harun.esad](https://avatars.discourse-cdn.com/v4/letter/h/94ad74/32.png) [@harun.esad](https://community.coherence.io/u/harun.esad)\
**Post date:** [May 20, 2024, 1:20pm UTC](https://community.coherence.io/t/webgl-build-not-connected/524/6 "2024-05-20T13:20:08Z")

</div>

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.

 ![Ek Açıklama 2024-05-20 155039](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/befd744c6b35f19531948e2c4c84ab523a30cda3.png)  
 ![Ek Açıklama 2024-05-20 155115](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/fb9cb5896b7cd66fcef1c128ce1852551a4d0919.png)

---

<div class="post-metadata">

**Author:** ![harun.esad](https://avatars.discourse-cdn.com/v4/letter/h/94ad74/32.png) [@harun.esad](https://community.coherence.io/u/harun.esad)\
**Post date:** [May 20, 2024, 2:13pm UTC](https://community.coherence.io/t/webgl-build-not-connected/524/7 "2024-05-20T14:13:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![brit](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/brit/32/34_2.png) [@brit](https://community.coherence.io/u/brit)\
**Post date:** [May 20, 2024, 2:42pm UTC](https://community.coherence.io/t/webgl-build-not-connected/524/8 "2024-05-20T14:42:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![harun.esad](https://avatars.discourse-cdn.com/v4/letter/h/94ad74/32.png) [@harun.esad](https://community.coherence.io/u/harun.esad)\
**Post date:** [May 20, 2024, 2:55pm UTC](https://community.coherence.io/t/webgl-build-not-connected/524/9 "2024-05-20T14:55:08Z")

</div>

cnsloli2t1cm3tqm0hr0, cp07ghq2t1cg46im9l60

---

<div class="post-metadata">

**Author:** ![brit](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/brit/32/34_2.png) [@brit](https://community.coherence.io/u/brit)\
**Post date:** [May 20, 2024, 5:22pm UTC](https://community.coherence.io/t/webgl-build-not-connected/524/10 "2024-05-20T17:22:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![harun.esad](https://avatars.discourse-cdn.com/v4/letter/h/94ad74/32.png) [@harun.esad](https://community.coherence.io/u/harun.esad)\
**Post date:** [May 20, 2024, 6:08pm UTC](https://community.coherence.io/t/webgl-build-not-connected/524/11 "2024-05-20T18:08:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![brit](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/brit/32/34_2.png) [@brit](https://community.coherence.io/u/brit)\
**Post date:** [May 21, 2024, 10:53am UTC](https://community.coherence.io/t/webgl-build-not-connected/524/12 "2024-05-21T10:53:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/b3aa79eb9519fac7aad7eba18f15a1e8ce60f6e2.png) [@system](https://community.coherence.io/u/system)\
**Post date:** [August 19, 2024, 10:54am UTC](https://community.coherence.io/t/webgl-build-not-connected/524/13 "2024-08-19T10:54:20Z")

</div>

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