hubs icon indicating copy to clipboard operation
hubs copied to clipboard

Room not working with hubs cloud in Chrome or Edge - works fine in Firefox and on Mozilla Hub

Open m-zainkhawaja opened this issue 4 years ago • 3 comments

Discussed in https://github.com/mozilla/hubs/discussions/4403

Originally posted by m-zainkhawaja July 11, 2021 I have created a simple test room with basic geometry - all fields are green (textures, polygon count etc). After adding a few polygons, the room fails to load on Hubs cloud running in Digital Ocean and gets stuck in a loading loop for Chrome or Edge. The same room with no modifications works fine in Firefox. If the exact same room is deployed to the Mozilla Hubs page, it works great across all browsers.

Specifically, I noticed that when the room loades correctly, the following statement is printed in the consosle: physics-utils.js:59 traverseMeshesAndAddShapes console.js:35 heightfield or trimesh found on scene console.js:35 Successfully connected to the networked scene.

However, when it fails to load, the above statements are not printed, and the following errors are shown: Releasing uncached gltf ..../files/36c9457f-6f91-4ee7-adab-e6e91f238d2c.bin Failed to load glTF model Releasing uncached gltf ..../files/36c9457f-6f91-4ee7-adab-e6e91f238d2c.bin eleasing uncached gltf /WKT3QPA/objects.gltf gltf-model-plus.js:42 Releasing uncached gltf #spawn-point GET.../files/36c9457f-6f91-4ee7-adab-e6e91f238d2c.bin net::ERR_CONNECTION_CLOSED 200

Any help would be greatly appreciated Thanks and best wishes

┆Issue is synchronized with this Jira Task

m-zainkhawaja avatar Jul 11 '21 16:07 m-zainkhawaja

Can confirm this behaviour. It feels like this happens, when the overall file size of the scenery is a bit bigger, but this is just a guess. I can investigate further if needed.

markusTraber avatar Nov 22 '21 09:11 markusTraber

I did some testing, as this happened with my newest scenery again. The situation for me is, that I do almost everything in Blender and therefor mostly have one single .glb file. I could not load my scenery with chrome-based Browsers when Spoke stated these stats: grafik

It seems that chrome-based Browsers are unable to obtain the scenery file in these cases: grafik

Afterwards I manually compressed some textures, which resulted in the following: grafik

Now I am able to load my scenery in chrome-based browsers.

markusTraber avatar Nov 26 '21 18:11 markusTraber

This has been resolved for me with: https://github.com/mozilla/reticulum/pull/574 At least the thing when the scenery is too big in Chrome based Browsers.

markusTraber avatar Aug 10 '22 10:08 markusTraber