-
-
Notifications
You must be signed in to change notification settings - Fork 484
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
When changing settings the camera hangs in Async mode on Android (Samsung S22 Ultra and other Galaxy models) #844
Comments
Thank you for reporting the issue.
I'm not sure, but it looks like a bug to me. |
Sorry. I meant that I commented out the line cause there was no comment before. Not removed the comment from already commented code. |
Never mind. I know that. |
Can u give a tip on how to fix that? |
If I knew that, I would have fixed it already. |
related to #768 (comment) |
Maybe |
Description
I am running pose tracking from MediaPipeUnityPlugin-all.zip on Android in Async mode for pose tracking.
When I am starting demo first time, it immediately show camera feed but start showing landmarks only after 10-15 seconds when mediapipe initializes (or something). When I am in Sync mode app freezes during that time. But I use Async, I wait and that is not a problem.
When I change camera or something in settings, the app freezes until mediapipe is initializes again, but I'd like to see at least camera feed working like during startup and only wait for mediapipe to initialize.
I was debugging and noted that it hangs here. It doesn't return from that function.
MediaPipeUnityPlugin/Assets/MediaPipeUnity/Samples/Common/Scripts/ImageSource/TextureFrame.cs
Line 278 in 6b8c674
I compared it to PC and noted that on PC _glSyncToken is null but on Android it isn't.
So I finally commented out below line and I now I can change settings on Android without any extra blocking on the ui/camera. Still need wait for Mediapipe to initialize but that is fine.
MediaPipeUnityPlugin/Assets/MediaPipeUnity/Samples/Common/Scripts/ImageSource/TextureFramePool.cs
Line 121 in 6b8c674
I can't see where I can go any further, also don't like idea of commenting that out so perhaps you can find solution for this.
Regards
The text was updated successfully, but these errors were encountered: