coolreader
coolreader copied to clipboard
Android: app crashes while running TTS in backgroud
Sympthoms
- While TTS is running in the background the app crashes frequently.
- The current position is not remembered. It's required to search the position manually once the app is started again.
- If the user's ViewMode setting is "Pages" before the crash, then it's overwritten with the setting "Scroll" that is temporarily active during the TTS processing.
Assumptions
- The CoolReader instance is killed by the system to release the resources.
Tried measures
- Disabling energy saving for CoolReader doesn't help.
- Disabling energy saving in the mobile device doesn't help.
Affected devices:
- Samsung Galaxy Note 3
- Samsung Galaxy Note 4
- Samsung Galaxy Note 9
It looks like the issue is a common one.
Suggestion of the solution Adding optional notification which should be active in the notification area while TTS is running.
Effects:
- Preventing CoolReader from being killed by the OS
- Possibility of functional improvement - placing TTS playback buttons (Play/Pause, Stop, Next, ...)
@MikWas Can you test latest (3.2.49) version? I hope it's fixed in #169.