-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
"Fatal Python error: Cannot recover from stack overflow" from logger #4202
Comments
I can't reproduce this error - can you try against python 3.6? It may be version dependent |
related to #4191? |
@neilisfragile seems dup, ill try to make our docker image switch to py3.6 , and it should then reproduce exactly your error. |
I encountered this error while having lot of instabilities with matrix, with some strange errors due to encoding and errors loop (an error handler that failed, triggering an error handler that fail and so on). I am a bit lost as some stacktraces seem normal as this one:
In my case, I suppose that the reported error here has been triggered by this error, which seem to be also reported in #4191 :
And a verbosity greater than ERROR. But it's only speculation. But the stacktrace is so huge, and I struggle to find where is the useful information in this stacktrace. Sorry for this not so useful bug report, I think you could close it in favor of #4191, even if I suspect that this error can cause many different stacktraces and even crash the whole server. |
For us the current workaround was to filter with |
This is #4003.
|
A couple of things which might be worth trying here:
Let me know if either of the above help. |
I have already set the encoding for my log file. log.yaml
I was running synapse with If I still encounter some bugs, I will try to switch from ERROR to CRITICAL in |
for what it's worth, I think most of those |
I get the same log as here
Not sure if this is any useful, but for me it was enough to increase the level to ERROR in
|
Ok no it just happened again |
Since the creation of this bug report, I have updated matrix many times and have not encountered this bug anymore. Feel free to close this issue. |
so the basis of the problem is:
So there are two problems here. One is that
This sort of thing can reduce the amount of logging that is written, thus reducing the likelihood of hitting an error in the log subsystem - but as you have discovered, is not a complete solution. It is tricky to figure out what is going on to cause the initial error, beyond obvious things like
|
closing as a dup of #4240 |
Description
The server crashes and stops with error
Fatal Python error: Cannot recover from stack overflow.
The full stacktrace can be found here: matrix-stackoverflow.log
Steps to reproduce
The only thing that I guess that could help to reproduce the bug is to edit
log.yaml
and set every log levels toINFO
or evenDEBUG
.I expect that my matrix server doesn't crash.
Version information
The text was updated successfully, but these errors were encountered: