-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
TextureFramePool issue when using Vulkan on Android breaks graph #242
Comments
I think the plugin code itself (source files under This is mainly because Unfortunately, I don't have enough time to fix this issue soon. For example, this code block should be removed. MediaPipeUnityPlugin/Assets/Mediapipe/Samples/Scripts/DemoGraph.cs Lines 76 to 85 in a754416
|
I understand, thank you :). I have a question, in this case: Do you think it is okay to try this, or should I try to replace MediaPipe completely instead of just one folder? Maybe it is easier to replace MediaPipe completely instead of a single folder? |
If you created subdirectories, then probably each directories should have BUILD file. MediaPipeUnityPlugin/mediapipe_api/BUILD Lines 4 to 44 in b8ea5c1
There are 2 ways to achieve this.
If you'd like to make a significant change, it'd be easier to fork the repository (1). You can see how this plugin modifies existing features here. |
Fixed by #296 |
System information
Describe the current behavior
The demo scene works fine on Android (and in Editor), when built from the original demo project in the repo. However, when switching renderer to Vulkan, the detection does not work.
The same is true for my own project, in which I only import MediaPipeUnity as a package.
It seems to me like there is an issue with the camera textures, maybe on the native plugin side?
Describe the expected behavior
I hope Vulkan can be supported for this project :)
Steps to reproduce the issue
Build the desktop demo scene for Android using the Vulkan Graphics API :)
Full logs
This is the interesting part (from logcat):
08-13 08:48:30.664 17748 17775 I Unity : Graph Changed: Pose Tracking
08-13 08:48:30.664 17748 17775 I Unity : GraphSelectorController:OnValueChanged(Dropdown)
08-13 08:48:30.664 17748 17775 I Unity : UnityEngine.Events.UnityAction
1:Invoke(T0) 08-13 08:48:30.664 17748 17775 I Unity : UnityEngine.Events.UnityEvent
1:Invoke(T0)08-13 08:48:30.664 17748 17775 I Unity : UnityEngine.UI.Dropdown:OnSelectItem(Toggle)
08-13 08:48:30.664 17748 17775 I Unity : UnityEngine.Events.UnityAction
1:Invoke(T0) 08-13 08:48:30.664 17748 17775 I Unity : UnityEngine.Events.UnityEvent
1:Invoke(T0)08-13 08:48:30.664 17748 17775 I Unity : UnityEngine.EventSystems.EventFunction
1:Invoke(T1, BaseEventData) 08-13 08:48:30.664 17748 17775 I Unity : UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction
1)08-13 08:48:30.664 17748 17775 I Unity : UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)
08-13 08:48:30.664 17748 17775 I Unity : UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents()
08-13 08:48:30.664 17748 17775 I Unity : UnityEngine.EventSystems.StandaloneInputModule:Process()
08-13 08:48:30.664 17748 17775 I Unity :
08-13 08:48:30.665 17748 17775 I Unity : Gpu resources are already initialized
08-13 08:48:30.665 17748 17775 I Unity : SceneDirector:StartGraph()
08-13 08:48:30.665 17748 17775 I Unity : SceneDirector:ChangeGraph(GameObject)
08-13 08:48:30.665 17748 17775 I Unity : UnityEngine.Events.UnityAction
1:Invoke(T0) 08-13 08:48:30.665 17748 17775 I Unity : UnityEngine.Events.UnityEvent
1:Invoke(T0)08-13 08:48:30.665 17748 17775 I Unity : UnityEngine.UI.Dropdown:OnSelectItem(Toggle)
08-13 08:48:30.665 17748 17775 I Unity : UnityEngine.Events.UnityAction
1:Invoke(T0) 08-13 08:48:30.665 17748 17775 I Unity : UnityEngine.Events.UnityEvent
1:Invoke(T0)08-13 08:48:30.665 17748 17775 I Unity : UnityEngine.EventSystems.EventFunction
1:Invoke(T1, BaseEventData) 08-13 08:48:30.665 17748 17775 I Unity : UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction
1)08-13 08:48:30.665 17748 17775 I Unity : UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)
08-13 08:48:30.665 17748 17775 I Unity : UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents()
08-13 08:48:30.665 17748 17775 I Unity : UnityEngine.EventSystems.StandaloneInputModule:Process()
08-13 08:48:30.665 17748 17775 I Unity :
08-13 08:48:30.760 17748 17775 I Unity : pose_detection is saved to /storage/emulated/0/Android/data/com.DefaultCompany.MediaPipeUnityPlugin/files/Cache/pose_detection.bytes (length=2961104)
08-13 08:48:30.760 17748 17775 I Unity : Mediapipe.AssetBundleManager:WriteCacheFile(TextAsset, String, Boolean)
08-13 08:48:30.760 17748 17775 I Unity : PoseTrackingGraph:PrepareDependentAssets()
08-13 08:48:30.760 17748 17775 I Unity : DemoGraph:Initialize()
08-13 08:48:30.760 17748 17775 I Unity : DemoGraph:Initialize(GpuResources, GlCalculatorHelper)
08-13 08:48:30.760 17748 17775 I Unity : d__24:MoveNext()
08-13 08:48:30.760 17748 17775 I Unity : UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
08-13 08:48:30.760 17748 17775 I Unity :
08-13 08:48:30.802 17748 17775 I Unity : pose_landmark_full is saved to /storage/emulated/0/Android/data/com.DefaultCompany.MediaPipeUnityPlugin/files/Cache/pose_landmark_full.bytes (length=6431504)
08-13 08:48:30.802 17748 17775 I Unity : Mediapipe.AssetBundleManager:WriteCacheFile(TextAsset, String, Boolean)
08-13 08:48:30.802 17748 17775 I Unity : DemoGraph:Initialize()
08-13 08:48:30.802 17748 17775 I Unity : DemoGraph:Initialize(GpuResources, GlCalculatorHelper)
08-13 08:48:30.802 17748 17775 I Unity : d__24:MoveNext()
08-13 08:48:30.802 17748 17775 I Unity : UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
08-13 08:48:30.802 17748 17775 I Unity :
08-13 08:48:30.802 17748 17775 I Unity : Loaded dependent assets
08-13 08:48:30.802 17748 17775 I Unity : DemoGraph:Initialize()
08-13 08:48:30.802 17748 17775 I Unity : DemoGraph:Initialize(GpuResources, GlCalculatorHelper)
08-13 08:48:30.802 17748 17775 I Unity : d__24:MoveNext()
08-13 08:48:30.802 17748 17775 I Unity : UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
08-13 08:48:30.802 17748 17775 I Unity :
08-13 08:48:36.523 17748 17928 W Unity : The released texture does not belong to the pool
08-13 08:48:36.523 17748 17928 W Unity : TextureFramePool:OnTextureFrameRelease(UInt64, IntPtr)
08-13 08:48:36.523 17748 17928 W Unity :
08-13 08:48:36.613 17748 17928 W Unity : The released texture does not belong to the pool
08-13 08:48:36.613 17748 17928 W Unity : TextureFramePool:OnTextureFrameRelease(UInt64, IntPtr)
08-13 08:48:36.613 17748 17928 W Unity :
08-13 08:48:36.683 17748 17928 W Unity : The released texture does not belong to the pool
08-13 08:48:36.683 17748 17928 W Unity : TextureFramePool:OnTextureFrameRelease(UInt64, IntPtr)
08-13 08:48:36.683 17748 17928 W Unity :
08-13 08:48:36.748 17748 17928 W Unity : The released texture does not belong to the pool
08-13 08:48:36.748 17748 17928 W Unity : TextureFramePool:OnTextureFrameRelease(UInt64, IntPtr)
08-13 08:48:36.748 17748 17928 W Unity :
08-13 08:48:36.814 17748 17928 W Unity : The released texture does not belong to the pool
08-13 08:48:36.814 17748 17928 W Unity : TextureFramePool:OnTextureFrameRelease(UInt64, IntPtr)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: