-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
NullPointerException when trying to play a song from downloaded #290
Comments
I don't know, but maybe related...
It also produces an empty file but the download doesn't start Android 9 |
What is the solution for the problem, I am having the same problem of when I try to play a downloaded song, it won't play and give me the same error |
@LockFlip What commit are you using? |
Android 14 |
@LockFlip The commit that fixes this has not been included in a stable release yet |
Oh ok, when can I expect it to be realised? |
@LockFlip Soon™ |
Checklist
Steps to reproduce
Expected behavior
Plays a song
Actual behavior
Throws a NullPointerException and freezes the app afterwards.
Screenshots / recordings
screen-20240409-224252.2.mp4
Logs
---STACK TRACE---
java.lang.NullPointerException
at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(SourceFile:138)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(SourceFile:45)
at kotlinx.coroutines.CancellableContinuationImpl.resumeWith(SourceFile:17)
at androidx.compose.ui.input.pointer.SuspendingPointerInputModifierNodeImpl.dispatchPointerEvent(SourceFile:51)
at androidx.compose.ui.input.pointer.SuspendingPointerInputModifierNodeImpl.onPointerEvent-H0pRuoY(Unknown Source:31)
at androidx.compose.foundation.AbstractClickablePointerInputNode.onPointerEvent-H0pRuoY(Unknown Source:4)
at androidx.compose.foundation.AbstractClickableNode.onPointerEvent-H0pRuoY(Unknown Source:4)
at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(SourceFile:167)
at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(SourceFile:146)
at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(SourceFile:146)
at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(SourceFile:146)
at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(SourceFile:146)
at androidx.compose.ui.input.pointer.HitPathTracker.dispatchChanges(SourceFile:30)
at androidx.compose.ui.input.pointer.PointerInputEventProcessor.process-BIzXfog(SourceFile:122)
at androidx.compose.ui.platform.AndroidComposeView.sendMotionEvent-8iAsVTc(SourceFile:79)
at androidx.compose.ui.platform.AndroidComposeView.handleMotionEvent-8iAsVTc(SourceFile:224)
at androidx.compose.ui.platform.AndroidComposeView.dispatchTouchEvent(SourceFile:83)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3123)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2804)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3123)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2804)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3123)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2804)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3123)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2804)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:490)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1904)
at android.app.Activity.dispatchTouchEvent(Activity.java:4403)
at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:448)
at android.view.View.dispatchPointerEvent(View.java:15928)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:7242)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:7032)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6435)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6492)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6458)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:6623)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6466)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:6680)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6439)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6492)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6458)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6466)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6439)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:9432)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:9383)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:9352)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:9558)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:267)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:335)
at android.os.Looper.loopOnce(Looper.java:162)
at android.os.Looper.loop(Looper.java:294)
at android.app.ActivityThread.main(ActivityThread.java:8194)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [androidx.compose.ui.platform.MotionDurationScaleImpl@434a75, androidx.compose.runtime.BroadcastFrameClock@8d48a0a, StandaloneCoroutine{Cancelling}@24a027b, AndroidUiDispatcher@c66b898]
---LOGCAT (last 158 lines)---
--------- beginning of main
04-09 22:41:31.109 27367 27419 D TrafficStats: tagSocket(97) with statsTag=0xffffffff, statsUid=-1
04-09 22:41:31.759 27367 27477 D ProfileInstaller: Skipping profile installation for com.toasterofbread.spmp
04-09 22:41:32.360 27367 27448 D BufferPoolAccessor2.0: bufferpool2 0xb400007c32229408 : 6(49152 size) total buffers - 4(32768 size) used buffers - 4/10 (recycle/alloc) - 1/2 (fetch/transfer)
04-09 22:41:32.360 27367 27448 D BufferPoolAccessor2.0: evictor expired: 1, evicted: 1
04-09 22:41:33.316 27367 27431 D TrafficStats: tagSocket(103) with statsTag=0xffffffff, statsUid=-1
04-09 22:41:56.539 27367 27458 I SpMp : savePersistentQueue: Saved 1 songs with data PersistentQueueMetadata(song_index=0, position_ms=136449)
04-09 22:42:24.237 27367 27449 D BufferPoolAccessor2.0: bufferpool2 0xb400007c32229408 : 4(32768 size) total buffers - 4(32768 size) used buffers - 4/10 (recycle/alloc) - 1/2 (fetch/transfer)
04-09 22:42:26.547 27367 27433 I SpMp : savePersistentQueue: Saved 1 songs with data PersistentQueueMetadata(song_index=0, position_ms=136449)
04-09 22:42:28.971 27367 27378 I terofbread.spmp: Background concurrent mark compact GC freed 3055529(92MB) AllocSpace objects, 92(2552KB) LOS objects, 69% free, 42MB/138MB, paused 5.138ms,12.752ms total 331.736ms
04-09 22:42:29.239 27367 27448 D BufferPoolAccessor2.0: bufferpool2 0xb400007c32229408 : 4(32768 size) total buffers - 4(32768 size) used buffers - 4/10 (recycle/alloc) - 1/2 (fetch/transfer)
04-09 22:42:29.239 27367 27448 D BufferPoolAccessor2.0: evictor expired: 1, evicted: 1
04-09 22:42:46.797 27367 27367 W System.err: java.lang.NullPointerException
04-09 22:42:46.798 27367 27367 W System.err: at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(SourceFile:138)
04-09 22:42:46.798 27367 27367 W System.err: at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(SourceFile:45)
04-09 22:42:46.798 27367 27367 W System.err: at kotlinx.coroutines.CancellableContinuationImpl.resumeWith(SourceFile:17)
04-09 22:42:46.798 27367 27367 W System.err: at androidx.compose.ui.input.pointer.SuspendingPointerInputModifierNodeImpl.dispatchPointerEvent(SourceFile:51)
04-09 22:42:46.798 27367 27367 W System.err: at androidx.compose.ui.input.pointer.SuspendingPointerInputModifierNodeImpl.onPointerEvent-H0pRuoY(Unknown Source:31)
04-09 22:42:46.798 27367 27367 W System.err: at androidx.compose.foundation.AbstractClickablePointerInputNode.onPointerEvent-H0pRuoY(Unknown Source:4)
04-09 22:42:46.798 27367 27367 W System.err: at androidx.compose.foundation.AbstractClickableNode.onPointerEvent-H0pRuoY(Unknown Source:4)
04-09 22:42:46.798 27367 27367 W System.err: at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(SourceFile:167)
04-09 22:42:46.798 27367 27367 W System.err: at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(SourceFile:146)
04-09 22:42:46.798 27367 27367 W System.err: at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(SourceFile:146)
04-09 22:42:46.798 27367 27367 W System.err: at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(SourceFile:146)
04-09 22:42:46.798 27367 27367 W System.err: at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(SourceFile:146)
04-09 22:42:46.798 27367 27367 W System.err: at androidx.compose.ui.input.pointer.HitPathTracker.dispatchChanges(SourceFile:30)
04-09 22:42:46.798 27367 27367 W System.err: at androidx.compose.ui.input.pointer.PointerInputEventProcessor.process-BIzXfog(SourceFile:122)
04-09 22:42:46.798 27367 27367 W System.err: at androidx.compose.ui.platform.AndroidComposeView.sendMotionEvent-8iAsVTc(SourceFile:79)
04-09 22:42:46.798 27367 27367 W System.err: at androidx.compose.ui.platform.AndroidComposeView.handleMotionEvent-8iAsVTc(SourceFile:224)
04-09 22:42:46.798 27367 27367 W System.err: at androidx.compose.ui.platform.AndroidComposeView.dispatchTouchEvent(SourceFile:83)
04-09 22:42:46.798 27367 27367 W System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3123)
04-09 22:42:46.798 27367 27367 W System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2804)
04-09 22:42:46.798 27367 27367 W System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3123)
04-09 22:42:46.798 27367 27367 W System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2804)
04-09 22:42:46.798 27367 27367 W System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3123)
04-09 22:42:46.798 27367 27367 W System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2804)
04-09 22:42:46.798 27367 27367 W System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3123)
04-09 22:42:46.798 27367 27367 W System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2804)
04-09 22:42:46.798 27367 27367 W System.err: at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:490)
04-09 22:42:46.798 27367 27367 W System.err: at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1904)
04-09 22:42:46.798 27367 27367 W System.err: at android.app.Activity.dispatchTouchEvent(Activity.java:4403)
04-09 22:42:46.798 27367 27367 W System.err: at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:448)
04-09 22:42:46.798 27367 27367 W System.err: at android.view.View.dispatchPointerEvent(View.java:15928)
04-09 22:42:46.798 27367 27367 W System.err: at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:7242)
04-09 22:42:46.799 27367 27367 W System.err: at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:7032)
04-09 22:42:46.799 27367 27367 W System.err: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6435)
04-09 22:42:46.799 27367 27367 W System.err: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6492)
04-09 22:42:46.799 27367 27367 W System.err: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6458)
04-09 22:42:46.799 27367 27367 W System.err: at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:6623)
04-09 22:42:46.799 27367 27367 W System.err: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6466)
04-09 22:42:46.799 27367 27367 W System.err: at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:6680)
04-09 22:42:46.799 27367 27367 W System.err: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6439)
04-09 22:42:46.799 27367 27367 W System.err: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6492)
04-09 22:42:46.799 27367 27367 W System.err: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6458)
04-09 22:42:46.799 27367 27367 W System.err: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6466)
04-09 22:42:46.799 27367 27367 W System.err: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6439)
04-09 22:42:46.799 27367 27367 W System.err: at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:9432)
04-09 22:42:46.799 27367 27367 W System.err: at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:9383)
04-09 22:42:46.799 27367 27367 W System.err: at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:9352)
04-09 22:42:46.799 27367 27367 W System.err: at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:9558)
04-09 22:42:46.799 27367 27367 W System.err: at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:267)
04-09 22:42:46.799 27367 27367 W System.err: at android.os.MessageQueue.nativePollOnce(Native Method)
04-09 22:42:46.799 27367 27367 W System.err: at android.os.MessageQueue.next(MessageQueue.java:335)
04-09 22:42:46.799 27367 27367 W System.err: at android.os.Looper.loopOnce(Looper.java:162)
04-09 22:42:46.799 27367 27367 W System.err: at android.os.Looper.loop(Looper.java:294)
04-09 22:42:46.799 27367 27367 W System.err: at android.app.ActivityThread.main(ActivityThread.java:8194)
04-09 22:42:46.799 27367 27367 W System.err: at java.lang.reflect.Method.invoke(Native Method)
04-09 22:42:46.800 27367 27367 W System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
04-09 22:42:46.800 27367 27367 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
04-09 22:42:46.800 27367 27367 W System.err: Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [androidx.compose.ui.platform.MotionDurationScaleImpl@434a75, androidx.compose.runtime.BroadcastFrameClock@8d48a0a, StandaloneCoroutine{Cancelling}@24a027b, AndroidUiDispatcher@c66b898]
04-09 22:42:46.828 27367 27367 W SQLiteLog: (28) double-quoted string literal: "version"
04-09 22:42:46.828 27367 27367 W SQLiteLog: (28) double-quoted string literal: "Version"
04-09 22:42:46.828 27367 27367 I System.out: Database is already up to date (version 5)
04-09 22:42:46.830 27367 27948 I System.out: Retrieving logcat output...
SpMp version
0.3.1
SpMp platform
Android
OS version
Android 14
Additional information
The same thing happens on pc
The text was updated successfully, but these errors were encountered: