Server crashing - Windows Event Viewer shows ucrtbase.dll as faulting module

Server Version#: 1.24.0.4897
Player Version#: ?? N/a but Plex Web is 4.59.2

This is my first time using these forums so please bear with me if I’m missing relevant info.

Relevant info from the most recent Windows Event Viewer log (today at 0422):

Faulting application name: Plex Media Server.exe, version: 1.24.0.4897, time stamp: 0x610818bf  
Faulting module name: ucrtbase.dll, version: 10.0.19041.789, time stamp: 0x82dc99a2  
Exception code: 0xc0000409  
Fault offset: 0x0009eddb  
Faulting process id: 0x2a38  
Faulting application start time: 0x01d78b32d858dcca  
Faulting application path: D:\Program Files (x86)\Plex Media Server\Plex Media Server.exe  
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll  
Report Id: e67c5d76-2240-4f4c-9ab7-d3ec8724b6cf  
Faulting package full name:   
Faulting package-relative application ID:   

I ran sfc /scannow and it fixed errors, but the log didn’t have any mention of ucrtbase, and the issue returned this morning…

I don’t see how to attach files, so here’s the last 3 minutes of items from Plex Media Server.log

Aug 07, 2021 04:20:01.920 [11292] DEBUG - Completed: [127.0.0.1:53546] 200 GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (6 live) GZIP 20013ms 5 bytes (pipelined: 1620)
Aug 07, 2021 04:20:01.946 [11292] DEBUG - Auth: authenticated user 1 as CaffeinatedGuy
Aug 07, 2021 04:20:01.946 [13940] DEBUG - Request: [127.0.0.1:53546 (Loopback)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (6 live) GZIP Signed-in Token (CaffeinatedGuy)
Aug 07, 2021 04:20:01.946 [13940] DEBUG - Content-Length is -1 (of total: -1).
Aug 07, 2021 04:20:21.962 [11292] DEBUG - Completed: [127.0.0.1:53546] 200 GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (6 live) GZIP 20015ms 5 bytes (pipelined: 1621)
Aug 07, 2021 04:20:21.988 [11292] DEBUG - Auth: authenticated user 1 as CaffeinatedGuy
Aug 07, 2021 04:20:21.988 [13940] DEBUG - Request: [127.0.0.1:53546 (Loopback)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (6 live) GZIP Signed-in Token (CaffeinatedGuy)
Aug 07, 2021 04:20:21.988 [13940] DEBUG - Content-Length is -1 (of total: -1).
Aug 07, 2021 04:20:42.000 [11292] DEBUG - Completed: [127.0.0.1:53546] 200 GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (6 live) GZIP 20012ms 5 bytes (pipelined: 1622)
Aug 07, 2021 04:20:42.026 [11292] DEBUG - Auth: authenticated user 1 as CaffeinatedGuy
Aug 07, 2021 04:20:42.026 [13940] DEBUG - Request: [127.0.0.1:53546 (Loopback)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (6 live) GZIP Signed-in Token (CaffeinatedGuy)
Aug 07, 2021 04:20:42.026 [13940] DEBUG - Content-Length is -1 (of total: -1).
Aug 07, 2021 04:20:55.467 [5076] DEBUG - Sync: uploadStatus
Aug 07, 2021 04:21:02.034 [11292] DEBUG - Completed: [127.0.0.1:53546] 200 GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (6 live) GZIP 20007ms 5 bytes (pipelined: 1623)
Aug 07, 2021 04:21:02.059 [11292] DEBUG - Auth: authenticated user 1 as CaffeinatedGuy
Aug 07, 2021 04:21:02.060 [13940] DEBUG - Request: [127.0.0.1:53546 (Loopback)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (6 live) GZIP Signed-in Token (CaffeinatedGuy)
Aug 07, 2021 04:21:02.060 [13940] DEBUG - Content-Length is -1 (of total: -1).
Aug 07, 2021 04:21:08.945 [5076] DEBUG - PublicAddressManager: Obtaining public address and mapping port.
Aug 07, 2021 04:21:08.946 [13484] DEBUG - PublicAddressManager: Obtaining public IP.
Aug 07, 2021 04:21:08.946 [5620] DEBUG - NAT: UPnP, attempting port mapping.
Aug 07, 2021 04:21:08.946 [13484] DEBUG - HTTP requesting GET http://plex.tv/pms/:/ip
Aug 07, 2021 04:21:09.321 [13484] DEBUG - HTTP/1.1 (0.4s) 200 response from GET http://plex.tv/pms/:/ip
Aug 07, 2021 04:21:09.321 [13484] DEBUG - PublicAddressManager: Got public IP from http://plex.tv: 71.92.150.81
Aug 07, 2021 04:21:13.669 [5620] DEBUG - NAT: UPnP, found device <http://192.168.30.229:80/description.xml> with private address <192.168.1.24>
Aug 07, 2021 04:21:13.669 [5620] DEBUG - NAT: UPnP, not an IGD: <http://192.168.30.229:80/description.xml>.
Aug 07, 2021 04:21:13.683 [5620] DEBUG - NAT: UPnP, found device <http://192.168.30.229:80/description.xml> with private address <192.168.1.24>
Aug 07, 2021 04:21:13.683 [5620] DEBUG - NAT: UPnP, not an IGD: <http://192.168.30.229:80/description.xml>.
Aug 07, 2021 04:21:13.696 [5620] DEBUG - NAT: UPnP, found device <http://192.168.30.229:80/description.xml> with private address <192.168.1.24>
Aug 07, 2021 04:21:13.696 [5620] DEBUG - NAT: UPnP, not an IGD: <http://192.168.30.229:80/description.xml>.
Aug 07, 2021 04:21:13.699 [5620] DEBUG - NAT: UPnP, found device <http://192.168.0.1:1900/rootDesc.xml> with private address <192.168.1.24>
Aug 07, 2021 04:21:13.703 [5620] DEBUG - NAT: UPnP, usable device <http://192.168.0.1:1900/rootDesc.xml> with private address <192.168.1.24>.
Aug 07, 2021 04:21:13.706 [5620] DEBUG - NAT: UPnP, mapped port 18344 to 192.168.1.24:32400.
Aug 07, 2021 04:21:13.706 [5620] DEBUG - PublicAddressManager: Mapping succeeded for 192.168.1.24:18344.
Aug 07, 2021 04:21:13.722 [5620] DEBUG - MyPlex: mapping state set to 'Mapped - Not Published'.
Aug 07, 2021 04:21:13.756 [5620] DEBUG - MyPlex: Last published value didn't change, we're done.
Aug 07, 2021 04:21:15.077 [13484] DEBUG - NAT: UPnP, found device <http://192.168.30.229:80/description.xml> with private address <192.168.1.24>
Aug 07, 2021 04:21:15.077 [13484] DEBUG - NAT: UPnP, not an IGD: <http://192.168.30.229:80/description.xml>.
Aug 07, 2021 04:21:15.091 [13484] DEBUG - NAT: UPnP, found device <http://192.168.30.229:80/description.xml> with private address <192.168.1.24>
Aug 07, 2021 04:21:15.091 [13484] DEBUG - NAT: UPnP, not an IGD: <http://192.168.30.229:80/description.xml>.
Aug 07, 2021 04:21:15.104 [13484] DEBUG - NAT: UPnP, found device <http://192.168.30.229:80/description.xml> with private address <192.168.1.24>
Aug 07, 2021 04:21:15.104 [13484] DEBUG - NAT: UPnP, not an IGD: <http://192.168.30.229:80/description.xml>.
Aug 07, 2021 04:21:15.106 [13484] DEBUG - NAT: UPnP, found device <http://192.168.0.1:1900/rootDesc.xml> with private address <192.168.1.24>
Aug 07, 2021 04:21:15.110 [13484] DEBUG - NAT: UPnP, usable device <http://192.168.0.1:1900/rootDesc.xml> with private address <192.168.1.24>.
Aug 07, 2021 04:21:15.112 [13484] DEBUG - NAT: UPnP, public address is 71.92.150.81
Aug 07, 2021 04:21:15.128 [13484] DEBUG - HTTP requesting GET https://71-92-150-81.8f0cbc5beaad4501b7a7f508a1f58a9c.plex.direct:18344/identity
Aug 07, 2021 04:21:17.173 [13484] ERROR - Error issuing curl_easy_perform(handle): 7
Aug 07, 2021 04:21:17.173 [13484] WARN - HTTP error requesting GET https://71-92-150-81.8f0cbc5beaad4501b7a7f508a1f58a9c.plex.direct:18344/identity (7, Couldn't connect to server) (Failed to connect to 71-92-150-81.8f0cbc5beaad4501b7a7f508a1f58a9c.plex.direct port 18344: Connection refused)
Aug 07, 2021 04:21:17.189 [13484] DEBUG - MyPlex: mapping state set to 'Mapped - Not Published'.
Aug 07, 2021 04:21:17.211 [13484] DEBUG - MyPlex: Last published value didn't change, we're done.
Aug 07, 2021 04:21:22.076 [11292] DEBUG - Completed: [127.0.0.1:53546] 200 GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (6 live) GZIP 20016ms 5 bytes (pipelined: 1624)
Aug 07, 2021 04:21:22.102 [11292] DEBUG - Auth: authenticated user 1 as CaffeinatedGuy
Aug 07, 2021 04:21:22.102 [13940] DEBUG - Request: [127.0.0.1:53546 (Loopback)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (6 live) GZIP Signed-in Token (CaffeinatedGuy)
Aug 07, 2021 04:21:22.102 [13940] DEBUG - Content-Length is -1 (of total: -1).
Aug 07, 2021 04:21:42.116 [11292] DEBUG - Completed: [127.0.0.1:53546] 200 GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (6 live) GZIP 20014ms 5 bytes (pipelined: 1625)
Aug 07, 2021 04:21:42.142 [11292] DEBUG - Auth: authenticated user 1 as CaffeinatedGuy
Aug 07, 2021 04:21:42.142 [5620] DEBUG - Auth: Refreshing tokens inside the token-based authentication filter.
Aug 07, 2021 04:21:42.142 [13940] DEBUG - Request: [127.0.0.1:53546 (Loopback)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (6 live) GZIP Signed-in Token (CaffeinatedGuy)
Aug 07, 2021 04:21:42.142 [13940] DEBUG - Content-Length is -1 (of total: -1).
Aug 07, 2021 04:21:42.143 [5620] DEBUG - HTTP requesting GET https://plex.tv/api/v2/server/access_tokens?auth_token=xxxxxxxxxxxxxxxxxxxx
Aug 07, 2021 04:21:42.146 [5620] ERROR - Error issuing curl_easy_perform(handle): 6
Aug 07, 2021 04:21:42.146 [5620] WARN - HTTP error requesting GET https://plex.tv/api/v2/server/access_tokens?auth_token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (getaddrinfo() thread failed to start
)
Aug 07, 2021 04:21:42.147 [5620] DEBUG - MyPlex: using cached data for request for https://plex.tv/api/v2/server/access_tokens?auth_token=xxxxxxxxxxxxxxxxxxxx
Aug 07, 2021 04:21:42.148 [5620] DEBUG - MyPlex: updating with 11 access tokens
Aug 07, 2021 04:21:42.150 [5620] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:21:42.151 [5620] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:21:42.151 [5620] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:21:42.151 [13484] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:21:42.151 [5076] DEBUG - It took 62.500000 ms to retrieve 0 items.
Aug 07, 2021 04:21:42.152 [5620] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:21:42.152 [5076] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:21:42.152 [13484] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:21:42.153 [5620] DEBUG - HTTP requesting GET https://plex.tv/api/v2/server/users?auth_token=xxxxxxxxxxxxxxxxxxxx
Aug 07, 2021 04:21:42.153 [5076] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:21:42.154 [13484] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:21:42.155 [13484] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:21:42.155 [5620] ERROR - Error issuing curl_easy_perform(handle): 6
Aug 07, 2021 04:21:42.155 [5620] WARN - HTTP error requesting GET https://plex.tv/api/v2/server/users?auth_token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (getaddrinfo() thread failed to start
)
Aug 07, 2021 04:21:42.155 [5076] ERROR - Thread: Uncaught exception running async task which was spawned by thread 13484: bad allocation
Aug 07, 2021 04:21:42.156 [5620] DEBUG - MyPlex: using cached data for request for https://plex.tv/api/v2/server/users?auth_token=xxxxxxxxxxxxxxxxxxxx
Aug 07, 2021 04:21:42.156 [13484] DEBUG - [MediaProviderManager] HTTP requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Aug 07, 2021 04:21:42.158 [13484] ERROR - [MediaProviderManager] Error issuing curl_easy_perform(handle): 6
Aug 07, 2021 04:21:42.158 [13484] WARN - [MediaProviderManager] HTTP error requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (getaddrinfo() thread failed to start
)
Aug 07, 2021 04:21:42.158 [13484] ERROR - [MediaProviderManager] Error parsing content.
Aug 07, 2021 04:21:42.158 [13484] ERROR - [MediaProviderManager] Error parsing XML: Error parsing file.
Aug 07, 2021 04:21:42.159 [5620] ERROR - Thread: Uncaught exception running async task which was spawned by thread 11292: bad allocation
Aug 07, 2021 04:21:42.159 [13484] DEBUG - [MediaProviderManager] HTTP requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Aug 07, 2021 04:21:42.161 [13484] ERROR - [MediaProviderManager] Error issuing curl_easy_perform(handle): 6
Aug 07, 2021 04:21:42.161 [13484] WARN - [MediaProviderManager] HTTP error requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (getaddrinfo() thread failed to start
)
Aug 07, 2021 04:21:42.161 [13484] ERROR - [MediaProviderManager] Error parsing content.
Aug 07, 2021 04:21:42.161 [13484] ERROR - [MediaProviderManager] Error parsing XML: Error parsing file.
Aug 07, 2021 04:21:42.162 [13484] DEBUG - [MediaProviderManager] HTTP requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Aug 07, 2021 04:21:42.163 [13484] ERROR - [MediaProviderManager] Error issuing curl_easy_perform(handle): 6
Aug 07, 2021 04:21:42.163 [13484] WARN - [MediaProviderManager] HTTP error requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (getaddrinfo() thread failed to start
)
Aug 07, 2021 04:21:42.163 [13484] ERROR - [MediaProviderManager] Error parsing content.
Aug 07, 2021 04:21:42.163 [13484] ERROR - [MediaProviderManager] Error parsing XML: Error parsing file.
Aug 07, 2021 04:21:42.164 [13484] DEBUG - [MediaProviderManager] HTTP requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Aug 07, 2021 04:21:42.166 [13484] ERROR - [MediaProviderManager] Error issuing curl_easy_perform(handle): 6
Aug 07, 2021 04:21:42.166 [13484] WARN - [MediaProviderManager] HTTP error requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (getaddrinfo() thread failed to start
)
Aug 07, 2021 04:21:42.166 [13484] ERROR - [MediaProviderManager] Error parsing content.
Aug 07, 2021 04:21:42.166 [13484] ERROR - [MediaProviderManager] Error parsing XML: Error parsing file.
Aug 07, 2021 04:21:42.167 [13484] DEBUG - [MediaProviderManager] HTTP requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Aug 07, 2021 04:21:42.168 [13484] ERROR - [MediaProviderManager] Error issuing curl_easy_perform(handle): 6
Aug 07, 2021 04:21:42.168 [13484] WARN - [MediaProviderManager] HTTP error requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (getaddrinfo() thread failed to start
)
Aug 07, 2021 04:21:42.168 [13484] ERROR - [MediaProviderManager] Error parsing content.
Aug 07, 2021 04:21:42.168 [13484] ERROR - [MediaProviderManager] Error parsing XML: Error parsing file.
Aug 07, 2021 04:22:02.146 [11292] DEBUG - Completed: [127.0.0.1:53546] 200 GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (6 live) GZIP 20004ms 5 bytes (pipelined: 1626)
Aug 07, 2021 04:22:02.175 [11292] DEBUG - Auth: authenticated user 1 as CaffeinatedGuy
Aug 07, 2021 04:22:02.175 [13484] DEBUG - Auth: Refreshing tokens inside the token-based authentication filter.
Aug 07, 2021 04:22:02.175 [13940] DEBUG - Request: [127.0.0.1:53546 (Loopback)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (6 live) GZIP Signed-in Token (CaffeinatedGuy)
Aug 07, 2021 04:22:02.176 [13940] DEBUG - Content-Length is -1 (of total: -1).
Aug 07, 2021 04:22:02.176 [13484] DEBUG - HTTP requesting GET https://plex.tv/api/v2/server/access_tokens?auth_token=xxxxxxxxxxxxxxxxxxxx
Aug 07, 2021 04:22:02.179 [13484] ERROR - Error issuing curl_easy_perform(handle): 6
Aug 07, 2021 04:22:02.179 [13484] WARN - HTTP error requesting GET https://plex.tv/api/v2/server/access_tokens?auth_token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (getaddrinfo() thread failed to start
)
Aug 07, 2021 04:22:02.180 [13484] DEBUG - MyPlex: using cached data for request for https://plex.tv/api/v2/server/access_tokens?auth_token=xxxxxxxxxxxxxxxxxxxx
Aug 07, 2021 04:22:02.181 [13484] DEBUG - MyPlex: updating with 11 access tokens
Aug 07, 2021 04:22:02.183 [13484] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:22:02.183 [13484] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:22:02.184 [13484] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:22:02.184 [5076] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:22:02.184 [13484] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:22:02.185 [5620] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:22:02.185 [5076] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:22:02.185 [13484] DEBUG - HTTP requesting GET https://plex.tv/api/v2/server/users?auth_token=xxxxxxxxxxxxxxxxxxxx
Aug 07, 2021 04:22:02.186 [5620] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:22:02.186 [5076] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:22:02.187 [5076] ERROR - Thread: Couldn't add a new thread to the pool of size 3: boost::thread_resource_error: Resource temporarily unavailable
Aug 07, 2021 04:22:02.187 [13484] ERROR - Error issuing curl_easy_perform(handle): 6
Aug 07, 2021 04:22:02.187 [13484] WARN - HTTP error requesting GET https://plex.tv/api/v2/server/users?auth_token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (getaddrinfo() thread failed to start
)
Aug 07, 2021 04:22:02.188 [5620] ERROR - Thread: Uncaught exception running async task which was spawned by thread 5076: bad allocation
Aug 07, 2021 04:22:02.188 [5076] DEBUG - [MediaProviderManager] HTTP requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Aug 07, 2021 04:22:02.188 [13484] DEBUG - MyPlex: using cached data for request for https://plex.tv/api/v2/server/users?auth_token=xxxxxxxxxxxxxxxxxxxx
Aug 07, 2021 04:22:02.190 [5076] ERROR - [MediaProviderManager] Error issuing curl_easy_perform(handle): 6
Aug 07, 2021 04:22:02.190 [5076] WARN - [MediaProviderManager] HTTP error requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (getaddrinfo() thread failed to start
)
Aug 07, 2021 04:22:02.191 [5076] ERROR - [MediaProviderManager] Error parsing content.
Aug 07, 2021 04:22:02.191 [13484] DEBUG - HTTP requesting GET https://plex.tv/api/v2/server/users/subscriptions?auth_token=xxxxxxxxxxxxxxxxxxxx
Aug 07, 2021 04:22:02.191 [5076] ERROR - [MediaProviderManager] Error parsing XML: Error parsing file.
Aug 07, 2021 04:22:02.192 [13484] ERROR - Error issuing curl_easy_perform(handle): 6
Aug 07, 2021 04:22:02.192 [13484] WARN - HTTP error requesting GET https://plex.tv/api/v2/server/users/subscriptions?auth_token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (getaddrinfo() thread failed to start
)
Aug 07, 2021 04:22:02.193 [13484] DEBUG - MyPlex: using cached data for request for https://plex.tv/api/v2/server/users/subscriptions?auth_token=xxxxxxxxxxxxxxxxxxxx
Aug 07, 2021 04:22:02.196 [11220] WARN - Crash: Crash reporting disabled

Also worth noting, but

%LOCALAPPDATA%\Plex Media Server\Crash Reports

contained one file at the correct time but was blank.

%LOCALAPPDATA%\CrashDumps

Contained a DMP file, but again I don’t see how to attach a file. I used Windbg Preview to analyze the dump file, and here’s the result.


Microsoft (R) Windows Debugger Version 10.0.22415.1002 X86
Copyright (c) Microsoft Corporation. All rights reserved.


Loading Dump File [C:\Users\removed\AppData\Local\CrashDumps\Plex Media Server.exe.10808.dmp]
User Mini Dump File: Only registers, stack and portions of memory are available

Symbol search path is: srv*
Executable search path is: 
Windows 10 Version 19043 MP (4 procs) Free x86 compatible
Product: WinNt, suite: SingleUserTS
Edition build lab: 19041.1.amd64fre.vb_release.191206-1406
Machine Name:
Debug session time: Sat Aug  7 04:22:04.000 2021 (UTC - 7:00)
System Uptime: not available
Process Uptime: 0 days 9:01:12.000
................................................................
................................................................
....
Loading unloaded module list
................................................................
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(2a38.15f4): Security check failure or stack buffer overrun - code c0000409 (first/second chance not available)
Subcode: 0x7 FAST_FAIL_FATAL_APP_EXIT 
For analysis of this file, run !analyze -v
eax=00000001 ebx=00000001 ecx=00000007 edx=000001e9 esi=00000003 edi=0674e4e4
eip=751beddb esp=0674e398 ebp=0674e3ac iopl=0         nv up ei pl nz na po nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000202
ucrtbase!abort+0x4b:
751beddb cd29            int     29h
0:028> !analyze -v
*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************


KEY_VALUES_STRING: 1

    Key  : Analysis.CPU.mSec
    Value: 7467

    Key  : Analysis.DebugAnalysisManager
    Value: Create

    Key  : Analysis.Elapsed.mSec
    Value: 40074

    Key  : Analysis.Init.CPU.mSec
    Value: 1093

    Key  : Analysis.Init.Elapsed.mSec
    Value: 49324

    Key  : Analysis.Memory.CommitPeak.Mb
    Value: 169

    Key  : FailFast.Name
    Value: FATAL_APP_EXIT

    Key  : FailFast.Type
    Value: 7

    Key  : Timeline.Process.Start.DeltaSec
    Value: 32472

    Key  : WER.OS.Branch
    Value: vb_release

    Key  : WER.OS.Timestamp
    Value: 2019-12-06T14:06:00Z

    Key  : WER.OS.Version
    Value: 10.0.19041.1

    Key  : WER.Process.Version
    Value: 1.24.0.4897


NTGLOBALFLAG:  0

APPLICATION_VERIFIER_FLAGS:  0

CONTEXT:  0674e670 -- (.cxr 0x674e670)
eax=0674eb50 ebx=19930520 ecx=00000003 edx=00000000 esi=0e58c490 edi=0166b4b4
eip=761fb512 esp=0674eb50 ebp=0674ebac iopl=0         nv up ei pl nz ac pe nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000216
KERNELBASE!RaiseException+0x62:
761fb512 8b4c2454        mov     ecx,dword ptr [esp+54h] ss:002b:0674eba4=c91c2a54
Resetting default scope

EXCEPTION_RECORD:  0674e620 -- (.exr 0x674e620)
ExceptionAddress: 761fb512 (KERNELBASE!RaiseException+0x00000062)
   ExceptionCode: e06d7363 (C++ EH exception)
  ExceptionFlags: 00000001
NumberParameters: 3
   Parameter[0]: 19930520
   Parameter[1]: 0674ebf8
   Parameter[2]: 0166b4b4
  pExceptionObject: 0674ebf8
  _s_ThrowInfo    : 0166b4b4
  Type            : class std::bad_alloc
  Type            : class std::exception

PROCESS_NAME:  Plex Media Server.exe

ERROR_CODE: (NTSTATUS) 0xc0000409 - The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.

EXCEPTION_CODE_STR:  c0000409

EXCEPTION_PARAMETER1:  00000007

STACK_TEXT:  
0674ebac 74537ad6     e06d7363 00000001 00000003 KERNELBASE!RaiseException+0x62
0674ebdc 00d48b45     0674ebf8 0166b4b4 398a7f4a VCRUNTIME140!_CxxThrowException+0x66
WARNING: Stack unwind information not available. Following frames may be wrong.
0674ec14 00caaa20     00080000 01000000 398a7e0e Plex_Media_Server!sqlite3_spellfix_init+0x10bb95
0674ed50 00cac01b     00000080 00000008 00cac01b Plex_Media_Server!sqlite3_spellfix_init+0x6da70
0674f1cc 00caa2ad     398a6102 0674f4d8 0674f508 Plex_Media_Server!sqlite3_spellfix_init+0x6f06b
0674f25c 00ca9b9c     0674f478 0000005a 0674f35c Plex_Media_Server!sqlite3_spellfix_init+0x6d2fd
0674f2fc 009fec93     0000005a 0674f35c 0674f3f4 Plex_Media_Server!sqlite3_spellfix_init+0x6cbec
0674f558 00a07f0b     01e42ef0 00a07f0b 0674f574 Plex_Media_Server!essentia::EssentiaFactory<essentia::streaming::Algorithm>::create_i+0x4108a3
0674f59c 004dca42     01e42ef0 066356a0 0674f628 Plex_Media_Server!essentia::EssentiaFactory<essentia::streaming::Algorithm>::create_i+0x419b1b
0674f5e4 0040f280     01e42ef0 05ea7d68 0674f628 Plex_Media_Server!essentia::Configurable::name+0xf3052
0674f670 00c8c2eb     01e42ef0 0674f694 0674f6c4 Plex_Media_Server!essentia::Configurable::name+0x25890
0674f6f0 00c8ba77     0674f714 398a6472 05da7eb0 Plex_Media_Server!sqlite3_spellfix_init+0x4f33b
0674f72c 6dd22fc9     bc31cf57 05da7eb0 6dd22fa8 Plex_Media_Server!sqlite3_spellfix_init+0x4eac7
0674f754 75164f9f     0f0d9948 692e48a3 75164f60 boost_thread!boost::detail::get_current_thread_data+0xf9
0674f78c 763afa29     05da7eb0 763afa10 0674f7f8 ucrtbase!thread_start<unsigned int (__stdcall*)(void *),1>+0x3f
0674f79c 771e7a7e     05da7eb0 94c04b8e 00000000 kernel32!BaseThreadInitThunk+0x19
0674f7f8 771e7a4e     ffffffff 77208a1f 00000000 ntdll!__RtlUserThreadStart+0x2f
0674f808 00000000     75164f60 05da7eb0 00000000 ntdll!_RtlUserThreadStart+0x1b


SYMBOL_NAME:  plex_media_server!sqlite3_spellfix_init+10bb95

MODULE_NAME: Plex_Media_Server

IMAGE_NAME:  Plex Media Server.exe

STACK_COMMAND:  .cxr 0x674e670 ; kb

FAILURE_BUCKET_ID:  FAIL_FAST_FATAL_APP_EXIT_CPP_EXCEPTION_c0000409_Plex_Media_Server.exe!sqlite3_spellfix_init

OS_VERSION:  10.0.19041.1

BUILDLAB_STR:  vb_release

OSPLATFORM_TYPE:  x86

OSNAME:  Windows 10

IMAGE_VERSION:  1.24.0.4897

FAILURE_ID_HASH:  {752020fb-ca63-457c-e9d3-08d50f47b190}

Followup:     MachineOwner
---------

ucrtbase.dll, version: 10.0.19041.789

That’s part of the Microsoft VC Redistributable package, and I believe that’s a current version. While it’s possible there’s a problem in the MS VC libraries, it’s more likely that it’s something in Plex or elsewhere on the system.

When this occurs, is the crash consistently in sqlite3_spellfix_init?

You can .zip up the .dmp and attach it with the Upload button in the forum - it might be worth waiting for a Plex person to respond.

In reviewing the dump files and the event viewer, I’ve noted that this crash happens exactly every 3 days, starting 7/14/21, and occurs between 0200 and 0430. Given this, the next crash should happen on 8/10 if a solution is not found.

That sounds similar to the frequency of Plex’s automatic Scheduled Tasks. Are they enabled in SettingsScheduled Tasks, and do those times match the schedule configured?

I believe that full-text indexing is updated during Database Optimization.

Does it crash immediately when manually optimizing the database? SettingsTroubleshootingOptimize Database?

Yes, scheduled tasks run between 0200 and 0500 every three days (I didn’t realize that, thanks!)

No, manually running “optimize database” does not crash the server.

The crash doesn’t seem to happen consistently in sqllite3_spellfix_init. I’ll post a couple dump files, but here’s a couple pre-analyzed dumps pasted below:


Microsoft (R) Windows Debugger Version 10.0.22415.1002 X86
Copyright (c) Microsoft Corporation. All rights reserved.


Loading Dump File [C:\Users\removed\AppData\Local\CrashDumps\Plex Media Server.exe.9384.dmp]
User Mini Dump File: Only registers, stack and portions of memory are available


************* Path validation summary **************
Response                         Time (ms)     Location
Deferred                                       srv*
Symbol search path is: srv*
Executable search path is: 
Windows 10 Version 19043 MP (4 procs) Free x86 compatible
Product: WinNt, suite: SingleUserTS
Edition build lab: 19041.1.amd64fre.vb_release.191206-1406
Machine Name:
Debug session time: Wed Aug  4 04:18:17.000 2021 (UTC - 7:00)
System Uptime: not available
Process Uptime: 2 days 16:25:33.000
................................................................
................................................................
...........
Loading unloaded module list
............................................
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(24a8.2060): Security check failure or stack buffer overrun - code c0000409 (first/second chance not available)
Subcode: 0x7 FAST_FAIL_FATAL_APP_EXIT 
For analysis of this file, run !analyze -v
eax=00000001 ebx=00000001 ecx=00000007 edx=000001e9 esi=00000003 edi=067ce8bc
eip=75c6eddb esp=067ce770 ebp=067ce784 iopl=0         nv up ei pl nz na po nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000202
ucrtbase!abort+0x4b:
75c6eddb cd29            int     29h
0:039> !analyze -v
*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************

*** WARNING: Unable to verify timestamp for boost_thread.dll
*** WARNING: Unable to verify timestamp for libxml2.dll

KEY_VALUES_STRING: 1

    Key  : Analysis.CPU.mSec
    Value: 5608

    Key  : Analysis.DebugAnalysisManager
    Value: Create

    Key  : Analysis.Elapsed.mSec
    Value: 27179

    Key  : Analysis.Init.CPU.mSec
    Value: 468

    Key  : Analysis.Init.Elapsed.mSec
    Value: 50102

    Key  : Analysis.Memory.CommitPeak.Mb
    Value: 160

    Key  : FailFast.Name
    Value: FATAL_APP_EXIT

    Key  : FailFast.Type
    Value: 7

    Key  : Timeline.Process.Start.DeltaSec
    Value: 231933

    Key  : WER.OS.Branch
    Value: vb_release

    Key  : WER.OS.Timestamp
    Value: 2019-12-06T14:06:00Z

    Key  : WER.OS.Version
    Value: 10.0.19041.1

    Key  : WER.Process.Version
    Value: 1.23.6.4881


NTGLOBALFLAG:  0

PROCESS_BAM_CURRENT_THROTTLED: 0

PROCESS_BAM_PREVIOUS_THROTTLED: 0

APPLICATION_VERIFIER_FLAGS:  0

CONTEXT:  067cea48 -- (.cxr 0x67cea48)
eax=067cef28 ebx=19930520 ecx=00000003 edx=00000000 esi=0baf84e8 edi=01713164
eip=76c5b512 esp=067cef28 ebp=067cef84 iopl=0         nv up ei pl nz ac pe nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000216
KERNELBASE!RaiseException+0x62:
76c5b512 8b4c2454        mov     ecx,dword ptr [esp+54h] ss:002b:067cef7c=f9cada87
Resetting default scope

EXCEPTION_RECORD:  067ce9f8 -- (.exr 0x67ce9f8)
ExceptionAddress: 76c5b512 (KERNELBASE!RaiseException+0x00000062)
   ExceptionCode: e06d7363 (C++ EH exception)
  ExceptionFlags: 00000001
NumberParameters: 3
   Parameter[0]: 19930520
   Parameter[1]: 067cefd0
   Parameter[2]: 01713164
  pExceptionObject: 067cefd0
  _s_ThrowInfo    : 01713164

PROCESS_NAME:  Plex Media Server.exe

ERROR_CODE: (NTSTATUS) 0xc0000409 - The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.

EXCEPTION_CODE_STR:  c0000409

EXCEPTION_PARAMETER1:  00000007

STACK_TEXT:  
067cef84 75057ad6     e06d7363 00000001 00000003 KERNELBASE!RaiseException+0x62
067cefb4 00f7bac5     067cefd0 01713164 c4ad0ab9 VCRUNTIME140!_CxxThrowException+0x66
WARNING: Stack unwind information not available. Following frames may be wrong.
067cefec 00eddf70     00080000 01000000 c4ad147d Plex_Media_Server+0x95bac5
067cf128 00edf56b     00000080 00000008 00edf56b Plex_Media_Server+0x8bdf70
067cf5a4 00edd7fd     c4ad1361 067cf8b0 067cf8e0 Plex_Media_Server+0x8bf56b
067cf634 00edd0ec     067cf850 0000005a 067cf734 Plex_Media_Server+0x8bd7fd
067cf6d4 00c327d3     0000005a 067cf734 067cf7cc Plex_Media_Server+0x8bd0ec
067cf930 00c3b9fb     067cf978 01f3e070 00c3b9fb Plex_Media_Server+0x6127d3
067cf978 00738372     01f3e070 05a72dc0 067cfa04 Plex_Media_Server+0x61b9fb
067cf9c0 0066c440     01f3e070 056c0b28 067cfa04 Plex_Media_Server+0x118372
067cfa4c 00ebf8ab     01f3e070 067cfa70 067cfaa0 Plex_Media_Server+0x4c440
067cfacc 00ebf037     067cfaf0 c4ad1e5d 0d7016e8 Plex_Media_Server+0x89f8ab
067cfb08 72c42fc9     a610d124 0d7016e8 72c42fa8 Plex_Media_Server+0x89f037
067cfb30 75c14f9f     060a32b8 664c6faf 75c14f60 boost_thread+0x2fc9
067cfb68 76a5fa29     0d7016e8 76a5fa10 067cfbd4 ucrtbase!thread_start<unsigned int (__stdcall*)(void *),1>+0x3f
067cfb78 776f7a7e     0d7016e8 19f88f75 00000000 kernel32!BaseThreadInitThunk+0x19
067cfbd4 776f7a4e     ffffffff 77718a43 00000000 ntdll!__RtlUserThreadStart+0x2f
067cfbe4 00000000     75c14f60 0d7016e8 00000000 ntdll!_RtlUserThreadStart+0x1b


SYMBOL_NAME:  plex_media_server+95bac5

MODULE_NAME: Plex_Media_Server

IMAGE_NAME:  Plex Media Server.exe

STACK_COMMAND:  .cxr 0x67cea48 ; kb

FAILURE_BUCKET_ID:  FAIL_FAST_FATAL_APP_EXIT_CPP_EXCEPTION_c0000409_Plex_Media_Server.exe!Unknown

OS_VERSION:  10.0.19041.1

BUILDLAB_STR:  vb_release

OSPLATFORM_TYPE:  x86

OSNAME:  Windows 10

IMAGE_VERSION:  1.23.6.4881

FAILURE_ID_HASH:  {56012703-a9d4-b84b-245a-03d3b4a68892}

Followup:     MachineOwner
---------


Microsoft (R) Windows Debugger Version 10.0.22415.1002 X86
Copyright (c) Microsoft Corporation. All rights reserved.


Loading Dump File [C:\Users\removed\AppData\Local\CrashDumps\Plex Media Server.exe.10536.dmp]
User Mini Dump File: Only registers, stack and portions of memory are available


************* Path validation summary **************
Response                         Time (ms)     Location
Deferred                                       srv*
Symbol search path is: srv*
Executable search path is: 
Windows 10 Version 19043 MP (4 procs) Free x86 compatible
Product: WinNt, suite: SingleUserTS
Edition build lab: 19041.1.amd64fre.vb_release.191206-1406
Machine Name:
Debug session time: Sun Aug  1 02:24:54.000 2021 (UTC - 7:00)
System Uptime: not available
Process Uptime: 0 days 12:09:27.000
................................................................
.....................................................
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(2928.2aa8): Security check failure or stack buffer overrun - code c0000409 (first/second chance not available)
Subcode: 0x7 FAST_FAIL_FATAL_APP_EXIT 
For analysis of this file, run !analyze -v
eax=00000001 ebx=00000001 ecx=00000007 edx=000001e9 esi=00000003 edi=04adec6c
eip=75c6eddb esp=04adeb20 ebp=04adeb34 iopl=0         nv up ei pl nz na po nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000202
ucrtbase!abort+0x4b:
75c6eddb cd29            int     29h
0:002> !analyze -v
*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************

Unable to load image D:\Program Files (x86)\Plex Media Server\boost_thread.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for boost_thread.dll
*** WARNING: Unable to verify timestamp for libxml2.dll

KEY_VALUES_STRING: 1

    Key  : Analysis.CPU.mSec
    Value: 4796

    Key  : Analysis.DebugAnalysisManager
    Value: Create

    Key  : Analysis.Elapsed.mSec
    Value: 12098

    Key  : Analysis.Init.CPU.mSec
    Value: 530

    Key  : Analysis.Init.Elapsed.mSec
    Value: 17165

    Key  : Analysis.Memory.CommitPeak.Mb
    Value: 113

    Key  : FailFast.Name
    Value: FATAL_APP_EXIT

    Key  : FailFast.Type
    Value: 7

    Key  : Timeline.Process.Start.DeltaSec
    Value: 43767

    Key  : WER.OS.Branch
    Value: vb_release

    Key  : WER.OS.Timestamp
    Value: 2019-12-06T14:06:00Z

    Key  : WER.OS.Version
    Value: 10.0.19041.1

    Key  : WER.Process.Version
    Value: 1.23.6.4881


NTGLOBALFLAG:  0

APPLICATION_VERIFIER_FLAGS:  0

CONTEXT:  04adedf8 -- (.cxr 0x4adedf8)
eax=04adf2d8 ebx=19930520 ecx=00000003 edx=00000000 esi=0be00448 edi=01713164
eip=76c5b512 esp=04adf2d8 ebp=04adf334 iopl=0         nv up ei pl nz ac pe nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000216
KERNELBASE!RaiseException+0x62:
76c5b512 8b4c2454        mov     ecx,dword ptr [esp+54h] ss:002b:04adf32c=2622a89b
Resetting default scope

EXCEPTION_RECORD:  04adeda8 -- (.exr 0x4adeda8)
ExceptionAddress: 76c5b512 (KERNELBASE!RaiseException+0x00000062)
   ExceptionCode: e06d7363 (C++ EH exception)
  ExceptionFlags: 00000001
NumberParameters: 3
   Parameter[0]: 19930520
   Parameter[1]: 04adf374
   Parameter[2]: 01713164
  pExceptionObject: 04adf374
  _s_ThrowInfo    : 01713164

PROCESS_NAME:  Plex Media Server.exe

ERROR_CODE: (NTSTATUS) 0xc0000409 - The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.

EXCEPTION_CODE_STR:  c0000409

EXCEPTION_PARAMETER1:  00000007

STACK_TEXT:  
04adf334 75057ad6     e06d7363 00000001 00000003 KERNELBASE!RaiseException+0x62
04adf364 01143dd9     04adf374 01713164 0125cee0 VCRUNTIME140!_CxxThrowException+0x66
WARNING: Stack unwind information not available. Following frames may be wrong.
04adf3a0 75c00166     0be00438 0871c430 0871c448 Plex_Media_Server+0xb23dd9
04adf3f8 75500496     02059b5c 754e79e0 04adf420 ucrtbase!_malloc_base+0x26
04adf408 754e79e9     e04f1ee0 04adf474 0123cde7 msvcp140!__crtReleaseSRWLockExclusive+0x17
04adf498 776d5dce     020ab488 0c261090 00000019 msvcp140!Concurrency::details::stl_critical_section_win7::unlock+0x9
04adf578 776d0c2f     00000001 0a869898 000007ff ntdll!RtlAllocateHeap+0x3e
04adf5b4 776bf1da     000016e3 02030000 0a871898 ntdll!RtlpInsertFreeBlock+0x11f
04adf600 776d4806     000016e3 776d502a f520ffb1 ntdll!RtlpDeCommitFreeBlock+0xc7
04adf760 777178fd     00000000 77717924 0afd4018 ntdll!RtlpFreeHeap+0xba6
04adf7bc 777b4fb0     05f0e0a4 05f0e0a8 00002aa8 ntdll!RtlpFreeHeapInternal+0x783
04adf7dc 777046bc     04adf830 776d2314 020ab3fc ntdll!RtlpSlistLockedAltLocks+0x50
04adf7e4 776d2314     020ab3fc 020ab3f4 76c548d0 ntdll!NtWaitForAlertByThreadId+0xc
04adf810 776eab69     00000000 04adf808 fffffffe ntdll!RtlSleepConditionVariableSRW+0x144
00000000 00000000     00000000 00000000 00000000 ntdll!RtlSetLastWin32Error+0x39


SYMBOL_NAME:  plex_media_server+b23dd9

MODULE_NAME: Plex_Media_Server

IMAGE_NAME:  Plex Media Server.exe

STACK_COMMAND:  .cxr 0x4adedf8 ; kb

FAILURE_BUCKET_ID:  FAIL_FAST_FATAL_APP_EXIT_CPP_EXCEPTION_c0000409_Plex_Media_Server.exe!Unknown

OS_VERSION:  10.0.19041.1

BUILDLAB_STR:  vb_release

OSPLATFORM_TYPE:  x86

OSNAME:  Windows 10

IMAGE_VERSION:  1.23.6.4881

FAILURE_ID_HASH:  {56012703-a9d4-b84b-245a-03d3b4a68892}

Followup:     MachineOwner

---------CrashDumps.zip (10.7 MB)

Was there ever resolution on this? My Windows 10 server is crashing every morning and it seems to be a similar issue as discussed here. I am running the latest beta server. Here are last night’s logs Plex Media Server Logs_2021-09-18_06-10-19.zip (3.1 MB)

This is a plex compatibility issue with the windows ucrtbase.dll. try upgrading plex to version 1.24.2.4973, and as a secondary step run windows update to update windows as well. the first step alone resolved my issue.

I’m currently running 1.24.2.4973 and per Event Viewer, my last crash was 9/15, which seems that the 3-day pattern has been broken.

I had implemented a workaround (I set Task Scheduler to start Plex server every morning) so I’ll disable that workaround and monitor for future issues.

Thanks for bringing my attention to the fact that this may be fixed.

Update: Plex had crashed again this morning with Event Viewer again pointing to ucrtbase.dll

I have involved @sa2000 here

Seems to be the exact same issue

Any solution to this problem? … I have been with the problem of NAT: UPnP for months, I have changed the router, I have set a fixed IP, enabled ports, activated Upnp, deactivating, routing … dozens of failed attempts because the problem persists … it works good for a few days and then boom … again PMS starts to crash wit same ■■■■■■ line NAT: UPnP…

This sounds like a different issue than what we’ve been having

It’s the same record that CaffeinatedGuy exposed in the logs at the beginning of this post…

I finally resolved the issue by unchecking “Refresh local metadata every three days”.

The issue Corbo_ describes sounds completely different. I’d recommend finding the frequency of the crash, looking into the crashlogs for more clues, and digging into log explorers. In my case, it was totally happenstance, but the biggest clue (that I failed to see) was that it occurred every 3 days, so it had to be a process that would run on every third day (minus restarts).

Thanks for the logs and database captures
I see the server is still crashing after high memory usage
Whilst the database is still showing the very high number of extras and trailers for 3 movies, i cannot confirm that this is the cause of the last set of crashes on the 2nd November that I looked into

I suggest we get these excessive number of extras purged and then see if the server is still crashing with high memory usage and then I can decide on next action. I have seen previous evidence of these movies actually implicated

There are 3 movies in the database with very high number of extras
The last time these extras were added was 31 August. So it is possible the cause has been fixed - I am not sure. Will need to be on the lookout for any new examples of excessive number of trailers added

image

It may take a few hours to get these purged
Suggest you start in reverse order - purging Gremlins first and leaving Star Wars movie to the last

To purge the extras, disable addition of trailers for the library and save
Then refresh the metadata for each movie
Starting with the Gremlins
It may take few hours for the Star Wars extras to be purged - you would be able to see the deletions in the Plex Media Server logs as it is doing - eg

This log extract from another user’s log shows the sequence that gets logged for deletion of each of these extras counted in the table above

Nov 04, 2021 13:59:50.532 [8832] DEBUG - Deleting media item 100834.
Nov 04, 2021 13:59:50.533 [8832] DEBUG - Was connected to metadata item 41719, count is now 2.
Nov 04, 2021 13:59:50.533 [8832] DEBUG - Updating deletion state for metadata item 41719, is has a dead item count of 0.
Nov 04, 2021 13:59:50.533 [8832] DEBUG - Deleting media item 100835.
Nov 04, 2021 13:59:50.534 [8832] DEBUG - Was connected to metadata item 41719, count is now 1.
Nov 04, 2021 13:59:50.534 [8832] DEBUG - Updating deletion state for metadata item 41719, is has a dead item count of 0.
Nov 04, 2021 13:59:50.534 [8832] DEBUG - Deleting media item 100836.
Nov 04, 2021 13:59:50.535 [8832] DEBUG - Was connected to metadata item 41719, count is now 0.
Nov 04, 2021 13:59:50.535 [8832] DEBUG - Destroying metadata item 41719 (Coyote Lake: Don't Try To Out Smart Me)

So with these extras purged, you can then re-enable the option to add trailers on the library and refresh the metadata for the 3 movies again

You could at this point take a snapshot of the debug server logs and the database

Then capture the logs again and the database on a weekly basis or on next crash and I will have a look if we are still getting the high memory usage and also see if there is any evidence of excessive number of trailers added

Thank you for all the diagnostics and help

1 Like

I have 4k versions of each of those. Are they the 4k or HD version?

Edit: nevermind. I found them.

So I got through the first two, then on a new hope, PMS crashed after a couple minutes and then when I started it back up, that entry was deleted from my library

I did the Plex dance and it won’t add it back

Edit: hold that thought. I forgot to empty trash

Is there anything else in my database with, say, more than 100 extras? I would call that excessive and should be dealt with as well.

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