Skip to content

stopRecorder Behavior Change (no longer idempotent) #752

@brianlenz

Description

@brianlenz

Before submitting a new issue

  • I tested using the latest version of the library, as the bug might be already fixed.
  • I tested using a supported version of react native.
  • I checked for possible duplicate issues, with possible answers.

Bug summary

stopRecorder is no longer idempotent. In previous versions (at least react-native-audio-recorder-player), you could call stopRecorder() multiple consecutive times without issues. Now, if you call stopRecorder() once, it works, but if you try calling it again, it will hang forever and not return.

Library version

0.2.10

Project type

React Native (bare workflow)

React Native version

0.81.5

Expo SDK version (if applicable)

No response

Environment info

System:
  OS: macOS 26.2
  CPU: (10) arm64 Apple M1 Max
  Memory: 697.22 MB / 64.00 GB
  Shell:
    version: 5.3.3
    path: /opt/homebrew/bin/bash
Binaries:
  Node:
    version: 24.8.0
    path: /private/var/folders/fq/d3nyh22d32j20vxw03_hl5gh0000gn/T/xfs-8fa4d348/node
  Yarn:
    version: 4.12.0
    path: /private/var/folders/fq/d3nyh22d32j20vxw03_hl5gh0000gn/T/xfs-8fa4d348/yarn
  npm:
    version: 11.6.3
    path: /opt/homebrew/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/brian/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.2
      - iOS 26.2
      - macOS 26.2
      - tvOS 26.2
      - visionOS 26.2
      - watchOS 26.2
  Android SDK:
    API Levels:
      - "29"
      - "30"
      - "31"
      - "33"
      - "34"
      - "35"
      - "36"
    Build Tools:
      - 26.0.2
      - 26.0.3
      - 28.0.3
      - 29.0.2
      - 30.0.2
      - 30.0.3
      - 31.0.0
      - 31.0.0
      - 31.0.0
      - 33.0.0
      - 33.0.1
      - 34.0.0
      - 35.0.0
      - 36.0.0
    System Images:
      - android-28 | Google ARM64-V8a Play ARM 64 v8a
      - android-29 | Google APIs ARM 64 v8a
      - android-29 | Google Play ARM 64 v8a
      - android-30 | Google Play ARM 64 v8a
      - android-31 | Google Play ARM 64 v8a
      - android-33 | Desktop ARM 64 v8a
      - android-33 | Google APIs ARM 64 v8a
      - android-34 | Google Play ARM 64 v8a
      - android-35 | Google Play ARM 64 v8a
      - android-36 | Google Play ARM 64 v8a
      - android-36 | Pre-Release 16 KB Page Size Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2025.2 AI-252.27397.103.2522.14617522
  Xcode:
    version: 26.2/17C52
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 11.0.28
    path: /opt/homebrew/bin/javac
  Ruby:
    version: 3.3.0
    path: /Users/brian/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.0.0
    wanted: 20.0.0
  react:
    installed: 19.1.0
    wanted: 19.1.0
  react-native:
    installed: 0.81.5
    wanted: 0.81.5
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Steps to reproduce

  1. Start a recording with startRecorder().
  2. Call stopRecorder().
  3. Call stopRecorder() again.

Reproducible example repository

N/A

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