Reproduction steps:
1. Open the attached project “BluetoothProject”
2. Build and Run the project on Android
3. When prompted, grant the application permission to record audio
4. Connect to a Bluetooth audio device while the app is running
5. Disconnect the audio device and observe the app's behaviour
Expected result: The app doesn't crash
Actual result: The app crashes when the Bluetooth audio device is disconnected
Reproducible with: 2022.2.0a10, 2022.3.6f1, 2023.1.6f1, 2023.2.0b2
Not reproducible with: 2021.3.29f1, 2022.2.0a9
Reproducible with these devices:
VLNQA00518 - Google Pixel 4 (Pixel 4), CPU: Snapdragon 855 SM8150, GPU: Adreno 640, OS: 12
VLNQA00414 - Galaxy Note10+ 5G (SM-N976V), CPU: Snapdragon 855 SM8150, GPU: Adreno 640, OS: 9
VLNQA00278 - Xiaomi Redmi Note 7 (Redmi Note 7), CPU: Snapdragon 660, GPU: Adreno 512, OS: 9.0.0
VLNQA00139 - Vivo Xplay6 (vivo Xplay6), CPU: Snapdragon 820 MSM8996, GPU: Adreno 530, OS: 7.1.1
VLNQA00132 - Xiaomi Mi 5s (MI 5s), CPU: Snapdragon 820 MSM8996, GPU: Adreno 530, OS: 6.0.1
Testing environment: Intel macOS 13.4.1
Note: The crash also occurs if you connect to the Bluetooth audio device before running the app and you disconnect from the audio device when the app is running. The app will crash.