Sorry, if this is a known issue. But I searched around a bit and could not find anything conclusive. My Plex server keeps crashing around 2AM - 4AM. It’s been happening for a couple of weeks now. I’m running PMS on a Windows 10 Pro on a Dell Optiplex Core-i5 w/ 8GB RAM, 160GB SSD and 2 2TB hard drives. I migrated my PMS from an older PC to a new PC a few months ago and initially ran into some issues with DB corruption issues with my SQLLite PCs and tried some fixes after googling around that seemed to fix the issue. But I am again seeing a bunch of error messages in my logs. Trying to attach my logs, but keeps failing to attach here. Posting a small snippet of the errors below. Will try attaching my logs again
May 20, 2018 04:52:07.458 [11964] ERROR - Thread: Couldn't add a new thread to the pool of size 2: boost::thread_resource_error: An attempt was made to load a program with an incorrect format May 20, 2018 04:52:27.443 [11964] ERROR - Thread: Couldn't add a new thread to the pool of size 1: boost::thread_resource_error: An attempt was made to load a program with an incorrect format May 20, 2018 04:52:37.450 [11964] ERROR - Thread: Couldn't add a new thread to the pool of size 1: boost::thread_resource_error: An attempt was made to load a program with an incorrect format May 20, 2018 04:52:47.451 [11964] ERROR - Thread: Couldn't add a new thread to the pool of size 0: boost::thread_resource_error: An attempt was made to load a program with an incorrect format May 20, 2018 04:52:57.466 [11964] ERROR - Thread: Couldn't add a new thread to the pool of size 0: boost::thread_resource_error: An attempt was made to load a program with an incorrect format May 20, 2018 04:53:07.467 [11964] ERROR - Thread: Couldn't add a new thread to the pool of size 1: boost::thread_resource_error: An attempt was made to load a program with an incorrect format May 20, 2018 04:53:17.036 [11964] ERROR - Thread: Couldn't add a new thread to the pool of size 2: boost::thread_resource_error: An attempt was made to load a program with an incorrect format May 20, 2018 04:53:17.458 [11964] ERROR - Thread: Couldn't add a new thread to the pool of size 1: boost::thread_resource_error: An attempt was made to load a program with an incorrect format May 20, 2018 04:53:27.475 [11964] ERROR - Thread: Couldn't add a new thread to the pool of size 1: boost::thread_resource_error: An attempt was made to load a program with an incorrect format
Does anyone how to go about getting rid of the errors and the crashes?
@“rajesh72@gmail.com” said:
Sorry, if this is a known issue. But I searched around a bit and could not find anything conclusive. My Plex server keeps crashing around 2AM - 4AM. It’s been happening for a couple of weeks now. I’m running PMS on a Windows 10 Pro on a Dell Optiplex Core-i5 w/ 8GB RAM, 160GB SSD and 2 2TB hard drives. I migrated my PMS from an older PC to a new PC a few months ago and initially ran into some issues with DB corruption issues with my SQLLite PCs and tried some fixes after googling around that seemed to fix the issue. But I am again seeing a bunch of error messages in my logs. Trying to attach my logs, but keeps failing to attach here. Posting a small snippet of the errors below. Will try attaching my logs again
May 20, 2018 04:52:07.458 [11964] ERROR - Thread: Couldn't add a new thread to the pool of size 2: boost::thread_resource_error: An attempt was made to load a program with an incorrect format May 20, 2018 04:52:27.443 [11964] ERROR - Thread: Couldn't add a new thread to the pool of size 1: boost::thread_resource_error: An attempt was made to load a program with an incorrect format May 20, 2018 04:52:37.450 [11964] ERROR - Thread: Couldn't add a new thread to the pool of size 1: boost::thread_resource_error: An attempt was made to load a program with an incorrect format May 20, 2018 04:52:47.451 [11964] ERROR - Thread: Couldn't add a new thread to the pool of size 0: boost::thread_resource_error: An attempt was made to load a program with an incorrect format May 20, 2018 04:52:57.466 [11964] ERROR - Thread: Couldn't add a new thread to the pool of size 0: boost::thread_resource_error: An attempt was made to load a program with an incorrect format May 20, 2018 04:53:07.467 [11964] ERROR - Thread: Couldn't add a new thread to the pool of size 1: boost::thread_resource_error: An attempt was made to load a program with an incorrect format May 20, 2018 04:53:17.036 [11964] ERROR - Thread: Couldn't add a new thread to the pool of size 2: boost::thread_resource_error: An attempt was made to load a program with an incorrect format May 20, 2018 04:53:17.458 [11964] ERROR - Thread: Couldn't add a new thread to the pool of size 1: boost::thread_resource_error: An attempt was made to load a program with an incorrect format May 20, 2018 04:53:27.475 [11964] ERROR - Thread: Couldn't add a new thread to the pool of size 1: boost::thread_resource_error: An attempt was made to load a program with an incorrect format
Does anyone how to go about getting rid of the errors and the crashes?
I am afraid these errors are indicative of running out of memory. Investigations of such issues is not straightforward and I will link you to another thread where I have given advice on what we need to do to investigate it
Thanks @sa2000 . I’ll enable debug logs, but I’m not sure how to post the logs here. I’ve tried several times and log upload keeps failing with the message:
@sa2000 - Actually, finally figured out how to attach the logs from your instructions. Thanks again. I just enabled debug logs, so I might need to wait till the next crash to upload the latest debug logs. Will try to do it in a day or so
@rdukb said:
Attaching DEBUG logs after the server crashed again. Hopefully, this is helpful
Thanks for the new logs. Whilst there was a memory allocation error at 02:11 am - the server actually locked up in a deadlock state earlier at 01:34. The lockout was referred to the development team
I tried the build you sent me by PM. But looks like Plex is not coming up anymore. I’ll try and troublehshoot it over the weekend and see if I can attach any logs.I’m not able to access the server settings anymore to zip up the logs from there
Plex Media Server version 1.13.4.5251 has just been released as beta. It has fixes for two deadlocks following investigations from diagnostics provided in this forum thread