Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

model viewer crashing on IOS #4868

Open
3 tasks
Tommy-Huls opened this issue Aug 13, 2024 · 6 comments
Open
3 tasks

model viewer crashing on IOS #4868

Tommy-Huls opened this issue Aug 13, 2024 · 6 comments
Labels
flag: not model-viewer Problems that are related to our project but are ultimately some other project's issue

Comments

@Tommy-Huls
Copy link

Tommy-Huls commented Aug 13, 2024

Description

GLBs don't seem to be loading anymore on IOS. This was never an issue until yesterday/today.
Chrome does still sometimes load the model, but not always. Safari never.

Sometimes it quickly shows a light blue screen, but then it seems like it crashes.

dev tools through Safari show the below:

[Error] WebGL: context lost.
	getContext
	Tt (model-viewer.min.js:17:427081)
	io (model-viewer.min.js:17:427511)
	Bf (model-viewer.min.js:798:756)
	singleton (model-viewer.min.js:798:1454)
	h (model-viewer.min.js:1092:27764)
	d (model-viewer.min.js:1092:20040)
	y (model-viewer.min.js:1092:8716)
	s (model-viewer.min.js:1092:6639)
	s (model-viewer.min.js:1092:5398)
	s (model-viewer.min.js:1092:2787)
	r (model-viewer.min.js:1092:480)
	define
	Module Code (model-viewer.min.js:1092:31837)
[Warning] TypeError: null is not an object (evaluating 't.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_FLOAT).precision') — model-viewer.js:15391 (model-viewer.min.js, line 798)
[Error] TypeError: undefined is not an object (evaluating 'this.threeRenderer.xr')
	Hg (model-viewer.min.js:728:2069)
	Bf (model-viewer.min.js:798:1084)
	singleton (model-viewer.min.js:798:1454)
	h (model-viewer.min.js:1092:27764)
	d (model-viewer.min.js:1092:20040)
	y (model-viewer.min.js:1092:8716)
	s (model-viewer.min.js:1092:6639)
	s (model-viewer.min.js:1092:5398)
	s (model-viewer.min.js:1092:2787)
	r (model-viewer.min.js:1092:480)
	define
	Module Code (model-viewer.min.js:1092:31837)
[Error] Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'e.getFieldOfView')
	(anonymous function) (model-viewer.min.js:1092:16774)
	(anonymous function) (model-viewer.min.js:1092:16976)
	(anonymous function) (model-viewer.min.js:1011:5994)
	(anonymous function) (model-viewer.min.js:1011:2413)
[Log] THREE.WebGLRenderer: Context Lost. (model-viewer.min.js, line 17)

Live Demo

https://a.rendered.ar/api/EmbedTrigger?uuid=8348-G&rda=123456

Version

  • model-viewer: v3.5.0

Browser Affected

  • Chrome IOS
  • Safari IOS

OS

  • iOS
@Tommy-Huls
Copy link
Author

Tommy-Huls commented Aug 13, 2024

This also happens if I load the GLB from the editor on mobile.

And with all other GLB files.

image

@Tommy-Huls
Copy link
Author

Latest beta update on IOS seems to have fixed it for me, however I can't expect my clients and their customers to also have the latest update...

@elalish
Copy link
Collaborator

elalish commented Aug 13, 2024

Can you be specific about which devices and OS/browser versions are producing this behavior? Do you see the behavior on our modelviewer.dev examples pages as well? @AdaRoseCannon any known WebGL context loss bugs recently in iOS Safari?

@AdaRoseCannon
Copy link

If they could file a Feedback Assistant report it would help a lot. I’m not an iOS engineer so couldn’t say for sure.

@henrik-dons
Copy link

For me the viewer also crashes on ModelViewer version 3.5.0 on iPhone 12 iOS 17 Safari browser

Live product page: https://pedocpower.com/product/5x5-hinge-top-with-base/
3D model url: https://pedocpower.com/wp-content/uploads/2024/05/5P18-C-HT-BRZ-140_OPENED.GLB

Hope this helps for debugging purposes.

@AdaRoseCannon
Copy link

Please file a Feedback Assistant request then if you can let me know the number I'll keep an eye on it.

@elalish elalish added the flag: not model-viewer Problems that are related to our project but are ultimately some other project's issue label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flag: not model-viewer Problems that are related to our project but are ultimately some other project's issue
Projects
None yet
Development

No branches or pull requests

4 participants