Bug: viewing .usdz in Chrome breaks every time #3492
-
DescriptionI'm using glitch.com to view/test my model-viewer scenes and have been for a couple of years. While testing my most recent project I noticed that I'm getting a strange crash every time I am trying to view the AR model in iOS when using Chrome. I assumed it was a user error but then even tested the google animals that are using modelviewer as well as the models straight from modelviewer.dev in chrome. The same scenes work as expected in Safari. This bug can be reproduced by using Chrome on iOS and attempting to view an AR asset in preview. (Not sure if this matters but I'm using iOS 15.4) Example Filehttps://glitch.com/~anasazi-raven-and-pot Loom Recordinghttps://www.loom.com/share/9f02e8a3486a4f2aaf8e27a896b49010 ScreenshotsThe following screenshots were taken from attempting to view models on modelviewer.dev in AR using Chrome iOS: Loom Recordinghttps://www.loom.com/share/9f02e8a3486a4f2aaf8e27a896b49010 Version
Browser Affected
iOS
AR
|
Beta Was this translation helpful? Give feedback.
Replies: 18 comments 3 replies
-
I have observed the same bug in my app. QuickLook worked for iOS Chrome and iOS Firefox before the update to iOS 15.4. Now it only works for Safari on 15.4. Before the update to iOS 15.4, I was able to get QuickLook working on iOS Chrome and iOS Firefox with the help of this issue comment from issues/1796. Maybe helpful because it seems that the |
Beta Was this translation helpful? Give feedback.
-
Can confirm here too. On iOS 15.4 iPhone 12 Pro, trying to open USDZ in Chrome, Firefox results in page of text. |
Beta Was this translation helpful? Give feedback.
-
Having done some digging, I found this chrome bug report: https://bugs.chromium.org/p/chromium/issues/detail?id=1302551&q=USDZ&can=2 Where there is a discussion about Content-Disposition header. In some initial tests, when I set the USDZ file to be served with header
|
Beta Was this translation helpful? Give feedback.
-
I can confirm @milesgreen findings (thanks for sharing) for:
and that serving USDZ files with an |
Beta Was this translation helpful? Give feedback.
-
Hey, can you share the fix for a beginner please? |
Beta Was this translation helpful? Give feedback.
-
@AdrianTabacaru my
The |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answers. My .htacces files was empty, I've been trying both: or <FilesMatch ".+.(usdz)$"> refreshed the page on the phone and still ASCI text appears on my iPhone iOS 15.4 Thank you! |
Beta Was this translation helpful? Give feedback.
-
Can you guys confirm that accessing this page works on your iOS 15.4 ? Thank you! |
Beta Was this translation helpful? Give feedback.
-
Hey sorry, that was a mistake in the previous post, I didn't paste "code" just plain text. |
Beta Was this translation helpful? Give feedback.
-
Much more weird is that the official webpage has the same ASCII response behavior on my phone. |
Beta Was this translation helpful? Give feedback.
-
I confirm this was fixed using this code: Now, I have multiple .htaccess files, one is located on root, one is on public_html folder and another one is in the folder where the .usdz and the .html files sit. I don't know which one does the job, putting it only on root doesn't seem to fix it in the beginning for me. Thank you @Ocupe and @charpstar for the code and everyone for your support! |
Beta Was this translation helpful? Give feedback.
-
@Lavosbit hello! Excuse me, were you able to get it to work on Glitch? Thanks! |
Beta Was this translation helpful? Give feedback.
-
I think this issue may have been patched somewhere along the way with Chrome 100. |
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing @milesgreen! I'm going to close this to let others know. Please post if you need me to reopen. |
Beta Was this translation helpful? Give feedback.
-
Sooo... I did some more thorough testing. It appears this is in fact still an issue, even with Chrome 100 in iOS 15.4.1. In this instance, even with Chrome 100 but without the But in iOS 15.5 (beta 1 and 2), this is no longer an issue in Chrome, and even without the So for now, folks may want to keep adding |
Beta Was this translation helpful? Give feedback.
-
Ran into the problem myself today with Chrome 100+ on iOS 15.4.1, added the header and it works in both (Safari and Chrome) on iOS fine now... thanks for the help, folks! |
Beta Was this translation helpful? Give feedback.
-
From iOS-Chrome, it sounds like they are planning to have this fix go into Chrome 102. |
Beta Was this translation helpful? Give feedback.
-
iOS Chrome 102 is now live: https://chromereleases.googleblog.com/2022/05/chrome-for-ios-update.html Testing on iOS 15.4.1 (to be conservative, even though iOS 15.5 is now live), this seems to have fixed a lot of related issues:
|
Beta Was this translation helpful? Give feedback.
iOS Chrome 102 is now live: https://chromereleases.googleblog.com/2022/05/chrome-for-ios-update.html
Testing on iOS 15.4.1 (to be conservative, even though iOS 15.5 is now live), this seems to have fixed a lot of related issues:
Content-Disposition: attachment
HTTP header, viewing USDZ models will open in AR QuickLook rather than display inline textContent-Disposition: attachment
HTTP header, viewing USDZ models will still open in AR QuickLook#allowsContentScaling=0
to USDZ path) is respected and the model scale is locked in AR QuickLook