-
Notifications
You must be signed in to change notification settings - Fork 121
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
UI freezes with camera Feed on older iPad when using METAL renderer #631
Comments
@patryk-sredzinski can you show the first entries (top) from the stack trace? It may be an issue with |
The same code now started working for me. Also my main app did as well (same TestFlight build)... Seems like a hardware issue? |
What came to my mind is |
And It broke again, I cannot see any video. My other device works well. Unfortunately the stack is empty. When I unpause debugger I get: |
Can you try running on your iPad with release mode if it makes any difference? |
I did try a TestFlight build in my app which works on iPhone and fails on iPad. So I did try to generate a minimum code to reproduce it and I did with the code above. But to confirm - release mode do experience the same issue |
Since you can reproduce it, can you try this branch with #530 reverted. |
I will in a moment, I wanted to screen-record the freeze But the moment I tapped stop screen recording button the whole UI froze |
Thank you for trying, since you mentioned "previous SDK versions worked perfectly". |
I just tried 2.0.19 - Still same issue, so or it is something with my iPad hardware. This is what I experience |
Thank you for the video, if it's a state lock issue, I don't think the whole iOS will become unresponsive. |
Tried that already didn't help |
That's crazy how screen recording makes the app work in background, but the moment I stop recording everything freezes and whole iPad becomes unresponsive. I hope it's just my hardware or iOS version, as I remember just a few days ago I was able to do video calls using LiveKit SDK. I am updating to iOS 18.3.3. another video showing in real app usage: |
And just to be clear, I haven't experienced any freezes like that on my iPad at all. The only thing that freezes is is somehow LiveKit SDK with Metal renderer. CMSampleBuffer works without issues |
Describe the bug
I was able to create simple application which just launches camera and draws it onto VideoView.
SDK Version
2.3.1
iOS/macOS Version
18.3.1 - iPad 11' 1st GEN (Intel)
Steps to Reproduce
Run the below code on older device. Works perfectly on my iPhone 15 Pro, but fails on my iPad.
(previous SDK versions worked perfectly)
(changing renderMode to sampleBuffer solves the issue too)
Stack when pausing the debugger during the freeze.
The text was updated successfully, but these errors were encountered: