PMS crashes every few days

I’m running into similar issues. Early 1.10 had the same thing, I went back to 1.9.x to view for awhile as it was stable, finally made the leap back to beta and am on 1.11.0.4666 and now, while better, still problematic. It’s random, not every few days, but at some point we’ll be watching a show, and I’ll hit back on the Roku remote to see a part or hear something I missed and BAM, streaming never loads past 13% and PMS is unresponsive. I can pull up the local web URL from the server, and it seems to log those requests, but the web front-end shows the server as down and won’t select anything from it. I agree, the past few releases have introduced a great amount on instability I’m not used to.

@dfjkl said:
I’m running into similar issues. Early 1.10 had the same thing, I went back to 1.9.x to view for awhile as it was stable, finally made the leap back to beta and am on 1.11.0.4666 and now, while better, still problematic. It’s random, not every few days, but at some point we’ll be watching a show, and I’ll hit back on the Roku remote to see a part or hear something I missed and BAM, streaming never loads past 13% and PMS is unresponsive. I can pull up the local web URL from the server, and it seems to log those requests, but the web front-end shows the server as down and won’t select anything from it. I agree, the past few releases have introduced a great amount on instability I’m not used to.

I have the same behaviour with 1.11.x and 1.10.x, from where I can download the 1.9.x for centos x64 to test?

@dfjkl said:
I’m running into similar issues. Early 1.10 had the same thing, I went back to 1.9.x to view for awhile as it was stable, finally made the leap back to beta and am on 1.11.0.4666 and now, while better, still problematic. It’s random, not every few days, but at some point we’ll be watching a show, and I’ll hit back on the Roku remote to see a part or hear something I missed and BAM, streaming never loads past 13% and PMS is unresponsive. I can pull up the local web URL from the server, and it seems to log those requests, but the web front-end shows the server as down and won’t select anything from it. I agree, the past few releases have introduced a great amount on instability I’m not used to.

please ensure debug logging enabled on the server
See https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/

regardless of whether logging was already enabled, restart the server to get new logs created

when the problem arises of server not available - showing down in Plex Web, note down the time, restart the server and collect the logs
See https://support.plex.tv/articles/200250417-plex-media-server-log-files/

attach the zipped logs together with indication as to when the server was inaccessible

Update: I uninstalled Bitdefender and PMS has been stable and without issue since. I am on day 4 of operation which is a recent record :slight_smile: I may try to re-install Bitdefender and play with the various services within it to see if one is the culprit, but it most certainly seems tied to Bitdefender. This is a fairly recent thing, since I have run Bitdefender and PMS on the same box for years. Not sure which side is the root of the issue.

@“danwinst@hotmail.com” said:
Update: I uninstalled Bitdefender and PMS has been stable and without issue since. I am on day 4 of operation which is a recent record :slight_smile: I may try to re-install Bitdefender and play with the various services within it to see if one is the culprit, but it most certainly seems tied to Bitdefender. This is a fairly recent thing, since I have run Bitdefender and PMS on the same box for years. Not sure which side is the root of the issue.

I don’t know how helpful Bitdefender support is but the question to ask is if they do block application activities such as creating new threads / memory requests which was giving rise to the windows error I pasted

If they do then need to find out why and if there is a way to whitelist apps

@crazemonkey said:

@“danwinst@hotmail.com” said:
I am currently running PMS 1.11.0.4633, but this has occurred for the last 3 versions. I am subscribed to the Beta channel for PMS updates as well. I am running Windows 10 Pro 1709 (Build 16299.125). I do not see anything in the PMS crash log or the PMS log. The only thing I see in any log is in the Crash Updater log. Below is the contents of that. I have gone as far as uninstalling, and re-installing and I even moved to a new machine to see if it was a hardware issue, but so far about every 3 days it just stops working and I cannot seem to figure out why.

I am running a Core i7-5930k with 16GB DDR4 with a Highpoint 2770 Raid controller. My network card is a TN9510 NbaseT multi-gig card. Everything is running the latest driver set.

Dec 27, 2017 02:51:30.857 [16648] INFO - Crash Uploader - Platform: windows-i386 (10.0 (Build 16299)) ServerUUID: ca2dbdc2411ca5f9cc86d0600abb2fcc288eedfb UserId: danwinst@hotmail.com Version: 1.11.0.4633-70f9c31ed
Dec 27, 2017 02:51:30.857 [15824] DEBUG - HTTP requesting POST https://crashreport.plexapp.com
Dec 27, 2017 02:51:31.598 [15824] DEBUG - HTTP 200 response from POST https://crashreport.plexapp.com
Dec 27, 2017 02:51:31.598 [15824] INFO - Successfully reported 72431d22-49cc-4bd9-a090-84730de954fe

Does this happen when an iOS client tries to use the server?

Version 1.11.1 of Plex Media Server has now been released as beta. It includes the fix for the crashes associated with iOS and tvOS playback.

See Release Notice
http://forums.plex.tv/discussion/comment/1602026/#Comment_1602026

  • (Transcoder) Playing back HEVC on Apple TV or iOS could cause the server to crash (#8032)

@sa2000 said:

@“danwinst@hotmail.com” said:
Sorry for posting and then not being a part of the conversation. I was not getting any notifications of anyone responding to the post and on top of that; I did a complete and total rebuild of all PC’s in the house. So, everything got a nice upgrade :slight_smile:

Anyway…that aside…I am attaching all logs as of this morning. The crashes are still occurring about every 3 days. The most recent crash was last night on Jan 18, so all the logs are from Jan 18 and 19.

@“danwinst@hotmail.com” said:
Oh, and I am not using iOS or tvOS. Everything is either Android or Windows 10 based.

It is different - looks like memory issue during overnight scheduled tasks.
In other reported cases of this, Bitdefender was implicated. Do you have it installed ?
If not, and if the problem is repeatable, you could experiment by disabling one scheduled task at a time and see if the crashes go away to give me a clue as to which might be the cause (if there is a memory leak in Plex Media Server)

The error that eventually leads to the server crashing is this

Jan 19, 2018 03:12:52.534 [17796] ERROR - Couldn't add a new thread to the pool of size 4: boost::thread_resource_error: An attempt was made to load a program with an incorrect format

which appears to be system resources related

If BitDefender is installed, try to run for few days without it and see if there is a difference

If it is not installed, then I suggest disabling scheduled task at a time and running for few days with each change

  1. Disable analyze and tag photos
  2. Disable Fetch missing location names for items in photo sections
  3. Disable Perform refresh of program guide data

A problem was recently identified in Plex Media Server that resulted in too many threads created which in effect would end up being like a memory leak - after a while the Plex Media Server.exe process reaches the maximum memory it can run with - 2Gb and memory allocations start to fail which would also lead to the process crashing out

I cannot say if this was the problem here and if there was really a Bitdefender issue or not.

Plex Media Server version 1.12.3.4947 has the fix for this memory leak and it has just been released as Beta

See Release Notice here http://forums.plex.tv/discussion/comment/1650553/#Comment_1650553

  • Plugged memory leak with starting and stopping jobs on Windows (#7618)