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
845 stars 17 forks source link

[App crash] #184

Open Thealbatross001 opened 5 days ago

Thealbatross001 commented 5 days ago

Checklist

Describe the bug

It just show this error

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

java.lang.NullPointerException: Can't toast on a thread that has not called Looper.prepare() at com.android.internal.util.Preconditions.checkNotNull(Preconditions.java:167) at android.widget.Toast.getLooper(Toast.java:185) at android.widget.Toast.(Toast.java:170) at android.widget.Toast.makeText(Toast.java:498) at android.widget.Toast.makeText(Toast.java:486) at com.bobbyesp.spowlo.utils.ToastUtil.makeToast(TextUtils.kt:19) at com.bobbyesp.spowlo.ui.pages.InitialEntryKt$InitialEntry$4$1.invokeSuspend(InitialEntry.kt:520) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) 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: [androidx.compose.ui.platform.MotionDurationScaleImpl@afaf487, androidx.compose.runtime.BroadcastFrameClock@ac56fb4, StandaloneCoroutine{Cancelling}@75197dd, AndroidUiDispatcher@bf12f52]

To Reproduce

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

java.lang.NullPointerException: Can't toast on a thread that has not called Looper.prepare() at com.android.internal.util.Preconditions.checkNotNull(Preconditions.java:167) at android.widget.Toast.getLooper(Toast.java:185) at android.widget.Toast.(Toast.java:170) at android.widget.Toast.makeText(Toast.java:498) at android.widget.Toast.makeText(Toast.java:486) at com.bobbyesp.spowlo.utils.ToastUtil.makeToast(TextUtils.kt:19) at com.bobbyesp.spowlo.ui.pages.InitialEntryKt$InitialEntry$4$1.invokeSuspend(InitialEntry.kt:520) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) 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: [androidx.compose.ui.platform.MotionDurationScaleImpl@afaf487, androidx.compose.runtime.BroadcastFrameClock@ac56fb4, StandaloneCoroutine{Cancelling}@75197dd, AndroidUiDispatcher@bf12f52]

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.NullPointerException: Can't toast on a thread that has not called Looper.prepare() at com.android.internal.util.Preconditions.checkNotNull(Preconditions.java:167) at android.widget.Toast.getLooper(Toast.java:185) at android.widget.Toast.(Toast.java:170) at android.widget.Toast.makeText(Toast.java:498) at android.widget.Toast.makeText(Toast.java:486) at com.bobbyesp.spowlo.utils.ToastUtil.makeToast(TextUtils.kt:19) at com.bobbyesp.spowlo.ui.pages.InitialEntryKt$InitialEntry$4$1.invokeSuspend(InitialEntry.kt:520) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) 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: [androidx.compose.ui.platform.MotionDurationScaleImpl@afaf487, androidx.compose.runtime.BroadcastFrameClock@ac56fb4, StandaloneCoroutine{Cancelling}@75197dd, AndroidUiDispatcher@bf12f52]

Screenshots & Screen Records

No response

Device info

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

java.lang.NullPointerException: Can't toast on a thread that has not called Looper.prepare() at com.android.internal.util.Preconditions.checkNotNull(Preconditions.java:167) at android.widget.Toast.getLooper(Toast.java:185) at android.widget.Toast.(Toast.java:170) at android.widget.Toast.makeText(Toast.java:498) at android.widget.Toast.makeText(Toast.java:486) at com.bobbyesp.spowlo.utils.ToastUtil.makeToast(TextUtils.kt:19) at com.bobbyesp.spowlo.ui.pages.InitialEntryKt$InitialEntry$4$1.invokeSuspend(InitialEntry.kt:520) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) 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: [androidx.compose.ui.platform.MotionDurationScaleImpl@afaf487, androidx.compose.runtime.BroadcastFrameClock@ac56fb4, StandaloneCoroutine{Cancelling}@75197dd, AndroidUiDispatcher@bf12f52]

Additional context

No response