iOS testing in local network

Hi, using the samples repo and the local server my iOS browser (Safari and Firefox) crashes most of the time. Sometimes I land in a faulty state (black screen, “no camera found” and other errors), and sometimes (rarely though) it just works.

I’ve tested with and without https and my other PC device can connect just fine either way. iOS does not really work on either.

My device is an iPhone X by the way. Not too recent, but it has no problem running the same samples from your webpage.

Original Post on Discord

by user 395602247196737546

What errors do you see (if any) in the server process when it crashes? You can try to start it manually too by navigating to the project directory in your terminal and running npm start to maybe see what the reason for it crashing is. It did run just fine last time I tested on osx (few weeks ago)

None :confused:

by user 395602247196737546

To be clear: Server runs on windows (10), it’s just the iOS client browser crashes all the time.

by user 395602247196737546

Ah ok. And only in a local dev environment?

This time I had the progressive loading sample loading on the first try but it crashed ~2 seconds after displaying the armor.

by user 395602247196737546

Do you think you could capture that error via remote debugging to see what happens?

Yes, but I’m on my way to confirm this again.

by user 395602247196737546

When the browser restarts after crash it displays some errors (no 3d scene, just black) regarding not being able to connect via websocket. I don’t know if it’s relevant because it happens after crash recovery.

by user 395602247196737546

Remote debugging Safari screams “you need a mac for this” I guess…? :green_apple:

by user 395602247196737546

I guess but if it happens on firefox too maybe its the same cause

The same sample app on your sample collection page runs fine, loads progressively, is interactive. Just what you’d expect.

by user 395602247196737546

Hmm, ok. same thing happens when I try to connect via macOS Safari (using VirtualBox):

by user 395602247196737546

I dont see anything wrong in the screenshot

Yeah I don’t really know how to debug this “A problem repeatedly occurred” thing because I guess it happens in native code and would not log to the js console anyway.

by user 395602247196737546

Mmh the only time i can recall similar behaviour was caused by too many big textures and thus the browser on ios or android crashing. But the samples dont have that many or heavy assets

The download seems to get stuck here:

by user 395602247196737546

But don’t know if that’s because the browser tab died or if it’s the cause of it… :confused:

by user 395602247196737546

Ok maybe the macOS crashes are tied to limited GPU access inside the VM: The samples from your website also do not run inside the VM.

by user 395602247196737546

Yep and I expect the sample on your website to have the same assets :slightly_smiling_face:

by user 395602247196737546