### Steps to reproduce 1. Select an input device (e.g., an audio interface) 2. Make it unavailable by e.g. turning it off 3. Click Record in Audacity 4. Observe: PortAudio error; dismiss it 5. Make the device available again by e.g. turning it on 6. Make sure 1 recording channel is selected in Audio Settings 7. Start recording 8. Stop recording 9. Observe: two mono tracks are created 10. Delete a track ### Expected behavior No crash. ### Actual behavior A crash: https://github.com/user-attachments/assets/f808dcaa-7c43-445d-81e3-3841962f3e2c ### Audacity Version Audacity 3.6.0+ ### Operating system macOS
Activity
dozzzzer commentedon Aug 18, 2026
Tested
Clear pending tracks even if they are discarded
Fix crash on record cancellation (#11711)