fast4x / RiMusic

A multilingual Android application for streaming music from YouTube Music.
https://rimusic.xyz
GNU General Public License v3.0
2.22k stars 113 forks source link

Setting the automatic timer to a song of 1 hour or more stops the application. #3002

Closed ZandrexV closed 2 months ago

ZandrexV commented 2 months ago

Steps to reproduce the bug

  1. Go play a song that lasts an hour or more (for example: relaxing music)
  2. Set the automatic timer at any time
  3. The app will crash (and be careful, because that doesn't happen with short songs)

Expected behavior

That the automatic timer can be set as before this update.

Actual behavior

It crashes when setting the timer to a long song.

Screenshots/Screen recordings

https://github.com/user-attachments/assets/278dec41-b8b5-4112-a278-473ede80a21b

Logs

No response

RiMusic version

v0.6.45.1

Android version

Android 6.1 & Android 8.1

Additional information

No response

fast4x commented 2 months ago

Require that you paste here RiMusic log, please enable in miscellaneous settings and after crash paste log here.

ZandrexV commented 2 months ago

Requiere que pegues aquí el registro de RiMusic, habilítalo en configuraciones varias y después de la falla, pega el registro aquí.

2024-07-29T06:31:23.701: java.lang.ClassCastException: android.view.ContextThemeWrapper cannot be cast to it.fast4x.rimusic.MainActivity a.a.m(SourceFile:57) B7.a.l(SourceFile:162) b7.s0.i(SourceFile:72) W.p.M(SourceFile:438) W.p.T(SourceFile:137) W.p.p(SourceFile:244) W.p.K(SourceFile:32) W.t.w(SourceFile:22) W.t0.t(SourceFile:102) W.r0.b(SourceFile:515) J0.d0.doFrame(SourceFile:7) J0.b0.doFrame(SourceFile:48) android.view.Choreographer$CallbackRecord.run(Choreographer.java:909) android.view.Choreographer.doCallbacks(Choreographer.java:686) android.view.Choreographer.doFrame(Choreographer.java:619) android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:897) android.os.Handler.handleCallback(Handler.java:739) android.os.Handler.dispatchMessage(Handler.java:95) android.os.Looper.loop(Looper.java:148) android.app.ActivityThread.main(ActivityThread.java:7406) java.lang.reflect.Method.invoke(Native Method) com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

ZandrexV commented 2 months ago

@fast4x I downloaded the customized version and I see that this error does not appear. Have you fixed it from there first? Screenshot_20240729-065504

ZandrexV commented 2 months ago

But yes, when entering and exiting the application I get the time of the video on the timer and not the time I set as preference. Screenshot_20240729-065846

fast4x commented 2 months ago

ok