Page 1 of 1

1.1.1 [33a7874] Win10x64 Intermittant Crash

Posted: November 19th, 2016, 1:49 pm
by mastyman
Hi

second time in last few weeks, sab has crashed, saw the sab icon in tray was green, went to check what was downloading, get the following loading the webui

Code: Select all

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "cherrypy\_cprequest.pyo", line 670, in respond
  File "cherrypy\lib\encoding.pyo", line 220, in __call__
  File "cherrypy\_cpdispatch.pyo", line 60, in __call__
  File "sabnzbd\interface.pyo", line 407, in index
  File "_SABnzbd_interfaces_Glitter_templates_main_tmpl.py", line 526, in respond
  File "Cheetah\DummyTransaction.pyo", line 57, in getvalue
MemoryError
i have saved the logs from the crash if wanted i can pm a link.

Re: 1.1.1 [33a7874] Win10x64 Intermittant Crash

Posted: November 19th, 2016, 2:39 pm
by Slate
Same crash for me, on Win10x64 too.

Code: Select all

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "cherrypy\_cprequest.pyo", line 670, in respond
  File "cherrypy\lib\encoding.pyo", line 220, in __call__
  File "cherrypy\_cpdispatch.pyo", line 60, in __call__
  File "sabnzbd\interface.pyo", line 407, in index
  File "_Program_Files__x86__SABnzbd_interfaces_Glitter_templates_main_tmpl.py", line 526, in respond
  File "Cheetah\DummyTransaction.pyo", line 57, in getvalue
MemoryError

Re: 1.1.1 [33a7874] Win10x64 Intermittant Crash

Posted: November 19th, 2016, 3:20 pm
by safihre
What did you set for Article cache?
What is sabnzbd memory usage?
Do you run sabnzbd as a service?

Re: 1.1.1 [33a7874] Win10x64 Intermittant Crash

Posted: November 19th, 2016, 3:48 pm
by mastyman
Article Cache is 1GB (system memory as 32GB)
didnt take a note at the time how much memory was been used at crash
Service - no. runs via startup folder.

looking at my history, last time i had this exact same error, was 24th October. so its very intermittent.

Re: 1.1.1 [33a7874] Win10x64 Intermittant Crash

Posted: November 19th, 2016, 4:42 pm
by safihre
Maybe reduce it to 500M, this should be enough!

Re: 1.1.1 [33a7874] Win10x64 Intermittant Crash

Posted: November 20th, 2016, 9:02 am
by Slate
Prior to this crash, i get lots of errors about it not being able to start new threads

This is in the log, repeated many times:

Code: Select all

2016-11-19 18:38:33,470::ERROR::[downloader:448] Failed to initialize [email protected] with reason: can't start new thread
2016-11-19 18:38:33,470::INFO::[downloader:732] Thread [email protected]: failed to initialize
2016-11-19 18:38:34,421::INFO::[decoder:167] Unknown Error while decoding [email protected]
2016-11-19 18:38:34,421::INFO::[decoder:168] Traceback: 
Traceback (most recent call last):
  File "sabnzbd\decoder.pyo", line 108, in run
  File "sabnzbd\decoder.pyo", line 282, in decode
MemoryError
My article cache limit is 450M
Not ran as a service, in startup
Cant tell exactly, but at the crash looked like memory usage decreased by around 500Mb, and total usage was 3.5Gbb. Total system memory is 16Gb

Should note that my crashes are much more frequent that mastyman, mine are multiple times per day

Re: 1.1.1 [33a7874] Win10x64 Intermittant Crash

Posted: November 20th, 2016, 9:29 am
by safihre
And this didn't happen with 1.1.0 or older?
MemoryError is out of Sabnzbd control, it's when the operating system doesn't allow the allocation of any memory anymore. But usually it should allow easily up to 4GB (max I ever tested).
Could you maybe try to disable virus scanner? I heard this also effects Sab from other users and gives this error types.

Re: 1.1.1 [33a7874] Win10x64 Intermittant Crash

