Closed Nitrousoxide closed 7 months ago
Please install the beta.librera.mobi app, it should be fixed
I was still able to replicate it on the beta for 8.9.82.
I started up adb to capture the error log:
12-02 09:19:02.969 25691 25691 E AndroidRuntime: FATAL EXCEPTION: main
12-02 09:19:02.969 25691 25691 E AndroidRuntime: Process: com.foobnix.pro.pdf.reader, PID: 25691
12-02 09:19:02.969 25691 25691 E AndroidRuntime: android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{7fb0288 u0 com.foobnix.pro.pdf.reader/com.foobnix.tts.TTSService}
12-02 09:19:02.969 25691 25691 E AndroidRuntime: at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2104)
12-02 09:19:02.969 25691 25691 E AndroidRuntime: at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2075)
12-02 09:19:02.969 25691 25691 E AndroidRuntime: at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException(Unknown Source:0)
12-02 09:19:02.969 25691 25691 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2369)
12-02 09:19:02.969 25691 25691 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
12-02 09:19:02.969 25691 25691 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:205)
12-02 09:19:02.969 25691 25691 E AndroidRuntime: at android.os.Looper.loop(Looper.java:294)
12-02 09:19:02.969 25691 25691 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8177)
12-02 09:19:02.969 25691 25691 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
12-02 09:19:02.969 25691 25691 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
12-02 09:19:02.969 25691 25691 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
Here is the epub I was using to test too if that's helpful https://cloud.nitrogendioxide.xyz/s/ps6d6ebJR6TB28F
Also here is a video of how I get the crash.
@Nitrousoxide please check new beta.librera.mobi
@foobnix 8.9.84 seems to be working fine with no crash.
Summary
With all the reinstalling I was doing for the ToC cache issue I noticed a TTS issue as well. It will crash if you attempt to open start TTS the first time on an install if you don't do so using the full TTS menu. I believe you may also need to switch the book as well? Though I'm not entirely sure on that point.
Steps to replicate:
I assume this is due to some first-run TTS settings not being present when the accessibility mode is used to activate the TTS and thus cause a crash. Flipping books and then using the full TTS menu seems to fix it, and then you can return to the book where the crash occurred and use the accessibility mode TTS controls just fine. Other files also don't require first opening the full TTS controls.
Images to reference the controls I am talking about:
Accessibility Mode Controls:![Screenshot_20231202-072524](https://github.com/foobnix/LibreraReader/assets/1363931/cf68ad4e-1baa-4dfc-8553-b2cd128be474)
Full TTS Controls:![Screenshot_20231202-072555](https://github.com/foobnix/LibreraReader/assets/1363931/b91a9266-1013-421f-bf97-f83331dad14e)