Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hentoid crash and restart after user start slideshow #1213

Open
T50-La opened this issue Jan 10, 2025 · 0 comments
Open

Hentoid crash and restart after user start slideshow #1213

T50-La opened this issue Jan 10, 2025 · 0 comments

Comments

@T50-La
Copy link
Contributor

T50-La commented Jan 10, 2025

Hentoid Version:
1.20.9 (766)

Device/Android Version:
motorola edge plus / Android-12

Issue details / Repro steps:

  1. Click on a random book in the library, wanting to start a slideshow.
  2. Expect that a slideshow of the book should start when clicking the "slideshow"-icon when at the first page of said book (the icon is located at the top of the screen that the user should be on at this step and look like the "play"-button on a VHS-player. The user may have to click on the page of the book for said button to appear).
  3. Instead of getting to view a slideshow, the application crash after a very short time and restart.

Something that may or may not be relevant to the issue is that the problem was introduced together with the support for Swedish localization. Therefore step 0 could be to make sure that the system language is set to Swedish and that the application use the Swedish language at the time of trying to reproduce the issue.

It should also be mentioned that the reading direction of the application could affect the result as this issue has only been observed when the reading direction is set to Right to Left and it is untested if the issue can be observed on any other reading direction offered by the application.

Stack trace / LogCat:
Maybe not exactly a Stack trace or Logcat but here follow a crash log:

latest-crash log : begin
Hentoid ver: 1.20.9 (766)
API: 31
Device: motorola edge plus
Start : 2025-01-10T10:22:08.785289Z
End : 2025-01-10T10:22:08.785856Z (00:00)

111
java.util.IllegalFormatPrecisionException: 111
at java.util.Formatter$FormatSpecifierParser.(Formatter.java:2793)
at java.util.Formatter.parse(Formatter.java:2737)
at java.util.Formatter.format(Formatter.java:2686)
at java.util.Formatter.format(Formatter.java:2640)
at java.lang.String.format(String.java:4068)
at android.content.res.Resources.getString(Resources.java:562)
at android.content.Context.getString(Context.java:721)
at me.devsaki.hentoid.util.ToastHelperKt.toast(SourceFile:42)
at me.devsaki.hentoid.util.ToastHelperKt.toastShort(SourceFile:24)
at me.devsaki.hentoid.util.ToastHelperKt.toast(SourceFile:14)
at me.devsaki.hentoid.fragments.reader.ReaderSlideshow.toast(SourceFile:320)
at me.devsaki.hentoid.fragments.reader.ReaderSlideshow.startSlideshow(SourceFile:193)
at me.devsaki.hentoid.fragments.reader.ReaderSlideshow.onSlideShowSliderChosen(SourceFile:150)
at me.devsaki.hentoid.fragments.reader.ReaderSlideshow.access$onSlideShowSliderChosen(SourceFile:42)
at me.devsaki.hentoid.fragments.reader.ReaderSlideshow$1.invoke(SourceFile:62)
at me.devsaki.hentoid.fragments.reader.ReaderSlideshow$1.invoke(SourceFile:61)
at me.devsaki.hentoid.util.Debouncer$submit$1.invokeSuspend(SourceFile:26)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:33)
at kotlinx.coroutines.DispatchedTaskKt.resume(SourceFile:237)
at kotlinx.coroutines.DispatchedTaskKt.dispatch(SourceFile:154)
at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(SourceFile:470)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$kotlinx_coroutines_core(SourceFile:504)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$kotlinx_coroutines_core$default(SourceFile:493)
at kotlinx.coroutines.CancellableContinuationImpl.resumeUndispatched(SourceFile:596)
at kotlinx.coroutines.android.HandlerContext$scheduleResumeAfterDelay$$inlined$Runnable$1.run(SourceFile:14)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:329)
at android.app.ActivityThread.main(ActivityThread.java:8063)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@333665a, Dispatchers.Main.immediate]

latest-crash log : end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant