finamp icon indicating copy to clipboard operation
finamp copied to clipboard

Android: Audio goes mute when next song starts

Open mats-js opened this issue 1 month ago • 10 comments

Are you using the newest Version?

  • [x] Yes, the issue happens on the newest version
  • [x] No, there aren't any open issues about this. I checked!

Type of Report

  • [ ] The app is unusable
  • [x] Something isn't quite right
  • [ ] Some functionality isn't accessible to me
  • [ ] Accessibility
  • [ ] None of the above

The exact version of the app

0.9.20

Affected Devices/Platform

  • [x] Android
  • [ ] Android Auto
  • [ ] iOS
  • [ ] Linux
  • [ ] MacOS (iOS version)
  • [ ] MacOS (native)
  • [ ] Windows

Device

Google Pixel 9 / GrapheneOS / Android 16

Description & Steps to Reproduce

When a song ends in Finamp, there is a high probability (>50%) for me that either the current song keeps on running (run time > total time of the song) without audio, or that the next song starts but also without audio. I tried the following so far but none of it helped:

  • Tried both downloaded and streamed songs
  • Tried online and offline mode
  • Reset my BT & Wifi settings
  • Tried with BT headphones and speaker
  • Checked power savings mode (all disabled for the app, all permissions given)

Logs

[downloadsService/INFO] 2025-11-02 16:35:49.048233: App returning from background, restarting downloads. [PlayOnService/INFO] 2025-11-02 16:35:49.048466: App in foreground and visible, attempting to reconnect. [QueueService/FINEST] 2025-11-02 16:36:12.461104: Replacing whole queue with 14 items. [MusicPlayerBackgroundTask/INFO] 2025-11-02 16:36:12.496349: Queue completed. [QueueService/FINEST] 2025-11-02 16:36:12.518234: Saved new rebuilt queue [QueueService/FINEST] 2025-11-02 16:36:12.518357: initialIndex: 1 [QueueService/FINEST] 2025-11-02 16:36:12.518380: Shuffled indices: 13, 8, 11, 1, 9, 7, 12, 10, 5, 3, 0, 2, 4, 6, [QueueService/FINEST] 2025-11-02 16:36:12.518481: Current Track: Instance of 'FinampQueueItem' [QueueService/FINEST] 2025-11-02 16:36:12.518501: Shuffled indices (swapped): 1, 13, 8, 11, 9, 7, 12, 10, 5, 3, 0, 2, 4, 6, [QueueService/FINE] 2025-11-02 16:36:12.657979: Order items length: 14 [QueueService/FINE] 2025-11-02 16:36:12.658436: Playback order set to FinampPlaybackOrder.linear [MusicPlayerBackgroundTask/INFO] 2025-11-02 16:36:12.658692: Shuffle mode changed to AudioServiceShuffleMode.none (false). [QueueService/FINEST] 2025-11-02 16:36:12.662833: Saved new rebuilt queue [QueueService/FINER] 2025-11-02 16:36:12.662972: Queue (current) [1-1-0-12]: From Zero (Intro), [[The Emptiness Machine [Explicit]]], {} Cut the Bridge, Heavy Is the Crown, Over Each Other, Casualty, Overflow, Two Faced, Stained, IGYEIH, Good Things Go [Explicit], Up From the Bottom, Unshatter, Let You Fade, [Volume/INFO] 2025-11-02 16:36:12.663038: Setting volume to 1.0 - user: 1.0 gain: 1.0 fade: 1.0 [QueueService/INFO] 2025-11-02 16:36:12.663073: Started playing 'From Zero [Explicit]' (QueueItemSourceType.album) in order FinampPlaybackOrder.linear from index 1 [QueueService/INFO] 2025-11-02 16:36:12.663113: Items for queue: [From Zero (Intro), The Emptiness Machine [Explicit], Cut the Bridge, Heavy Is the Crown, Over Each Other, Casualty, Overflow, Two Faced, Stained, IGYEIH, Good Things Go [Explicit], Up From the Bottom, Unshatter, Let You Fade] [KeepScreenOnHelper/FINE] 2025-11-02 16:36:12.678626: keepingScreenOn: false | mainSetting: While Showing Lyrics | whilePluggedInSetting: true | isPlaying: true | lyricsShowing: false | isPluggedIn: false [downloadsService/INFO] 2025-11-02 16:36:15.437350: App is being paused by OS. [QueueService/FINEST] 2025-11-02 16:36:18.225460: Saved new periodic queue previous:[5bfe58d7d87e09290b01e2daea9ed807] current:37f7a75520957a80eb8ee9939ab02997 seek:5517 next:[] queue:[85c131cf62c50e9910a0d7c9d584fb5a, 36a8db31d35bfed9191f80ee9c02eec1, 62ee9c72b324c6c4d8a09e6db1765efa, a608fcbc4f9ad6e13b1847f9b737c87a, 6307c3dd2ac4e1728cdd75d1531a34f9, bff00f26995d8be97289f08761536715, bf591f91c13c5a981bbeb946e2a7d0ff, 968e4af7ee570faf3ec21ad85dd7b42b, cf443c4d3edc1e480b072f03b0ddaa5b, 096363f3e67d9da01b0bae0466d6ef40, 159a79790d8af3e97a45188f5cf13970, 3cf87399ec5a10bca54cb76d87a0be04] order:FinampPlaybackOrder.linear [QueueService/FINEST] 2025-11-02 16:37:18.225566: Saved new periodic queue previous:[5bfe58d7d87e09290b01e2daea9ed807] current:37f7a75520957a80eb8ee9939ab02997 seek:65517 next:[] queue:[85c131cf62c50e9910a0d7c9d584fb5a, 36a8db31d35bfed9191f80ee9c02eec1, 62ee9c72b324c6c4d8a09e6db1765efa, a608fcbc4f9ad6e13b1847f9b737c87a, 6307c3dd2ac4e1728cdd75d1531a34f9, bff00f26995d8be97289f08761536715, bf591f91c13c5a981bbeb946e2a7d0ff, 968e4af7ee570faf3ec21ad85dd7b42b, cf443c4d3edc1e480b072f03b0ddaa5b, 096363f3e67d9da01b0bae0466d6ef40, 159a79790d8af3e97a45188f5cf13970, 3cf87399ec5a10bca54cb76d87a0be04] order:FinampPlaybackOrder.linear [QueueService/FINEST] 2025-11-02 16:38:18.225904: Saved new periodic queue previous:[5bfe58d7d87e09290b01e2daea9ed807] current:37f7a75520957a80eb8ee9939ab02997 seek:125517 next:[] queue:[85c131cf62c50e9910a0d7c9d584fb5a, 36a8db31d35bfed9191f80ee9c02eec1, 62ee9c72b324c6c4d8a09e6db1765efa, a608fcbc4f9ad6e13b1847f9b737c87a, 6307c3dd2ac4e1728cdd75d1531a34f9, bff00f26995d8be97289f08761536715, bf591f91c13c5a981bbeb946e2a7d0ff, 968e4af7ee570faf3ec21ad85dd7b42b, cf443c4d3edc1e480b072f03b0ddaa5b, 096363f3e67d9da01b0bae0466d6ef40, 159a79790d8af3e97a45188f5cf13970, 3cf87399ec5a10bca54cb76d87a0be04] order:FinampPlaybackOrder.linear [QueueService/FINEST] 2025-11-02 16:39:18.226061: Saved new periodic queue previous:[5bfe58d7d87e09290b01e2daea9ed807] current:37f7a75520957a80eb8ee9939ab02997 seek:185518 next:[] queue:[85c131cf62c50e9910a0d7c9d584fb5a, 36a8db31d35bfed9191f80ee9c02eec1, 62ee9c72b324c6c4d8a09e6db1765efa, a608fcbc4f9ad6e13b1847f9b737c87a, 6307c3dd2ac4e1728cdd75d1531a34f9, bff00f26995d8be97289f08761536715, bf591f91c13c5a981bbeb946e2a7d0ff, 968e4af7ee570faf3ec21ad85dd7b42b, cf443c4d3edc1e480b072f03b0ddaa5b, 096363f3e67d9da01b0bae0466d6ef40, 159a79790d8af3e97a45188f5cf13970, 3cf87399ec5a10bca54cb76d87a0be04] order:FinampPlaybackOrder.linear [QueueService/FINER] 2025-11-02 16:39:23.307640: Play queue index changed, new index: 2 [QueueService/FINEST] 2025-11-02 16:39:23.310602: Saved new rebuilt queue [QueueService/FINER] 2025-11-02 16:39:23.310780: Queue (current) [2-1-0-11]: From Zero (Intro), The Emptiness Machine [Explicit], [[Cut the Bridge]], {} Heavy Is the Crown, Over Each Other, Casualty, Overflow, Two Faced, Stained, IGYEIH, Good Things Go [Explicit], Up From the Bottom, Unshatter, Let You Fade, [PlaybackHistoryService/FINE] 2025-11-02 16:39:23.311557: Handling track change event from The Emptiness Machine [Explicit] to Cut the Bridge [OfflineListenLogHelper/INFO] 2025-11-02 16:39:23.395234: Storing offline listen for The Emptiness Machine [Explicit] [MetadataProvider/FINE] 2025-11-02 16:39:24.227612: Fetching metadata for 'Casualty' (a608fcbc4f9ad6e13b1847f9b737c87a) [MetadataProvider/FINE] 2025-11-02 16:39:24.238390: Got offline metadata for 'Casualty' [MetadataProvider/FINE] 2025-11-02 16:39:24.257907: Got offline lyrics for 'Casualty' [MetadataProvider/FINE] 2025-11-02 16:39:24.258362: Fetched metadata for 'Casualty' (a608fcbc4f9ad6e13b1847f9b737c87a): Instance of 'LyricDto' true [PlaybackHistoryService/FINE] 2025-11-02 16:39:33.036811: Handling play/pause event for Cut the Bridge [KeepScreenOnHelper/FINE] 2025-11-02 16:39:33.037507: keepingScreenOn: false | mainSetting: While Showing Lyrics | whilePluggedInSetting: true | isPlaying: false | lyricsShowing: false | isPluggedIn: false [downloadsService/INFO] 2025-11-02 16:39:37.475219: App returning from background, restarting downloads. [PlayOnService/INFO] 2025-11-02 16:39:37.475368: App in foreground and visible, attempting to reconnect. [QueueService/FINEST] 2025-11-02 16:39:38.225724: Saved new periodic queue previous:[5bfe58d7d87e09290b01e2daea9ed807, 37f7a75520957a80eb8ee9939ab02997] current:85c131cf62c50e9910a0d7c9d584fb5a seek:9754 next:[] queue:[36a8db31d35bfed9191f80ee9c02eec1, 62ee9c72b324c6c4d8a09e6db1765efa, a608fcbc4f9ad6e13b1847f9b737c87a, 6307c3dd2ac4e1728cdd75d1531a34f9, bff00f26995d8be97289f08761536715, bf591f91c13c5a981bbeb946e2a7d0ff, 968e4af7ee570faf3ec21ad85dd7b42b, cf443c4d3edc1e480b072f03b0ddaa5b, 096363f3e67d9da01b0bae0466d6ef40, 159a79790d8af3e97a45188f5cf13970, 3cf87399ec5a10bca54cb76d87a0be04] order:FinampPlaybackOrder.linear [EnvironmentMetadata/WARNING] 2025-11-02 16:39:47.125057: Failed to load server info: TimeoutException: Failed to fetch server info within the timeout period. [Chopper/INFO] 2025-11-02 16:39:47.240578: --> GET PUBLICURL/System/Info/Public Authorization: MediaBrowser UserId="USER_ID", Token="TOKEN", Client="Finamp", Device="Pixel 9",DeviceId="ca370083-198a-4881-98eb-28355356f9ab-", Version="0.9.20" content-length: 0 --> END GET

