Skip to content

Fix intermittent freeze on exit#160

Open
leidenwolcloud wants to merge 5 commits intoExpiredPopsicle:mainfrom
leidenwolcloud:fix_freeze_on_exit_2
Open

Fix intermittent freeze on exit#160
leidenwolcloud wants to merge 5 commits intoExpiredPopsicle:mainfrom
leidenwolcloud:fix_freeze_on_exit_2

Conversation

@leidenwolcloud
Copy link
Copy Markdown

Fixes #78 in the simplest brute force way I could think of: just kill the tracker process instead of calling the stop function through RPC.

If we really need a graceful exit for the tracker, I had some thoughts of trying to use SIGTERM or CTRL_BREAK_EVENT to terminate the process in a way that hopefully bypasses the backlogged RPC issue.

I also addressed some FIXMEs I found along the way, including refactoring of update_settings.

@leidenwolcloud leidenwolcloud marked this pull request as draft February 6, 2026 23:03
@leidenwolcloud leidenwolcloud marked this pull request as ready for review February 6, 2026 23:43
Comment thread Mods/MediaPipe/MediaPipeController.gd Outdated
Comment on lines +66 to +68
var min_hand_detection_confidence = 0.5
var min_hand_tracking_confidence = 0.5
var min_hand_presence_confidence = 0.5
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These defaults are different from the hardcoded values before, is that intentional?
(Same when they're being initialized on the python end.)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.5 is the default for these values used in MediaPipe Studio hand detection. I'm not sure where the hardcoded values before came from, but I can restore them in the interest of not subtly changing people's setups

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Occasional freeze on shutdown or switching model

2 participants