Skip to content

Hang Risk with Beethoven > InputSignalTracker.swift > start() #79

Open

Description

@curtinmjc

When running GuitarTuner on multiple, different iOS devices (iPhone, iPad), there is a Hang Risk issue raised each time InputSignalTracker's start() method is called.

  • line of code: 84
  • code: captureSession.startRunning()
  • issue: -[AVCaptureSession startRunning] should be called from background thread. Calling it on the main thread can lead to UI unresponsiveness
  • Build Settings - Swift Language Version: Swift 5
  • iOS Deployment Target: iOS 12.0
  • Xcode Version: 14.2
  • iPhone & iPad iOS Version: 16.2

This also happens with my own app when using Beethoven audio processing Swift library.

Activity

  1. lindezhen commented on Mar 20, 2023

    @lindezhen

    DispatchQueue.global(qos: .userInitiated).async {
    self.captureSession.startRunning()
    }

  2. arlomedia commented on Nov 14, 2025

    @arlomedia

    I included this change in a pull request I just submitted:

    #80

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions