Random crashes, cant figure out why?

Used to happen a lot. Then stopped. Now, last week or two seems to crash randomly once a day or so. I don’t see anything in the windows logs standing out.

How can I get to the bottom of this? How to create log and/or where to upload? This is getting frustrating…

see https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/

after a crash, restart and get the logs and attach zip in post here
See https://support.plex.tv/articles/200250417-plex-media-server-log-files/

The server has been restarted automatically via an app I have, but everyone still got disconnected.

I can enable debug logging now but I can’t purposely reproduce the error, it’s random. Can I just save my current log and upload for review?

Plex Media Server Logs_2019-08-19_21-35-28.zip (4.9 MB)

Hope this was created right. Enabled debug logging and saved log and downloaded. Windows 10 PRO x64 OS

I need the logs immediately after a restart following a crash. Also please turn off verbose logging leaving just debug logging on. The log files filled up within 4 minutes

The logs were captured at 21:35. The server was restarted at 20:54
I presume the crash happened just before 20:54
The oldest log time i have is 21:31 - 37 minutes after the crash

After disabling verbose logging please restart the server to get fresh logs created
Then immediately after next crash and restart, get the logs

Sounds good. Disabled the auto-restart app, unchecked verbose, enabled debug, and restarted the server. Next time it crashes I will manually reboot the plexmediaserver.exe and instantly download the logs for upload. I am on most current install too, version 1.16.5.1488. Thanks sa2000

Crashed again, 25 hours later. Instant logs created upon reboot: Plex Media Server Logs_2019-08-20_21-37-41.zip (4.7 MB)

Also, my second server stayed connected fine so its not an internet issue. The PlexMediaServer.exe actually crashes

The Plex Media Server process appears to have run out of memory with failure to allocate memory just before crashing

Aug 20, 2019 21:27:33.865 [36320] ERROR - Thread: Uncaught exception running async task which was spawned by thread 38148: bad allocation

Can you tell if there is an empty dmp file within this path

C:\Users\Matt\AppData\Local\Plex Media Server\Crash Reports\1.16.5.1488-deeb86e7f\PLEX MEDIA SERVER

When there are memory issues - then Plex Media Server may also fail to get a crash report created

The logs show there were issues much before that with build up of requests - .

If the crash is predictable, we can try and get diagnostics before it happens
One way to check for build up of requests is to get the list of current connections from the server

http://127.0.0.1:32400/connections?X-Plex-Token=xxxxxxxxxxxxx
where xxxxxxxxxxx is the server token - see https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/

Substitute the server token for the xxxxxxxxxxxxx
If you get back hundreds or thousands of connections listed then that would be indicative of a problem and we can then get the logs and a process dump.

The logs show there were about 300 connections at the beginning of the log and over 600 when we crashed

copy the responses of the connections requests to text files and save noting down the time = use filenames to give times when they were done

when providing process dump - see https://support.plex.tv/articles/201373203-gather-a-process-dump-or-sample-process/ please zip and send me link to where it is uploaded by private message. Would need the connections list / logs / dmp file

Also could you see how much memory is being used by the process at the time

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