Plex Crashes Every 3 Days at 3:30am Due to System "Out of Memory" Since PMS 1.24.4.5081

Thanks for getting that information

Following tests by @heygaul on a Synology DSM 7 NAS, we are going to make a change to the fix to avoid first startup taking 50 minutes before the server is available - this was on a server with 5.7Gb db and just over 1.5 million duplicated extras

Waiting to hear back if there will be a new development build with this change before the new year

2 Likes

my plex on synology dsm 6.1 always crash 4~5 time everyday …may i get plex alpha ,too???
i need to offer what to you?? thanks for help~

I am hoping to have a new alpha build with the fix next week. The developer involved is still on holiday

1 Like

I need to establish if your problem is due to a massive number of Extras (Trailers / Clips) for a movie.

So would need to see the result of this sqlite query on the Plex Media Server database

select count(metadata_item_id),metadata_item_id from metadata_relations group by metadata_item_id order by count(metadata_item_id) desc limit 20

If you are unable to do that, get me server logs zip after a couple of these crashes

1 Like

Plex Media Server Logs_2022-01-07_17-37-11.zip (3.6 MB)
this is my log~big thanks to you !!!

Thanks - I can see there were crashes on the 6th January - the main server logs do not get back to that time - would need to capture the logs zip on restart immediately following a crash

The crash data does not appear to the crash reporting system - we do make a copy of these crash reports into $TMPDIR after attempting to upload

Do you have this area available on a network share outside the NAS to look through ? or do you have linux shell access ?

The directory that $TMPDIR points appears to be
/volume1/Plex/tmp_transcoding

Would like to know if you can see files in this directory through a network share or directly in linux shell - the dump files of the 6th January were named

bcecf48b-1a51-4276-83d941bd-e8a82e12
e5e10cc4-bca8-4c8a-537682a8-65322b5e
52b3ee15-9fa9-4926-f07b5685-7d198bdf
b2bc29d9-1c2b-4d13-6de103a6-23dd90b8
d07e2b18-a66d-478d-36f815bd-9d564c18

If you find them - please zip and send me zip by Private Message - of course would most likely need matching server logs - but at least you can confirm if you can access this directory and get the dump files for any future crashes that you would also have corresponding server logs for

i have send my tmp_transcoding to your private message . thanks you!!!

if you need to putty my nas i can give you my ddns and password to you .i will open port for you
or you need to access my nas …just tell me ~

Thanks

I have analyzed one of the dumps and it looks similar to one that is fixed in latest Plex Pass beta

  • (Hubs) Fix potential serialization issue of CW hubs (#13237)

Would need matching server logs to confirm if same issue
So either wait for the beta to become public release and try it or get me matching server logs and dumps (new zip of the $TMPDIR directory with the server logs zip after next crash) and I can then confirm it is this issues - fixed in 1.25.3 or a new issue

thanks you!!! now i update to 1.25.3.5385 vision . when Plex Crash again i will send my log & tmp_transcoding to you. big thanks for your help!!!

I as well am having a concern I cannot pinpoint where my plex server (W10) crashes randomly. The application remains open in the system tray and needs a manual restart to resume functionally. This seemed to happen after I upgraded all plex libraries to the latest agent. Before then I had no issues at all.

Version 1.25.2.5319

Is there a possible solution to this or things that I can try to resolve this? I have not been successful with any input from my initial thread

Thank you,

i use this code to auto restart my plex when plex crash . i found it on this web site Auto Restart Plex on Synology it’s works for me !! perfect!! ps:i use synology DSM6

my plex crash 3-5 time a day . this can fix my problems
i setup every one minute check 32400 port … if plex crash it will stop & start!!
i did it as a Task Scheduler . Every one minute run this code work perfect!

hope this code can help everyone!

#!/bin/bash
echo Checking if plex is running...
#if /usr/syno/bin/synopkg is_onoff "Plex Media Server" > /dev/null
if echo > /dev/tcp/127.0.0.1/32400 > /dev/null
then
 echo Plex is running.
 exit 0
else
 echo Plex is not running.  Will attempt to start it.
 echo
 echo --------------------Last 20 log entries--------------------
 tail -20 /volume1/Plex/Library/Application\ Support/Plex\ Media\ Server/Logs/Plex\ Media\ Server.log
echo --------------------End of log--------------------
 echo
 /usr/syno/bin/synopkg stop "Plex Media Server"
 sleep 60
 /usr/syno/bin/synopkg start "Plex Media Server"
 exit 1
fi

hope this can help you!

Appreciate this.
However I do believe it is pertaining to another concern. It seems plex update agent hangs and always states ‘checking for updates’
update
I want to say it is something related to this but cannot pin point why all the sudden plex is having this concerns (Windows 10 Server)

I have sent you both a new alpha build with the fixes for this duplicate extras issue
Alpha 1.25.4.5396

Could be some sort of deadlock rather than a crash leading to requests queuing up and hanging

For Deadlock diagnostics on windows - see this post 503 Service Unavailable - #92 by sa2000

Hello,
Thank you for your response.
I have made some progress eliminating some of the PlexScriptHost processes manually. I am going to see over the next few days if this was the occurrence that was the concern. This also occurred on a close friend of mines system. We have been attempting to troubleshoot together. I will look into the post you suggested to see if it relates to what is happening.

At least now that I have cleared these processes my plex update agent in the GUI is showing up to date and not hanging on ‘checking for updates’

script

Hi sa2000,

Thanks for your work on this issue, I think I have the same problem. Please see a screenshot of my database files (just after a fresh crash/reboot of the app) as requested below.

I would be prepared to trial your alpha build. I am running a DS1019+ Synology NAS. Let me know if you need any more information.

Thanks.

sent you DSM 7 intel spk for latest alpha version 1.25.4.5412
Also with instructions for confirming you have the extras issues and also for getting me logs after the server launches on the alpha release

thanks

Still and issue here. Please crashes randomly with 503 service unavailable, and a restart fixes it. This is getting to be problematic and looking at alternatives now.

That is a deadlock problem - would need deadlock diagnostics to investigate - connections list, process dump, debug server logs - There are several threads relating to deadlocks - this is one Plex Deadlocking with to many hung connections issues for last 5 months Now!. (This ended up giving me anxiety attacks!) (Edited title for clarification) - Plex Media Server / Desktops & Laptops - Plex Forum

See this post for deadlock diagnostics on windows
Plex falls offline, doesn’t crash PMS.exe - General / General Discussions - Plex Forum