Ryan GreenR
Normalβ€’17mo ago
Ryan Green

allocateUTF8 is not defined

I've created a webgl build in Unity 2023.2.20f1 and Normcore 2.10.4 and I'm receiving the following error when attempting to connect to a room using a room name entered from a text input in the build.

ReferenceError: allocateUTF8 is not defined
    at ClientStartConnection


in the following section of the jslib

function ClientStartConnection(clientPointer) {
                var clientOffer = __pendingOffers.get(clientPointer);
                if (clientOffer == null) {
                    clientOffer = "";
                    __pendingOffers.set(clientPointer, clientOffer);
                    Instance.Get(clientPointer).startConnection().then(function(co) {
                        if (__pendingOffers.get(clientPointer) != "")
                            return;
                        __pendingOffers.set(clientPointer, co)
                    })
                }
                if (clientOffer != "") {
                    __pendingOffers["delete"](clientPointer)
                }
                return allocateUTF8(clientOffer)
            }


is my version of Unity supported for gl builds? should I be using a different version of normcore?
Was this page helpful?