Skip to content
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

fix: Fix Frame Processor SIGSEV crash in VisionCameraScheduler::trigger by locking mutex in dispatchAsync #2591

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

bglgwyng
Copy link
Contributor

@bglgwyng bglgwyng commented Feb 19, 2024

What

Fix for the crash on frame processor updates in VisionCameraScheduler by making sure the trigger and schedule functions are properly locked with a Mutex.

Changes

Add a missing lock.

Tested on

Galaxy S21

Related issues

Copy link

vercel bot commented Feb 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-vision-camera ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2024 2:55pm

@mrousavy mrousavy changed the title Fix for the crash on frame processor updates. fix: Fix Frame Processor SIGSEV crash by locking mutex in VisionCameraScheduler::triggger Feb 19, 2024
@mrousavy mrousavy changed the title fix: Fix Frame Processor SIGSEV crash by locking mutex in VisionCameraScheduler::triggger fix: Fix Frame Processor SIGSEV crash in VisionCameraScheduler::trigger by locking mutex in dispatchAsync Feb 19, 2024
@mrousavy mrousavy merged commit 55992bb into mrousavy:main Feb 19, 2024
8 checks passed
@mrousavy
Copy link
Owner

great work!!! thank you ❤️

isaaccolson pushed a commit to isaaccolson/deliveries-mobile that referenced this pull request Oct 30, 2024
…ger` by locking mutex in `dispatchAsync` (mrousavy#2591)

Add missing lock.
@bglgwyng bglgwyng deleted the fix-vision-camera-scheduler-crash branch November 1, 2024 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants