Plex Media Server crashing every 24 hours - reinstall, rollback does not solve

Server Version#:1.15.4.993-bb4a2cb6c
Player Version#:n/a
I am running: Windows 10 64 bit
Computer: Intel NUC i7, @1.9 ghz, 16 gig ram,

Hi, apologies if I haven’t done this correctly, it is my first time posting. I am a plexpass subscriber, and have been running PMS for over 4 years without issues I couldn’t solve through poking around the forum. Around the start of April, I have had the media server stop responding (requiring a reboot) approximately every 24 hours (but at seemingly random times through the day/night).

I realized that PMS updated around the start of the month (I had the plexpass version) so I rolled back to the non-plex-pass version. It did not solve the issue. I uninstalled completely, nuked the registry info, reinstalled and had it rebuild the libraries, and that also did not solve the issue. Within the timeframe I noticed the issue I had added a few new CD albums to my music collection, and removed those (but that also did not solve it). When PMS crashes, I cannot simply restart the program (it starts, but if I attempt to connect to the web interface it returns as not found until I reboot the computer).

There does not seem to be any correlation to the player, as PMS crashes even if no player has connected to it in the last 24 hours.

I have attached the PMS logs as well as the windows event viewer logs.
Plex Media Server Logs_2019-04-26_16-37-32.zip (2.7 MB)
Plex Media Server Crashes.zip (3.5 KB)
Additional Windows Event Logs.zip (4.8 KB)

I greatly appreciate any assistance you might be able to provide. Thank you!

i have the same problem

I am frustrated by this problem - it has continued to happen. I have the server restarting automatically every 12 hours as a temporary “fix” but that is an absurd fix. I would really appreciate some help here.

mine crashed for the first time in years, I dont do windows updates, I dont update plex, nothing has changed on the server, but it was offline for 2hrs without me knowing…

going through the logs as well and am not seeing anything that jumped out at me… It must be a Plex server issue (on the plex servers not local installs)… I wish we could turn on debug mode for better logging for longer without creating millions of entries and slowing performance

Had a look at the logs and the event log entries. Appear to be Heap Corruption crashes - 0xc0000374
I cannot find any uploaded crash reports - that tends to happen after heap corruptions where dumps do not get produced successfully.

There are thousands of errors relating to searches for scanning of a Premium Music Library - Normally we see such volume of errors if the music library is flat with thousands of tracks in a folder rather than one that is structured into albums and directory for each album.

How is your music library setup in terms of directory structure. The matching of tracks to albums could lead to such errors if there are thousands or even hundreds of tracks in a directory

Is your music following naming standards outlined here
https://support.plex.tv/articles/200265296-adding-music-media-from-folders/

Are there any dmp files in this directory?
C:\Users\Lavers\AppData\Local\Plex Media Server\Crash Reports\1.15.4.993-bb4a2cb6c\PLEX MEDIA SERVER

If crashes persist and no successful crash reporting, we could see if windows can create dmp files
Have a look at the registry edit mentioned on this support article
https://support.plex.tv/articles/201455336-crash-logs-plex-media-server/

and if dmp does get created please provide with logs

Please enable debug logging - see https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/
and restart the server to get fresh logs created
After next crash, restart and download the logs and attach here
See https://support.plex.tv/articles/200250417-plex-media-server-log-files/

Thanks, there are no crash logs created so far. My music folder is a mismash - Some are organized by album/artist, but older pieces are in the root directory. I used an app to force plex naming conventions years ago, and that has never been an issue before.

As it seems to be focused on music, I have re-build a smaller music directory and have enabled the settings you suggest. I will update/upload the logs if/when it happens again.

Thank you for your assistance.

I’m running into a similar problem with 1.15.5.994 but on Ubuntu 18.04.2 LTS. Just enabled debug logging today time to wait for the crash.

I am having the heap corruption issues as well. I experienced a crash mid day when my tasks run at night. If the issue is truly around the scheduled tasks, I have them set to run when media is added which fits the symptoms. Is there a fix being worked on? I built an entirely fresh server to try to remedy this a week or so ago but no luck.

Version 1.15.4.994

Windows 10 Pro of some sorts

CONTEXT: (.ecxr)
eax=1b5aeafc ebx=771e4948 ecx=00000001 edx=771e4910 esi=00000002 edi=0c16a218
eip=771aa2b9 esp=1b5aead8 ebp=1b5aeb6c iopl=0 nv up ei pl zr na pe nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000246
ntdll!RtlReportCriticalFailure+0x88:
771aa2b9 eb36 jmp ntdll!RtlReportCriticalFailure+0xc0 (771aa2f1)
Resetting default scope

FAULTING_IP:
ntdll!RtlReportCriticalFailure+88
771aa2b9 eb36 jmp ntdll!RtlReportCriticalFailure+0xc0 (771aa2f1)

EXCEPTION_RECORD: (.exr -1)
ExceptionAddress: 771aa2b9 (ntdll!RtlReportCriticalFailure+0x00000088)
ExceptionCode: c0000374
ExceptionFlags: 00000001
NumberParameters: 1
Parameter[0]: 771e4910

BUGCHECK_STR: HEAP_CORRUPTION

DEFAULT_BUCKET_ID: HEAP_CORRUPTION

PROCESS_NAME: Plex Media Server.exe

ERROR_CODE: (NTSTATUS) 0xc0000374 - A heap has been corrupted.

EXCEPTION_CODE: (NTSTATUS) 0xc0000374 - A heap has been corrupted.

EXCEPTION_CODE_STR: c0000374

EXCEPTION_PARAMETER1: 771e4910

WATSON_BKT_PROCSTAMP: 5ccc8173

WATSON_BKT_PROCVER: 1.15.4.994

PROCESS_VER_PRODUCT: Plex Media Server

WATSON_BKT_MODULE: ntdll.dll

WATSON_BKT_MODSTAMP: 7b4896c1

WATSON_BKT_MODOFFSET: da2b9

WATSON_BKT_MODVER: 10.0.16299.936

MODULE_VER_PRODUCT: Microsoft® Windows® Operating System

BUILD_VERSION_STRING: 16299.637.x86fre.rs3_release_svc.180808-1748

ANALYSIS_SESSION_HOST: MAGNETAR

ANALYSIS_SESSION_TIME: 05-13-2019 17:41:06.0983

ANALYSIS_VERSION: 10.0.18869.1002 x86fre

THREAD_ATTRIBUTES:
ADDITIONAL_DEBUG_TEXT: Followup set based on attribute [Is_ChosenCrashFollowupThread] from Frame:[0] on thread:[PSEUDO_THREAD]

FAULTING_THREAD: ffffffff

THREAD_SHA1_HASH_MOD_FUNC: aaac7d1c0cadeb665c2426cb05d2a9acf10230b4

THREAD_SHA1_HASH_MOD_FUNC_OFFSET: b7657b1145246e74cd3abfa76bca6eab40720a27

OS_LOCALE: ENU

PRIMARY_PROBLEM_CLASS: HEAP_CORRUPTION

PROBLEM_CLASSES:

ID:     [0n262]
Type:   [HEAP_CORRUPTION]
Class:  Primary
Scope:  DEFAULT_BUCKET_ID (Failure Bucket ID prefix)
        BUCKET_ID
Name:   Add
Data:   Omit
PID:    [Unspecified]
TID:    [0x3c50]
Frame:  [0] : ntdll!RtlReportCriticalFailure

LAST_CONTROL_TRANSFER: from 771b29d9 to 771aa2b9

STACK_TEXT:
00000000 00000000 heap_corruption!Plex_Media_Server.exe+0x0

THREAD_SHA1_HASH_MOD: ca4e26064d24ef7512d2e94de5a93c38dbe82fe9

SYMBOL_STACK_INDEX: 0

SYMBOL_NAME: heap_corruption!Plex_Media_Server.exe

would need to see debug logs from the server for the period leading to the crash and need the full dmp file please - this can be uploaded somewhere and link sent to me by private message. Would need corresponding logs and dmp. Automatic crash reporting normally does not work with heap corruptions - but logs captured after the restart after the crash would show if the dmp was ok or not uploaded

I will try to get you this.

We have 2 threads for this. Closing this. Continuing here [Crash - Nightly] - 1.15.3.876, 1.15.4.919, and now 1.15.4.994 - Windows Plex PMS - Plex Media Scanner has stopped working

Edit: re-opening as there are other users in this topic as well !