Skip to content

Sync Mode not working with segmentation enabled #1141

@LeMetamax

Description

@LeMetamax

Plugin Version or Commit ID

v0.14.1

Unity Version

2022.3.17f1

Your Host OS

Windows 11

Target Platform

UnityEditor

Target Device

No response

[Windows Only] Visual Studio C++ and Windows SDK Version

No response

[Linux Only] GCC/G++ and GLIBC Version

No response

[Android Only] Android Build Tools and NDK Version

No response

[iOS Only] XCode Version

No response

Build Command

none

Bug Description

Playing the holistic scene out of the box while running on Sync mode throws a NotImplementedException error that points to line 472 of PacketGetterExtension class. This causes the application to freeze.
But does not happen when segmentation is disabled.

Steps to Reproduce the Bug

  1. Install v0.14.1 on a brand new and empty unity URP project
  2. Open the Holistic scene in Assets/MediaPipeUnity/Samples/Scenes/Holistic/Holistic.unity
  3. Select "Solution" gameobject
  4. Change Running Mode to "Sync" on the "Holistic Tracking Solution" component
  5. Press play

Log

NotImplementedException: The method or operation is not implemented.
Mediapipe.Unity.Sample.GraphRunner+<>c__451[T].<TryGetValue>b__45_0 (Mediapipe.Packet1[TValue] packet) (at Assets/MediaPipeUnity/Samples/Common/Scripts/GraphRunner.cs:211)
Mediapipe.Unity.Sample.GraphRunner.TryGetValue[T] (Mediapipe.Packet1[TValue] packet, T& value, System.Func2[T,TResult] getter) (at Assets/MediaPipeUnity/Samples/Common/Scripts/GraphRunner.cs:221)
Mediapipe.Unity.Sample.GraphRunner.TryGetValue[T] (Mediapipe.Packet1[TValue] packet, T& value) (at Assets/MediaPipeUnity/Samples/Common/Scripts/GraphRunner.cs:211) Mediapipe.Unity.Sample.Holistic.HolisticTrackingGraph.WaitNextAsync () (at Assets/MediaPipeUnity/Samples/Scenes/Holistic/HolisticTrackingGraph.cs:219) Rethrow as AggregateException: One or more errors occurred. (The method or operation is not implemented.) System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) (at <17d9ce77f27a4bd2afb5ba32c9bea976>:0) System.Threading.Tasks.Task1[TResult].GetResultCore (System.Boolean waitCompletionNotification) (at <17d9ce77f27a4bd2afb5ba32c9bea976>:0)
System.Threading.Tasks.Task`1[TResult].get_Result () (at <17d9ce77f27a4bd2afb5ba32c9bea976>:0)
Mediapipe.Unity.Sample.Holistic.HolisticTrackingSolution+d__30.MoveNext () (at Assets/MediaPipeUnity/Samples/Scenes/Holistic/HolisticTrackingSolution.cs:102)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :0)

Screenshot/Video

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

type:bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions