Mediapipe is tricky to develop with

We’re running Mediapipe facetracking with a Dell Webcam.
Through the Webrowser texture I get the camera image fine, but at some point, maybe after some hours, maybe days, maybe at startup, the Face Detection stops working.

While I can’t rule out there may be some hardware related issue, the the fact that the stream keeps showing but the module stops working until I bang the reset pin suggests that internally the module has crashed but the bug doesn’t surface so I can do anything about it.

More warnings and exceptions please!

Also, while I was trying fix the problem above, I tried restating the patch but it had this error:

2026/03/05 11:50:20.693 [CRT] (App) 0 SmilePlease Unexpected exception during Update: Failed to listen on prefix ‘http://127.0.0.1:3002/’ because it conflicts with an existing registration on the machine.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
—> System.Net.HttpListenerException (183): Failed to listen on prefix ‘http://127.0.0.1:3002/’ because it conflicts with an existing registration on the machine.
at System.Net.HttpListener.AddAllPrefixes()
at System.Net.HttpListener.Start()
at WatsonWebsocket.WatsonWsServer.Start()
at VL_IO_WebSocket.IO.WebSocket.WebSocketServer_C.Update(String Hostname_or_IP_In, Int32 Port_In, Boolean Ssl_In, Boolean Enabled_In, Boolean Enable_Logging_In, IObservable1& Data_Out, Spread1& Connected_Clients_Out, String& Statistics_Out, Boolean& Is_Listening_Out, Int32& Send_Queue_Length_Out)
at VL_MediaPipe.MediaPipe.MediaPipe_C.Update(Boolean Detect_faces_In, Boolean Detect_facial_landmarks_In, Boolean Detect_hands_In, Boolean Detect_gestures_In, Boolean Detect_poses_In, Boolean Detect_objects_In, Boolean Classify_images_In, Boolean Image_segmentation_In, Boolean Detect_image_embeddings_In, Boolean Show_overlays_In, CamerasEnum Camera_In, Boolean Flip_Camera_In, Int2 Image_Size_In, Int32 Webserver_Port_In, Int32 Websocket_Port_In, Boolean Shared_Texture_Enabled_In, Boolean Reset_In, Boolean Enabled_In, WebBrowser& Output_Out)
at PipeFace.Main.PipeFace_PProgram_.<>c__DisplayClass1_0.<Update__TRACE__>b__0(Object stateInput_48, IReadOnlyList1 inputs_49, IReadOnlyList1 incomingLinks_50, Object& stateOutput_51, Spread`1& outputs_52) in etc…

It suggests that not all the VL.CEF processes are closed/disposed, or not in the right order

Regarding VL.CEF.Renderer ghost processes: there’s a potential fix in upcoming 0.7.5 package.

1 Like