WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
Bug 275527
REGRESSION (again in iOS 17.5.1): Camera (getUserMedia) freezes in installed PWA
https://bugs.webkit.org/show_bug.cgi?id=275527
Summary
REGRESSION (again in iOS 17.5.1): Camera (getUserMedia) freezes in installed PWA
Gio Cacchione
Reported
2024-06-15 04:48:24 PDT
I am encountering an issue with accessing the iPhone's camera in an installed PWA app since iOS 17.5.1. The camera consistently freezes within the PWA. When testing the same functionality on Safari (outside of the PWA), everything operates correctly. After testing across multiple devices all running iOS 17.5.1 and various PWAs, results have been inconsistent. The issue persists on iPhone 13 models, where the camera freezes, whereas there are no issues on an iPhone 12 Mini. All PWAs tested utilize the Html5-QRCode library for camera access to scan QR codes. To reproduce the issue: 1. Navigate to `scanapp.org`. 2. Add to Home Screen on iOS 17.5.1. 3. Launch the app from the Home Screen. 4. Click on 'Request Permissions' for camera (front/back). 5. Grant permissions. 6. Click on 'Start Scanning'. 7. Note how the site freezes; no elements on the page respond until the PWA is force-closed. 8. Compare by testing the same website in Safari, where the camera opens without issue. This issue appears to have been reported and resolved in previous iOS versions, specifically iOS 17.4.1. I can confirm that the problem was absent in iOS 17.5.0 but reappeared in iOS 17.5.1.
Attachments
iOS 17.5.1 camera capture fail
(30.80 MB, video/quicktime)
2024-06-28 04:41 PDT
,
rychouwei
no flags
Details
sysdiagnode of camera capture fail in iOS 17.5.1
(285.36 MB, application/x-gzip)
2024-07-19 02:12 PDT
,
rychouwei
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-06-17 14:37:14 PDT
<
rdar://problem/130030494
>
youenn fablet
Comment 2
2024-06-19 05:54:06 PDT
This does not reproduce for me on a recent iOS 17.6 build on an iPhone 12 Pro. I'll try later on an iPhone 14 Pro. @Gio, @Quinn, can you send me a sysdiagnose (
youenn@apple.com
) with the timestamp where the issue reproduces.
rychouwei
Comment 3
2024-06-20 20:00:43 PDT
have same issue
youenn fablet
Comment 4
2024-06-25 00:28:13 PDT
(In reply to rychouwei from
comment #3
)
> have same issue
Could you send me (
youenn@apple.com
) a sysdiagnose?
youenn fablet
Comment 5
2024-06-27 10:49:03 PDT
(In reply to youenn fablet from
comment #4
)
> (In reply to rychouwei from
comment #3
) > > have same issue > > Could you send me (
youenn@apple.com
) a sysdiagnose?
I tried again today on iOS 17.5.1 and was not able to reproduce yet. Getting a sysdiagnose with the timestamp where the issue reproes would be of tremendous help.
rychouwei
Comment 6
2024-06-28 00:17:11 PDT
Hi, youenn. Were you test in iOS Safari 17.5.1? We only reproduced in iOS WKWebview, unable to reproduce in Safari. You can try this webrtc demo in iOS WKWebview 17.5.1 1. Open Camera 2. If camera works fine, refresh the page and open camera again. Try 10 times may reproduce 1~3 times.
https://webrtc.github.io/samples/src/content/getusermedia/gum/
youenn fablet
Comment 7
2024-06-28 00:30:08 PDT
@rychouwei, I only tried on a PWA, following the bug description. The freeze is also the app freezing according the description in particular `no elements on the page respond until the PWA is force-closed.` @rychouwei, maybe you are experiencing something different and it is a camera freeze, meaning for instance that video element is paused or camera capture is failing? I'll try to reproduce on a WKWebView on iOS 17.5.1. If you can send me a sysdiagnose with the precise timestamp where the issue reproduces, that would be great. If you have time to check iOS 17.6, that would be great too.
youenn fablet
Comment 8
2024-06-28 00:38:11 PDT
I tried again on a iPhone 12 Pro and was not able to reproduce on a WKWebView iOS 17.5.1, though I am unclear whether it is an app freeze, a render freeze or a capture failure that I should look at.
rychouwei
Comment 9
2024-06-28 02:02:41 PDT
Hi, youeen. It is a camera capture failing issue. The camera's mediaStreamTrack is in muted state. I'm unable to reproduce this case in iOS 17.6 beta.
youenn fablet
Comment 10
2024-06-28 02:23:03 PDT
(In reply to rychouwei from
comment #9
)
> Hi, youeen. > > It is a camera capture failing issue. The camera's mediaStreamTrack is in > muted state. > > I'm unable to reproduce this case in iOS 17.6 beta.
This is good news, thanks! @Gio, @Quinn, can you also check what the issue is (muted state or not)? And iOS 17.6 beta maybe?
rychouwei
Comment 11
2024-06-28 04:41:08 PDT
Created
attachment 471762
[details]
iOS 17.5.1 camera capture fail Unable to catch a sysdiagnose from this blog:
https://support.umbrella.com/hc/en-us/articles/4406646902420-How-to-capture-a-sys-diagnose-from-an-iOS-device
I record a video to show how to reproduce this case. Holp will help.
rychouwei
Comment 12
2024-07-19 02:12:07 PDT
Created
attachment 471916
[details]
sysdiagnode of camera capture fail in iOS 17.5.1 I got a sysdiagnode, hope will help. The time to reproduce is 15:07
Pio
Comment 13
2024-08-05 04:50:05 PDT
Hi, after installing 17.6, the same problem with camera freezing, the new version of IOS does not change anything in this case.
Pio
Comment 14
2024-08-05 05:26:08 PDT
Tested on iPhone 15 Pro Max.
Pio
Comment 15
2024-08-08 23:16:57 PDT
17.6.1 the same problem, tested on iPhone 15 Pro Max
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug