BobbyESP / Spowlo

A Spotify songs downloader for Android made with Jetpack Compose, Material You and the spotDL Python library
https://t.me/spowlo_chatroom
GNU General Public License v3.0
951 stars 19 forks source link

[App crash] #159

Open Madheshwaran-k opened 5 months ago

Madheshwaran-k commented 5 months ago

Checklist

Describe the bug

No response

To Reproduce

No response

Error reports

App version: 1.4.1 (1040100) Device information: Android 13 (API 33) Supported ABIs: [arm64-v8a, armeabi-v7a, armeabi] spotDL version: null

java.lang.RuntimeException: Unable to bind to service com.bobbyesp.spowlo.DownloaderKeepUpService@9337845 with Intent { cmp=com.bobbyesp.spowlo/.DownloaderKeepUpService }: android.app.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false: service com.bobbyesp.spowlo/.DownloaderKeepUpService at android.app.ActivityThread.handleBindService(ActivityThread.java:4791) at android.app.ActivityThread.-$$Nest$mhandleBindService(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2325) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:240) at android.os.Looper.loop(Looper.java:351) at android.app.ActivityThread.main(ActivityThread.java:8423) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013) Caused by: android.app.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false: service com.bobbyesp.spowlo/.DownloaderKeepUpService at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54) at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50) at android.os.Parcel.readParcelableInternal(Parcel.java:4804) at android.os.Parcel.readParcelable(Parcel.java:4772) at android.os.Parcel.createExceptionOrNull(Parcel.java:3035) at android.os.Parcel.createException(Parcel.java:3024) at android.os.Parcel.readException(Parcel.java:3007) at android.os.Parcel.readException(Parcel.java:2949) at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:6079) at android.app.Service.startForeground(Service.java:743) at com.bobbyesp.spowlo.DownloaderKeepUpService.onBind(DownloaderKeepUpService.kt:26) at android.app.ActivityThread.handleBindService(ActivityThread.java:4776) ... 9 more java.lang.NumberFormatException: For input string: "6122372809" at java.lang.Integer.parseInt(Integer.java:797) at java.lang.Integer.parseInt(Integer.java:915) at com.bobbyesp.spowlo.Downloader.getNumbers(Downloader.kt:539) at com.bobbyesp.spowlo.Downloader.downloadSong-gIAlu-s(Downloader.kt:325) at com.bobbyesp.spowlo.Downloader.access$downloadSong-gIAlu-s(Downloader.kt:29) at com.bobbyesp.spowlo.Downloader$getInfoAndDownload$1.invokeSuspend(Downloader.kt:406) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@6ad441b, Dispatchers.IO]

Screenshots & Screen Records

No response

Device info

No response

Additional context

No response