App crashes upon selecting music player to play an audio file from a file manager on the second attempt

in #utopian-io6 years ago (edited)

Project Information

Expected behavior

The application is not expected to crash when using it.

Actual behavior

Unfortunately the app crashes during usage.

How to reproduce

  1. Launch any file explorer (i used amaze)
  2. Search for a folder containing music (On amaz, slide right and scroll down to audio)
  3. Click on any music
  4. Select Music player as default app to play the music
  5. Press the back button
  6. Repeat step 4
  7. Music player stops/crash
  • Browser/App version: 4.0.1
  • Operating system: teckno k8, version 7.0

Recording Of The Bug

GitHub Account

https://github.com/liobash

Note

The application works fine on first launch. However after exploring for sometime, this crash becomes effective non stop

Should in case you tried and you could not locate the crash on first launch. The logcat provided below hold the rest of the information.

Logcat

05-29 17:34:42.066   920   920 E AndroidRuntime: kotlin.KotlinNullPointerException
05-29 17:34:42.066   920   920 E AndroidRuntime:    at com.simplemobiletools.musicplayer.services.MusicService$h.run(SourceFile:252)
05-29 17:34:42.066   920   920 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:836)
05-29 17:34:42.066   920   920 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:103)
05-29 17:34:42.066   920   920 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:203)
05-29 17:34:42.066   920   920 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6293)
05-29 17:34:42.066   920   920 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-29 17:34:42.066   920   920 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1094)
05-29 17:34:42.066   920   920 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)
05-29 17:35:26.641  1445  1445 E AndroidRuntime: FATAL EXCEPTION: main
05-29 17:35:26.641  1445  1445 E AndroidRuntime: Process: com.simplemobiletools.musicplayer, PID: 1445
05-29 17:35:26.641  1445  1445 E AndroidRuntime: kotlin.KotlinNullPointerException
05-29 17:35:26.641  1445  1445 E AndroidRuntime:    at com.simplemobiletools.musicplayer.services.MusicService$h.run(SourceFile:252)
05-29 17:35:26.641  1445  1445 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:836)
05-29 17:35:26.641  1445  1445 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:103)
05-29 17:35:26.641  1445  1445 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:203)
05-29 17:35:26.641  1445  1445 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6293)
05-29 17:35:26.641  1445  1445 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-29 17:35:26.641  1445  1445 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1094)
05-29 17:35:26.641  1445  1445 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)
05-29 17:37:04.715  2290  2290 E AndroidRuntime: FATAL EXCEPTION: main
05-29 17:37:04.715  2290  2290 E AndroidRuntime: Process: com.simplemobiletools.musicplayer, PID: 2290
05-29 17:37:04.715  2290  2290 E AndroidRuntime: kotlin.KotlinNullPointerException
05-29 17:37:04.715  2290  2290 E AndroidRuntime:    at com.simplemobiletools.musicplayer.services.MusicService$h.run(SourceFile:252)
05-29 17:37:04.715  2290  2290 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:836)
05-29 17:37:04.715  2290  2290 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:103)
05-29 17:37:04.715  2290  2290 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:203)
05-29 17:37:04.715  2290  2290 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6293)
05-29 17:37:04.715  2290  2290 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-29 17:37:04.715  2290  2290 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1094)
05-29 17:37:04.715  2290  2290 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)
05-29 17:38:13.141  2494  2494 E AndroidRuntime: FATAL EXCEPTION: main
05-29 17:38:13.141  2494  2494 E AndroidRuntime: Process: com.simplemobiletools.musicplayer, PID: 2494
05-29 17:38:13.141  2494  2494 E AndroidRuntime: kotlin.KotlinNullPointerException
05-29 17:38:13.141  2494  2494 E AndroidRuntime:    at com.simplemobiletools.musicplayer.services.MusicService$h.run(SourceFile:252)
05-29 17:38:13.141  2494  2494 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:836)
05-29 17:38:13.141  2494  2494 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:103)
05-29 17:38:13.141  2494  2494 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:203)
05-29 17:38:13.141  2494  2494 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6293)
05-29 17:38:13.141  2494  2494 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-29 17:38:13.141  2494  2494 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1094)
05-29 17:38:13.141  2494  2494 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)
05-29 17:38:43.930  2641  2641 E AndroidRuntime: FATAL EXCEPTION: main
05-29 17:38:43.930  2641  2641 E AndroidRuntime: Process: com.simplemobiletools.musicplayer, PID: 2641
05-29 17:38:43.930  2641  2641 E AndroidRuntime: kotlin.KotlinNullPointerException
05-29 17:38:43.930  2641  2641 E AndroidRuntime:    at com.simplemobiletools.musicplayer.services.MusicService$h.run(SourceFile:252)
05-29 17:38:43.930  2641  2641 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:836)
05-29 17:38:43.930  2641  2641 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:103)
05-29 17:38:43.930  2641  2641 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:203)
05-29 17:38:43.930  2641  2641 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6293)
05-29 17:38:43.930  2641  2641 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-29 17:38:43.930  2641  2641 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1094)
05-29 17:38:43.930  2641  2641 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)
05-29 17:39:06.420  2738  2738 E AndroidRuntime: FATAL EXCEPTION: main
05-29 17:39:06.420  2738  2738 E AndroidRuntime: Process: com.simplemobiletools.musicplayer, PID: 2738
05-29 17:39:06.420  2738  2738 E AndroidRuntime: kotlin.KotlinNullPointerException
05-29 17:39:06.420  2738  2738 E AndroidRuntime:    at com.simplemobiletools.musicplayer.services.MusicService$h.run(SourceFile:252)
05-29 17:39:06.420  2738  2738 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:836)
05-29 17:39:06.420  2738  2738 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:103)
05-29 17:39:06.420  2738  2738 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:203)
05-29 17:39:06.420  2738  2738 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6293)
05-29 17:39:06.420  2738  2738 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-29 17:39:06.420  2738  2738 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1094)
05-29 17:39:06.420  2738  2738 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)
05-29 17:40:00.300  2990  2990 E AndroidRuntime: FATAL EXCEPTION: main
05-29 17:40:00.300  2990  2990 E AndroidRuntime: Process: com.simplemobiletools.musicplayer, PID: 2990
05-29 17:40:00.300  2990  2990 E AndroidRuntime: kotlin.KotlinNullPointerException
05-29 17:40:00.300  2990  2990 E AndroidRuntime:    at com.simplemobiletools.musicplayer.services.MusicService$h.run(SourceFile:252)
05-29 17:40:00.300  2990  2990 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:836)
05-29 17:40:00.300  2990  2990 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:103)
05-29 17:40:00.300  2990  2990 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:203)
05-29 17:40:00.300  2990  2990 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6293)
05-29 17:40:00.300  2990  2990 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-29 17:40:00.300  2990  2990 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1094)
05-29 17:40:00.300  2990  2990 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)
05-29 17:40:12.174  3067  3067 E AndroidRuntime: FATAL EXCEPTION: main
05-29 17:40:12.174  3067  3067 E AndroidRuntime: Process: com.simplemobiletools.musicplayer, PID: 3067
05-29 17:40:12.174  3067  3067 E AndroidRuntime: kotlin.KotlinNullPointerException
05-29 17:40:12.174  3067  3067 E AndroidRuntime:    at com.simplemobiletools.musicplayer.services.MusicService$h.run(SourceFile:252)
05-29 17:40:12.174  3067  3067 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:836)
05-29 17:40:12.174  3067  3067 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:103)
05-29 17:40:12.174  3067  3067 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:203)
05-29 17:40:12.174  3067  3067 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6293)
05-29 17:40:12.174  3067  3067 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-29 17:40:12.174  3067  3067 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1094)
05-29 17:40:12.174  3067  3067 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)
05-29 17:42:02.852  3253  3253 E AndroidRuntime: FATAL EXCEPTION: main
05-29 17:42:02.852  3253  3253 E AndroidRuntime: Process: com.simplemobiletools.musicplayer, PID: 3253
05-29 17:42:02.852  3253  3253 E AndroidRuntime: kotlin.KotlinNullPointerException
05-29 17:42:02.852  3253  3253 E AndroidRuntime:    at com.simplemobiletools.musicplayer.services.MusicService$h.run(SourceFile:252)
05-29 17:42:02.852  3253  3253 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:836)
05-29 17:42:02.852  3253  3253 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:103)
05-29 17:42:02.852  3253  3253 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:203)
05-29 17:42:02.852  3253  3253 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6293)
05-29 17:42:02.852  3253  3253 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-29 17:42:02.852  3253  3253 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1094)
05-29 17:42:02.852  3253  3253 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)
05-29 17:43:47.566  3456  3456 E AndroidRuntime: FATAL EXCEPTION: main
05-29 17:43:47.566  3456  3456 E AndroidRuntime: Process: com.simplemobiletools.musicplayer, PID: 3456
05-29 17:43:47.566  3456  3456 E AndroidRuntime: kotlin.KotlinNullPointerException
05-29 17:43:47.566  3456  3456 E AndroidRuntime:    at com.simplemobiletools.musicplayer.services.MusicService$h.run(SourceFile:252)
05-29 17:43:47.566  3456  3456 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:836)
05-29 17:43:47.566  3456  3456 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:103)
05-29 17:43:47.566  3456  3456 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:203)
05-29 17:43:47.566  3456  3456 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6293)
05-29 17:43:47.566  3456  3456 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-29 17:43:47.566  3456  3456 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1094)
05-29 17:43:47.566  3456  3456 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)
Sort:  

Thank you for contributing to Utopian!

I was able to reproduce the bug on my android 7 device.
Please note that if you would've waited 1 hour, your score would've been higher due to waiting for the PO to comment before submitting to Utopian. Please post after getting acknowledged by PO to be eligible for higher reward.

Also, I expect you to fix the post and include your OS version. "Operating system: teckno k8" is meaningless. Add your OS version to this post and to the issue in GitHub.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thanks you sir. In my next post I will try as much as possible not too make such mistake.

Hey @liobash
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!