TheTerminatorOfProgramming / ApexMusic

Apex Music - Material You Music Player
GNU General Public License v3.0
85 stars 5 forks source link

The app just crashes on initial start #18

Closed azumukupoe closed 1 month ago

azumukupoe commented 1 month ago

Have you read the FAQ? Yes

Has the bug already been reported? Please search in GitHub issue tab before creating an issue. No

Describe the bug Crashes on initial start.

How To Reproduce Steps to reproduce the behavior:

  1. Open the app
  2. Instant crash

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Crash log If the app is crashing, add a crash log

Click to view logs Build version: 4.70 Current date: 2024-09-19 19:59:23 Device: Samsung SC-01M OS version: Android 12 (SDK 31) Stack trace: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference at com.ttop.app.apex.repository.c.g(SongRepository.kt:114) at com.ttop.app.apex.repository.c.h(SongRepository.kt:14) at Q4.l.b(LastAddedSongsRepository.kt:128) at Q4.l.c(LastAddedSongsRepository.kt:1) at Q4.l.a(LastAddedSongsRepository.kt:1) at com.ttop.app.apex.repository.RealRepository.f(Repository.kt:278) at com.ttop.app.apex.ui.fragments.LibraryViewModel.o(LibraryViewModel.kt:64) at com.ttop.app.apex.ui.fragments.LibraryViewModel$loadLibraryContent$1.j(LibraryViewModel.kt:52) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.i(ContinuationImpl.kt:8) at f6.C.run(DispatchedTask.kt:111) at k6.i$a.run(LimitedDispatcher.kt:4) at m6.h.run(Tasks.kt:3) at kotlinx.coroutines.scheduling.CoroutineScheduler$b.run(CoroutineScheduler.kt:98) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [c0{Cancelling}@994115b, Dispatchers.IO]

Device info:

Additional context Add any other context about the problem here.

TheTerminatorOfProgramming commented 1 month ago

Could you send a screenshot of the crash screen so that I can see what is causing the crash?

azumukupoe commented 1 month ago

I've already attached the crash log, and I don't think a screenshot would help you much but here

Screenshot_20240919-212238_Apex.png

TheTerminatorOfProgramming commented 1 month ago

could you please click on error details and take a screenshot

azumukupoe commented 1 month ago

but I've already posted the crash log... same as above but here

Build version: 4.70 
Current date: 2024-09-19 19:59:23 
Device: Samsung SC-01M 
OS version: Android 12 (SDK 31) 

Stack trace:  
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference
    at com.ttop.app.apex.repository.c.g(SongRepository.kt:114)
    at com.ttop.app.apex.repository.c.h(SongRepository.kt:14)
    at Q4.l.b(LastAddedSongsRepository.kt:128)
    at Q4.l.c(LastAddedSongsRepository.kt:1)
    at Q4.l.a(LastAddedSongsRepository.kt:1)
    at com.ttop.app.apex.repository.RealRepository.f(Repository.kt:278)
    at com.ttop.app.apex.ui.fragments.LibraryViewModel.o(LibraryViewModel.kt:64)
    at com.ttop.app.apex.ui.fragments.LibraryViewModel$loadLibraryContent$1.j(LibraryViewModel.kt:52)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.i(ContinuationImpl.kt:8)
    at f6.C.run(DispatchedTask.kt:111)
    at k6.i$a.run(LimitedDispatcher.kt:4)
    at m6.h.run(Tasks.kt:3)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$b.run(CoroutineScheduler.kt:98)
    Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [c0{Cancelling}@994115b, Dispatchers.IO]
TheTerminatorOfProgramming commented 1 month ago

Thanks. I will have a look at this over the next few days and fix it

TheTerminatorOfProgramming commented 1 month ago

I have had a look at your issue and I am unable to replicate it. I suggest joining the telegram group and I can send you the upcoming version so you can try and see if it works. Also are you using stock firmware or rooted firmware?

azumukupoe commented 1 month ago

Stock, the bootloader is locked

TheTerminatorOfProgramming commented 1 month ago

ok.. try this version of the app. https://drive.google.com/file/d/1I-TCtUCoITn470yCVbAHb3_gtJJVQxpO/view?usp=sharing

azumukupoe commented 1 month ago

The app just crashed on start

Build version: 4.80 
Current date: 2024-09-20 21:48:42 
Device: Samsung SC-01M 
OS version: Android 12 (SDK 31) 

Stack trace:  
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference
    at com.ttop.app.apex.repository.c.g(SongRepository.kt:114)
    at com.ttop.app.apex.repository.c.h(SongRepository.kt:14)
    at S4.l.b(LastAddedSongsRepository.kt:128)
    at S4.l.c(LastAddedSongsRepository.kt:1)
    at S4.l.a(LastAddedSongsRepository.kt:1)
    at com.ttop.app.apex.repository.RealRepository.f(Repository.kt:278)
    at com.ttop.app.apex.ui.fragments.LibraryViewModel.o(LibraryViewModel.kt:64)
    at com.ttop.app.apex.ui.fragments.LibraryViewModel$loadLibraryContent$1.h(LibraryViewModel.kt:52)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.j(ContinuationImpl.kt:8)
    at h6.C.run(DispatchedTask.kt:111)
    at m6.i$a.run(LimitedDispatcher.kt:4)
    at o6.h.run(Tasks.kt:3)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$b.run(CoroutineScheduler.kt:98)
    Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [c0{Cancelling}@df74c7b, Dispatchers.IO]
TheTerminatorOfProgramming commented 1 month ago

Unfortunately, I am unable to replicate the issue you are having, and the app is working on my android 12 device. I will keep looking, but I am not sure if I will find a solution.

TheTerminatorOfProgramming commented 1 month ago

Are you using a sd card for your music?

azumukupoe commented 1 month ago

Are you using a sd card for your music?

Yes.