Additional Information

From what I was able to find out, this is likely not a Finamp issue by itself but has to do with gapless audio playback on new(er) Android versions? In other repos I read that the issue was fixed in the respective app when gapless audio was deactivated, but in the Finamp beta I was unable to find a setting to deactivate it. Is there any way I can test this assumption?

mats-js avatar Nov 02 '25 15:11 mats-js

Face the same issue

dev-inside avatar Nov 10 '25 19:11 dev-inside

I had to downgrade the version to .19 because it was unbearable.

I tried to figure out if the issue is specific to my hardware. I upgraded my os and my earbuds fw, nothing seems to work. I didn't want to transcode my whole collection because it takes ages, but in another issue, there is the observation that it happens if you transcode to MP3. It seems to work with opus. It is still a bug, but at least a work around.

As far as I can tell, it mostly happens if you connected via bluetooth headphones. My car radio was more stable. I don't know, but this is something I observed.

dev-inside avatar Nov 25 '25 11:11 dev-inside

@dev-inside did the downgrade to 0.9.19 solve the issue for you? I thought that the problem was present for me already before the latest update, but cannot verify this.

Interesting, I have basically only (non-transcoded) MP3s in my library, so it could generally be file-type-related.

mats-js avatar Nov 25 '25 13:11 mats-js

I had to downgrade the version to .19 because it was unbearable.

Hey @mats-js sorry, I guess it was not really clear from my side, but yes, it fixed the issue. I hope they will fix it soon, cause as I already said: I don't want to transcode my MP3s especially when I'd the issue initially in October, the Jellyfin-Backend (I believe 10.11.1 or so) was soooo slow.

.19 is working, even when it seems to be slower while downloading your playlist, but I prefer working over waiting :D

Interesting, I have basically only (non-transcoded) MP3s in my library, so it could generally be file-type-related.

same here - only mp3s in my library

dev-inside avatar Nov 25 '25 13:11 dev-inside

@mats-js By the way my setup is:

  • Pixel 9a with GrapheneOS
  • Most recent build (based on Android 16)
  • Jellyfin (Docker) via Truenas (Yeah, I know I am a lazy fuck :D)

I dug deep into it

I use as Earbuds CMF Buds 2 Pro. It might vary what you connect to, cause Audio-BT-Devices kinda transcode it to what the device supports. Then there are also other factors like if it has noise supression built in, which can be sometimes helpful or awful. On one hand it cuts off a half second of the beginning of the song, but it enforces the play state. Saw it with my stupid Soundbar like this. Also Battery-Saving features can F-Up such states with playback. As already mentioned: my Car radio worked with less isssues.

But I can tell after extensive testing on 6 BT-Devices and on 3 Android-Devices with Graphene and LineageOS: it is not Hardware or Software-Related - at least not from the clients - but it can make the experience of the bug worse.

I tried the Opus route and it worked, but I'd tested it only with like 3-4 Songs. Not sure if it works with my whole Playlist.

TL;DR: It seems to be the problem with Mp3s.

dev-inside avatar Nov 25 '25 13:11 dev-inside

@dev-inside nice, I have pretty much the identical setup :D

And thanks for the insights, I'll definitely try the downgrade route then! For me it happened both with BT devices and via speaker, very odd. Did the most recent Graphene update (with Material design adjustments) bring any improvements for you re this issue? I was kind of counting on Google fixing the issue with this.

mats-js avatar Nov 25 '25 14:11 mats-js

@mats-js Had the issue before the recent upgrade with the Materia Expressive UI -by the way I kinda miss the previous design... What was Google thinking???? - I am a UI/UX Designer myself and I can tell - I see what they where going for, but the execution is a mess.

Functionally I had only one issue with Wifi-Calling in Flightmode, but after De- and reactivating it worked again. The BT-Issue was the same - but one thing seems to be improved: I lost connection with my earbugs 😆 on Voip-Calls in Signal/Molly from time to time. Didn't happen yet. So maybe an improvement?!

dev-inside avatar Nov 25 '25 15:11 dev-inside

Update: @dev-inside for some reason the downgrade to .19 did not help in my case, but your tip with OPUS transcoding did the trick! I only use Finamp with downloaded songs, so since I removed all downloads and re-downloaded with OPUS transcoding I haven't encountered the error again since. Not a solution to the original problem, but a workaround nonetheless.

mats-js avatar Nov 27 '25 06:11 mats-js

@mats-js technically the .20 should work then as well with that solution. Good to hear. Are you satisfied with the quality? I hate that people often claim to be audiophile, but as a hobby musician I can hear quality-reduction 😀 Does it sound as expected on your end in Opus?

dev-inside avatar Nov 27 '25 11:11 dev-inside

@dev-inside I'm definitely not an audiophile, but given that most of my libraries is around 240kbps MP3s, Opus does sound very fine to me!

mats-js avatar Nov 27 '25 20:11 mats-js