Posted: November 20th, 2016, 7:11 pm
by mastyman
this never happened on the old versions no, just since last beta i believe and this release.

the only virus scanner i have running is windows defender for me.

Re: 1.1.1 [33a7874] Win10x64 Intermittant Crash

Posted: November 21st, 2016, 1:22 am
by safihre
Do you have multicore par2 disabled? Could this habe been during repair?
There is almost no changes between the 2 versions that could effect this.. Not that I can find at least :/

Re: 1.1.1 [33a7874] Win10x64 Intermittant Crash

Posted: November 21st, 2016, 1:54 am
by mastyman
its possible i might have skipped a couple beta releases this time around, perhaps the one from october was 2+ beta releases behind

i have multicore par2 enabled.

Re: 1.1.1 [33a7874] Win10x64 Intermittant Crash

Posted: November 21st, 2016, 2:05 am
by mastyman
theres literally thousands of these in the log not long before the crash btw.

Code: Select all

 
2016-11-20 07:42:28,063::INFO::[downloader:445] [email protected]: Initiating connection
2016-11-20 07:42:28,063::ERROR::[downloader:448] Failed to initialize [email protected] with reason: can't start new thread
2016-11-20 07:42:28,063::INFO::[downloader:732] Thread [email protected]: failed to initialize
2016-11-20 07:42:31,125::INFO::[downloader:445] [email protected]: Initiating connection
2016-11-20 07:42:31,125::ERROR::[downloader:448] Failed to initialize [email protected] with reason: can't start new thread
2016-11-20 07:42:31,125::INFO::[downloader:732] Thread [email protected]: failed to initialize
2016-11-20 07:42:33,142::INFO::[downloader:445] [email protected]: Initiating connection
2016-11-20 07:42:33,142::ERROR::[downloader:448] Failed to initialize [email protected] with reason: can't start new thread
2016-11-20 07:42:33,142::INFO::[downloader:732] Thread [email protected]: failed to initialize
2016-11-20 07:42:36,206::INFO::[downloader:445] [email protected]: Initiating connection
2016-11-20 07:42:36,206::ERROR::[downloader:448] Failed to initialize [email protected] with reason: can't start new thread
2016-11-20 07:42:36,206::INFO::[downloader:732] Thread [email protected]: failed to initialize
2016-11-20 07:42:38,242::INFO::[downloader:445] [email protected]: Initiating connection
2016-11-20 07:42:38,243::ERROR::[downloader:448] Failed to initialize [email protected] with reason: can't start new thread
2016-11-20 07:42:38,244::INFO::[downloader:732] Thread [email protected]: failed to initialize
2016-11-20 07:42:38,244::INFO::[downloader:445] [email protected]: Initiating connection
2016-11-20 07:42:38,246::ERROR::[downloader:448] Failed to initialize [email protected] with reason: can't start new thread
2016-11-20 07:42:38,246::INFO::[downloader:732] Thread [email protected]: failed to initialize

Re: 1.1.1 [33a7874] Win10x64 Intermittant Crash

Posted: November 21st, 2016, 2:24 am
by safihre
Do you already have logging set to Debug (in the Status window)?
If so: could you send me the logs before and with the crash to [email protected]?
If not can you set it to Debug and then send me the logs when it happens again?

Re: 1.1.1 [33a7874] Win10x64 Intermittant Crash

Posted: November 21st, 2016, 3:32 am
by mastyman
yep i keep it on Debug, emailed.

Re: 1.1.1 [33a7874] Win10x64 Intermittant Crash

Posted: November 21st, 2016, 7:48 am
by sander
"can't start new thread" is a python error message. See http://stackoverflow.com/a/1835043

So: too many threads already started.

And that is consistent with the memory problem.

But: where do the threads come from ... ? Interesting ...

Re: 1.1.1 [33a7874] Win10x64 Intermittant Crash

Posted: November 21st, 2016, 8:21 am
by safihre
New threads are started for example when the main server doesn't have the article and SAB will try to connect to the next-priority server to try and see if that one has it.