makecindy / makecindy/cindy

长按语音输入时 ANR 闪退(小米13 复现两次)

Open
#1,692 6 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.7k
Forks
395
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**提交人**: srf
**客户端版本**: 0.1.28

---

## 现象

长按语音输入按钮时,App 冻结约 5 秒后闪退(ANR)。同一次使用中复现两次。

## 复现步骤

1. 打开 Cindy
2. 长按语音输入按钮开始录音
3. App 卡死,约 5 秒后闪退

## 期望行为

长按语音输入正常录音、松手后识别,不卡顿不闪退。

## 实际行为

主线程阻塞超过 5 秒,系统判定 ANR 后杀死进程。ADB logcat 日志:

**第一次 (20:20:22)**
```
ANR in com.xd.cindycn/.MainActivity
Reason: is not responding. Waited 5002ms for MotionEvent(action=UP)
```

**第二次 (20:37:51)**
```
ANR in com.xd.cindycn/.MainActivity
Reason: is not responding. Waited 5000ms for MotionEvent(action=MOVE)
```

两次均为触摸事件(UP/MOVE)无响应导致,说明语音录音或识别操作阻塞了主线程。

## 设备

- 小米 13
- 日期:2026-08-04
---
**版本区域**: CN
**OS**: win32 x64 (10.0.19045)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

Start with MainActivity and the voice-input button path, then reproduce the long-press sequence while collecting ADB logcat output. Trace the recording or recognition operation associated with the MotionEvent timeout; done means long-press recording, release, and recognition complete without blocking the UI or causing an ANR.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
audio-video-rtc, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.