If skip some track the app goes in source errore or stop play.
Duplicate Check
- [x] I confirm I searched for existing reports and found no duplicates.
Latest Release
- [x] I confirm I am on the latest release and the problem still happens.
Platform
Android
Build Variant
Full
App Version
V.2.0.0
Did this work in a previous version?
No. I've always had this problem.
Context
- [x] I am logged in to a YouTube Music account
- [ ] Crossfade or DJ-style transition is enabled
- [ ] The problem started right after a network interruption (Wi-Fi drop, mobile signal loss, etc.)
Describe the Bug
My phone is Redmi Note 12 PRO 5g - HyperOS 2.0.16.0 - Android 14, my car is Hyndai Bayon.
When i skip some tracks, the app stop and goes in "source error".
This problem always occurs whenever I skip or change tracks—for example, if I keep changing tracks until I find the one I want to listen to, it freezes and throws an error. My car's display shows the message "Tap here to play a song."
Steps to Reproduce
- Skip all tracks (or same)
- The app STOP
- Tap on "Tap Here For Listen"
- If i select one track, "Source Error" appears on the display.
Expected Behavior
If i skip some tracks no STOP or go in "Source Error".
Log / Error Details
No response
Please update to v2.2.0 first: you're on 2.0.0, and 2.2.0 is the latest release. If skipping tracks still stops playback and shows "Source error" on 2.2.0, please post a log or a screen recording of it happening here. Please also say whether it only happens in the car or on the phone too.
Automatic reply — the maintainer may follow up.
Sorry. I've 2.2.0.
Explain to me how I can send you the log.
As soon as I can, I'll shoot the video and upload it here.
To you:
https://www.transfernow.net/dl/20261008zOvjYZqs
This looks like the same Android Auto stop that I'm tracking in #2428 (still happens on 2.5.0). The transfernow link has probably expired. If it happens again on 2.5.0, could you open Settings → App log on the phone right after, tap Share, and attach the file here or in #2428? It needs no computer.
Hello!
i've this version now on my smartphone V2.5.0.
This morning i my car (android):
and this is the error log:
10:33:55.156 E/Media3ServiceHandlerImpl: getSkipSegments: Client request(GET https://sponsor.ajay.app/api/skipSegments/?videoID=uUqcBwQjj4k&category=sponsor&category=selfpromo&category=interaction&category=intro&category=outro&category=preview&category=music_offtopic&category=poi_highlight&category=filler&service=YouTube) invalid: 404 . Text: "Not Found"
Do you need anything else?
Thank you for all!
Thanks, the screenshot helps a lot! It shows the song failing while the audio is being decoded or played out (MediaCodecAudioRenderer error), not while it is downloaded. That would explain why downloaded songs stop too. The log line is from a different time (10:33 vs 07:35) and unrelated, and the full error is cut off on the car screen. Next time it happens, could you open Settings → App log on the phone right away, tap Share, and attach the whole file here? That includes the complete error.
Thanks @Best0404, the log was exactly what was needed! You had shuffle on, and that's what triggers it. Until this is fixed, turning shuffle off should stop it. If it happens anyway, close and reopen SimpMusic and playback will work again.
@maxrave-dev I reproduced it on 2.5.0: with shuffle on, every skip leaves preloaded players behind that are never released. After about 30 skips the app hits Android's limit of 40 AudioTracks, and every song then fails with 5001. Details below.
Details and repro
Galaxy S23, 2.5.0, Android Auto via the Desktop Head Unit, 60 skips one every 1.2 s.
- The preload picks playlist positions
index + i(CrossfadeExoPlayerAdapter.kt#L3101-L3122), but Next followsshuffleOrder(L1304). So the preloaded songs are never played. seekTo(L784) never evicts old preloads, so every skip adds about 2 prepared players, each holding an AudioTrack.
| AudioTracks held by the app | Errors | |
|---|---|---|
| Shuffle off | 1 to 3 | none |
| Shuffle on | 3 → 40 after 30 skips, stuck at 40 | AudioTrack init failed x165, onPlayerError (5001) |
AudioFlinger logs Track: no more tracks available once the app hits 40 tracks. From then on every song fails within a second, which matches the MediaCodecAudioRenderer error on the car screen. The heap keeps growing too, and on Best0404's phone it ended in an OOM and an app restart. It's not specific to Android Auto; driving is just when people skip a lot.
Skip test output (shuffle on, sampled every 5 skips):
[10:08:14] skips=0 tracks=3 java=172MB
[10:08:21] skips=5 tracks=13 java=133MB
[10:08:28] skips=10 tracks=21 java=228MB
[10:08:35] skips=15 tracks=27 java=111MB
[10:08:42] skips=20 tracks=33 java=279MB
[10:08:49] skips=25 tracks=39 java=207MB
[10:08:56] skips=30 tracks=40 java=289MB
[10:09:03] skips=35 tracks=40 java=315MB
Once the limit is reached:
10:09:36.754 E/android.media.AudioTrack: Error code -20 when initializing AudioTrack.
10:09:36.755 E/MediaCodecAudioRenderer: AudioTrack init failed 0 Config(48000, 12, 2, 96000) Format(1, null, null, audio/raw, null, -1, en, [-1, -1, -1.0, null], [2, -1, 48000])
Possible fix: build the preload list from the same order Next uses (shuffle aware), and release any precached player that is no longer one of the next maxPrecacheCount songs.
Thank you for feedback @Dollarius !
This morning i tested
- App Shuffle OFF
- Android Auto Shuffle OFF
The problem still exists.
I ask to all: when this bug is resolve, it resolve the bug #2814 too?
Thank you.
Thanks for testing! With shuffle off it can still happen if you press Previous or pick a song from the queue or a list, because those also leave preloaded songs behind. Next and songs ending on their own are fine. Until it's fixed, restarting SimpMusic clears it. If you can, an App log export (Settings > App log) from a shuffle-off session would help.
#2814 is a different bug (the shuffle order), so this fix won't solve it.
@maxrave-dev also confirmed on 2.5.0 with shuffle off: each Previous press adds one AudioTrack (3 → 19 after 16 presses), and they stay until the queue changes. Same cause: seekTo never releases preloads outside the next 2 songs, so making the preload follow the shuffle order alone won't fix it.
simpmusic-log-20261105-091106.txt
This is log update to this morning. (App->Shuffle OFF, Android Auto->Shuffle OFF).
I tried closing the application from my smartphone, but the result didn't change. In fact, if I pressed the "Play" button on my smartphone, the track wouldn't start on Android Auto. On the car's display, I saw a message saying "Tap here for Simpmusic." I had to tap that on the car's display, and then it started playing again and again stop after skip same tracks.
Thanks for the log! This morning was a different problem: there are no 5001 errors, so the leak didn't happen. One song in your queue couldn't be loaded at all ("No URL found" in the log). When Next landed on it, playback stopped instead of moving on, and pressing Play retried the same song, so it stopped again. Skipping past it works.
This looks like #2573 (some songs fail to load while others play fine), or #2800 if it's children's songs. If you think you hit one of those, please comment there and include your log.
This morning, after stop on auto display i read "Source Error" :(
2.6.0 includes a fix for the 5001 errors (maxrave-dev/core@ab5f1ab): tracks you skip past are no longer kept preloaded, so they don't pile up anymore. Could you try 2.6.0? If skipping works fine for you now, I think this issue could be closed. If the "Source error" still shows up, a log right after it would help to tell whether it's the other problem from your last log (a song that can't be loaded stops playback instead of being skipped).
Hy @Dollarius !
Sorry for the delay in getting back to you :(
We can consider this bug resolved as of today, with version 2.6.0!
Great to hear that it is fixed! Could you please close this issue then? Thanks!