PMS: 1.28.1.5985 64-bit on Windows 10
Plex app: 8.7
iOS: 16 beta 4
I have recently noticed that when running music in the background (iPhone or iPad) that Plex eventually crashes on the device. The music stops playing and when re-opening Plex it redoes the Plex startup animation.
Steps
open Plex and shuffle the music
close the app (the music continues to play as expected)
lock the device (the music continues to play as expected)
within anywhere from 1-10 minutes the music stops
check Plex and it has crashed (not just stopped playing)
I suspect this is an issue with the newest Plex app version 8.7 which just dropped the other day as prior to that I don’t recall seeing this. Ironically, the previous version used to get odd overlay music (i.e. multiple songs would play over each other) when skipping quickly to the next track(s).
Though I am currently on the preview PMS 64-bit, I did roll back to the 32-bit and had the same issue. I also checked for db corruption but there was none reported.
Note: if a dev wants to take a look I have both the iPad and PMS logs (both non-verbose and gathered immediately after the crash happens) which I can DM to you…it seems to indicate there are some communication issues such as…
Client logs
(2408492) ❌ PMAppDelegate.m:702 | [ITERABLE]: 13:27:03.1160:0x28050f900:RequestCreator:createGetInAppMessagesRequest(_:):228: Both email and userId are nil
(2408513) ❌ PMKConnectionManager.m:996 | Unable to activate a connection for <PMKLocalServer: 0x282155860>
(2408514) ❌ PMKPlexEmbeddedServerConnection.m:53 | Error connecting to embedded server (NanoPMS): Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: gateway timed out (504)" UserInfo={NSLocalizedDescription=Request failed: gateway timed out (504)
Easily reproduceable for me:
Play something, pause it for a while (disconnecting wired headphones), resume where you left off, some seconds later > crash
Could you try and see if there are any crash logs that you could provide together with the iOS Logs zip captured after the failure. iOS Logs can be obtained through the app Settings → Help & Support → Debugging → Share Debugging Data and email the logs to your mailbox - and then attach here
For crash logs generated by iOS - one can get them by syncing the device to a PC through iTunes and then looking for plex related files on the PC
For example when backing up and syncing a device with a Windows PC, then the crash logs would be found here after a completed iTunes Device Sync
Below folder C:\Users\xxxx\AppData\Roaming\Apple Computer\Logs\CrashReporter\MobileDevice\
there would be a directory structure for each synced device
You can search the directory structure for the device for any file with “plex” in the filename
Copy the files that have timestamps in the filenames close to the time of the failure and zip and attach here with the iOS logs
Thanks. To be clear, it’s not only with music - it’s really when the app is in the background or the phone is off. I may be playing a video and just listening to the audio (I’ll do that at times for video podcasts or training recordings), and the behavior is the same.