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

Multi-model scenes cause infinite page reloading in iOS #59

Closed
blundellj opened this issue Mar 12, 2021 · 6 comments
Closed

Multi-model scenes cause infinite page reloading in iOS #59

blundellj opened this issue Mar 12, 2021 · 6 comments

Comments

@blundellj
Copy link
Collaborator

Issue seen on an iPhone 7 running iOS 14.4 on up-to-date Chrome, Firefox, Safari

Page loads as normal, seems to load a 3D thumb or low-res model, but the page reload before Voyager loads the high-res models.

Usually the console does not produce error, just warnings, but I was able to catch this on Chrome for the first page reload of https://3d.si.edu/object/3d/lidded-ritual-ewer-guang-taotie-dragons-birds-tigers-elephants-fish-snakes-and-humans:d8c646aa-4ebc-11ea-b77f-2e728ce88125

ERRORfailed to load 'https://3d-api.si.edu/content/document/d8c646aa-4ebc-11ea-b77f-2e728ce88125/f1961_33-part_01-laser-ortery_texture-150k-4096-high.glb': [object XMLHttpRequestProgressEvent]
ERRORfailed to load 'https://3d-api.si.edu/content/document/d8c646aa-4ebc-11ea-b77f-2e728ce88125/f1961_33-part_02-x_pol-ort_texture-150k-4096-high.glb': [object XMLHttpRequestProgressEvent]
@gjcope
Copy link
Collaborator

gjcope commented Mar 24, 2021

Haven't been able to reproduce this on iPhone 6S running iOS 14.4.1

@blundellj
Copy link
Collaborator Author

Recently updated to 14.4.1 and the issue is still showing up on Chrome, Firefox, Safari.

This time I'm getting the follow console error in safari:

[Error] Failed to load resource: the server responded with a status of 400 (Bad Request) (deliveryService, line 0)

https://ids.si.edu/ids/deliveryService?max=350&id=https://voyager3d.si.edu/sites/default/files/oa-graphic-long-01-small.jpg

and the source Tab in dev tools highlights line 494 e.querySelectorAll("*,:x"),

@gjcope
Copy link
Collaborator

gjcope commented Apr 14, 2021

Does it say "There was an error" or something similar in the browser before reloading the page? Can you try freeing up memory (closing applications/ browser tabs) and see if this makes a difference?

@blundellj
Copy link
Collaborator Author

The page instantly reloads, with no text or other feedback given to the user. Closing all other applications, closing all other tabs, and restarting the phone all had no effect on the behavior.

Safari
https://user-images.githubusercontent.com/49207360/114899633-1de9dc00-9de1-11eb-8f7e-1093d1a6f266.mp4

Chrome
https://user-images.githubusercontent.com/49207360/114899317-dbc09a80-9de0-11eb-94e8-ed455bcbd10b.mp4

Firefox
https://user-images.githubusercontent.com/49207360/114899450-f6930f00-9de0-11eb-8d8e-f99b07d79576.mp4

@blundellj
Copy link
Collaborator Author

I was able to capture Safari flashing the text "This webpage was reloaded because a problem occurred." with possibly an "x" icon in front of the text when testing on the dev API

@gjcope
Copy link
Collaborator

gjcope commented Feb 17, 2022

Patched in #109 but we need to address memory usage in general. (Look at using lower res on mobile and/or KTX textures)

@gjcope gjcope closed this as completed Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants