Music stuttering in background

Server Version#: (latest)
Player Version#: 7.22.0.12467

I saw this issue was reportedly fixed in the 7.20 stable update, but it seems to be broken/fixed every few updates since. Some updates have it while others don’t. The last week I’ve been playing music in offline mode, and can confirm I’m having the stuttering again on the latest 7.22 beta.

1 Like

My Google Play just gave me the update for 7.22.0.12524. I started playing music and locked the screen and it seemed fine for 20 minutes, then I unlocked to check my email and it started again.

Not sure if this is a separate issue or not, but I’m also having somewhat severe battery drain. 21% battery for only 1hr50m of offline music playback.

Beta reports get eyes on them pretty quickly when posted in Players Beta
Just hoping you get some relief.

Player Logs and a sample with reproducible steps will be useful.

You’re right, my apologies! I’ve fixed that.

Can’t figure out how to reproduce this still, but I’m on the same 7.22.0.12524 beta today, and had no skips in the background, as well as really great battery usage, for the same amount of time of listened music.

Maybe the battery usage and stuttering are linked? The only difference today is that I listened while online.

Hey that’s good news.

On 7.23.0.12770 now, and the problem is back again today. Streaming something never played before on this device, in online mode.

On 7.23.0…13123 now, still having stuttering in background / when screen is locked. I’ve included logs, the stuttering started just a few minutes before I created the zip. I started an album just ~10-15 mins before, first three songs were fine with no stuttering, then on the 4th song the stuttering started halfway through the song. I was on LTE, streaming opus 128kbps transcodes from the server.

@romancamelia any help with this? It’s getting frustrating listening to music with skips every few seconds.

Plex for Android Logs (conorahern).zip (265.6 KB)

Another user reported problems with Android music when their screen was locked, and a different user followed up that Android settings for the app’s background battery usage might be a factor. Those reminded me of you. I think the devs are investigating why the player and server don’t reconnect on Android. The logs and any steps to reproduce the issue are very helpful.

Thanks for hanging in there.

1 Like

No problem, thanks for the update! I’ve had the battery optimization setting disabled for Plex on my phone for a long time, since Plex used to randomly crash when playing back music with the old music player. I’m assuming from what you said that maybe Android starts blocking connections to the server after a period of time with battery optimizations on? But I still have the problem regardless with it off.

Hope that helps!

On app version 7.26.0.14438 with server version 1.18.2.2058, the problem still occurs for me. I just started playing music and immediately locked the screen, and skipping/stuttering started immediately. I unlocked about 15-30 seconds later to navigate back to the Plex home screen to share debug logs.

Plex for Android Logs (conorahern).zip (182.2 KB)

Really would appreciate some help with this! Music is 99% of what I use Plex for.

you’re not alone. Happening to me for a while now.
For now I only noticed the stuttering when listening synced FLAC tracks with my bluetooth Headset (Sony WH-1000XM3).
AFAIK it happens whether I’m offline or online.

plex-log-paolovador.zip (1.1 MB)
Plex Media Server Logs_2019-12-17_14-33-48.zip (5.0 MB)

1 Like

@cahern7 hey so I got back to Plex just recently, and I looked at the logs you uploaded. They do show quite a few errors that are spurious and could probably be solved by completely uninstalling the Android Plex app, Power cycling your phone, and installing the Plex app fresh. After that you will want to power cycle the computer running PMS and let that come back up for 6 to 10 min so that it can complete all its housekeeping. Then on a laptop or desktop, open a browser window to your PMS server using the web app https://app.plex.tv/ and then go into

Settings - Troubleshooting - Download Logs and zip up what it gives you. I’m going to need the true server logs from that method to debug where the issue is. From a first glance, I could see it mostly complaining when it tries to connect to a secure URL as if there is some VPN or antivirus/security in-between you and Plex.tv.

@paolovador looking at your PMS logs I’m seeing a lot of network problems that relate to remote access. Let’s have your power cycle all your hardware in your LAN, including your computers, and give everything 10min to come up smoothly. Then grab me a fresh set of PMS log files so I can see it boot up cleanly. I would only need the ones dated after the restart. If something is not obvious, we might have to start with no remote access and build up from there.

@nibbles I uninstalled the app from my phone, rebooted the entire machine PMS is running on, and then reinstalled the app. I’ve only been listening to music for ~20 mins now but so far so good. However, it’s hard to tell if the problem is entirely gone yet since the problem already came and went, and didn’t happen 100% of the time. So, I don’t think sharing logs now will help–but if it comes back in the next few days I’ll share logs from both the app and PMS. Thanks for your help!

So it’s a few hours later, and music is skipping/stuttering in the background again. @nibbles I’ll DM you the server and Android logs. If any other Plex moderators/staff would like to see logs as well, DM me and I’ll send them over no problem.

Hey @cahern7 I took a look at the logs you sent in a DM.
The server logs look reasonable, with only a few errors about permissions on some audio files. Check the paths, subdirectories, and files for the correct read access in these:

/bot/Music/Flying Lotus/Cosmogramma (2010
/bot/Music/Michael Mayer/Immer (2002)

The two things that stood at when glancing over your server logs for common problems were:

  1. IPv6 is enabled in your PMS Network Show Advanced settings, but it’s mostly likely not needed and it’s known to cause problems with Plex unless you have a perfect LAN.
  2. I see docker is involved or being scanned.
Dec 23, 2019 15:33:38.716 [0x7f3e5b747b80] DEBUG - Network interfaces:
Dec 23, 2019 15:33:38.716 [0x7f3e5b747b80] DEBUG -  * 1 lo (127.0.0.1) (loopback: 1)
Dec 23, 2019 15:33:38.716 [0x7f3e5b747b80] DEBUG -  * 2 enp2s0 (192.168.1.40) (loopback: 0)
Dec 23, 2019 15:33:38.716 [0x7f3e5b747b80] DEBUG -  * 5 docker0 (172.17.0.1) (loopback: 0)
Dec 23, 2019 15:33:38.716 [0x7f3e5b747b80] DEBUG -  * 1 lo (::1) (loopback: 1)
Dec 23, 2019 15:33:38.716 [0x7f3e5b747b80] DEBUG -  * 2 enp2s0 (fe80::672:41bc:22bf:7d61%enp2s0) (loopback: 0)

Though PMS is detecting a docker, it’s looking like you’ve avoided the problem of putting PMS inside that docker, because PMS is correctly deciding to use both the loopback and 192.168.1.0 address space:

Dec 23, 2019 15:33:38.716 [0x7f3deaffd700] DEBUG - NetworkService: Browsing on interface 127.0.0.1 on broadcast address 127.255.255.255 (index: 0)
Dec 23, 2019 15:33:38.716 [0x7f3deaffd700] DEBUG - NetworkService: Browsing on interface 192.168.1.40 on broadcast address 192.168.1.255 (index: 1)
Dec 23, 2019 15:33:38.716 [0x7f3deaffd700] DEBUG - NetworkService: Browsing on interface 127.0.0.1 on broadcast address 127.255.255.255 (index: 0)
Dec 23, 2019 15:33:38.716 [0x7f3deaffd700] DEBUG - NetworkService: Browsing on interface 192.168.1.40 on broadcast address 192.168.1.255 (index: 1)
Dec 23, 2019 15:33:40.716 [0x7f3deaffd700] DEBUG - NetworkService: Browsing on interface 192.168.1.40 on broadcast address 239.255.255.250 (index: 0)

So I’m going to say for now disable IPv6 inside of PMS settings and Save Changes.

Then I’d shutdown PMS, restart it, and give it another 6min to do housekeeping. After that, continue music testing.

You may just be running into the usual Android mobil music problems I’ve been chasing for months in a number of loooooooong threads. Since the summer, music playback on Android mobil has been erratic, and countless attempts by me to get people to debug it for the devs has gone nowhere.

Essentially, if it’s the Android Mobil issue, I can’t test that because I don’t own one. What the developers consistently ask users for is this:

  1. Sign up in the forums here for access to Android Mobil beta testing.
  2. In 7-10 days your sign up will be approved.
  3. Each week the dev team releases a new Android Mobil build.
  4. Delete the current Android App completely from the phone.
  5. Power cycle the phone and the PMS computer hardware.
  6. Install the latest Android Mobil Beta from the forum links.
  7. Make sure both the Player and Server are in Debug mode and not Verbose mode.
  8. Playback some MP3s until it fails. Use public MP3s the developers can download.
  9. Grab the player log using the Android app.
  10. Download the server logs in Settings - Troublehsooting - Download Logs
  11. Zip up the player log file and the server folder of logs.
  12. Post a new topic in the Players Beta forum for each beta you test
  13. In your topic, provide the logs, your hardware details, and links to a few songs you are testing with. The devs will want to test the same music files you use.

While that seems like a lot of work, it’s really just

  • new topic for each beta you test
  • include a sample file
  • logs
  • steps to reproduce

I’ll look some more at your logs now. Unless I follow up with new information, you have the usual Android problems the devs haven’t had enumerated correctly for them.

If you want to commiserate with others,

Ok good luck!

If you want a workaround since this has been broken forever download a free app called “Stay Alive” and configure it to keep your phone from locking when Plex is active.

I’m excited if you found a solid workaround. Please tell us more @Vectorgamer

I think I recognize you as a user from another thread. Did you solve that problem too with Stay Alive? Can you link the thread?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.