-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Fatal error: Allowed memory size #6395
Comments
Thanks for the report, it is a known occurrence but without the context (full trace) it is impossible to fix as JsonLD is used in all ActivityPub communication, and it doesn't fail consistently. |
What information you need? Shall i look for some special keywords in my logfile? |
Do you have any relevant log lines below the one you pasted in this issue? It could help determining what kind of ActivityPub call makes JsonLD loop. |
No, there are no more log lines. This is an announcement from the cron log. |
I was expecting a full stack trace with the Fatal Error message, but maybe it is only available with XDebug installed, which we don't recommend for production use. Thanks for the elaboration though. |
I can confirm that I'm also getting very regular entries like this, but unfortunately no stack trace. Also on PHP 7.2 |
This is far away from being a full stack trace but I can say that at my node worker stops while discovering poco because of
Edit: Friendica stable 2019.01 |
Ping @annando |
Hmm, there's something wrong with this profile. |
I deleted some contacts. After this, I get the same error. I tried to insert ini_set('memory_limit','512M'); in the php file, but no effect. Same error. Using: Friendica 'The Tazmans Flax-lily' 2019.01 - 1293, Master branch. |
I have some test code. It would be great if someone could test it, before we think about a better solution. Please edit the file Go to line 5747 (This is the function
Please add it before the line If this does work, then we have to see how to make a final solution. |
OK, i will test it. |
I apply the patch, wait one hour and no errors appears. I think, it works. |
@annando |
The same behavior here. At first there were fewer errors, but now there are more than before. |
Could you post the exact message, so that we can check whether it is the same line or some other place? |
It is the same error |
Okay. |
I have the same error on my system. After one week, I got this error. If the error comes up, I ran the crontab worker command manualy and this fix it for one week. Normaly I thought, that command line and cron are the same. But I saw, that the cronjob runs with a sh and my commandline with a bash shell. Could this be a solution? Now I think I must wait for next sunday an we will see, if the cronjob with shell=/bin/bash, runs again. |
Which version are you using? The RC should now be fine. |
Master |
Expected behavior
No error
Actual behavior
Since one month on every worker call this error appears:
PHP Fatal error: Allowed memory size of 188743680 bytes exhausted (tried to allocate 67112960 bytes) in /src/Util/JsonLD.php on line 109
Friendica version you encountered the problem
2019.01-rc - 1292
Friendica source (git, zip)
git
PHP version
7.2.13
memory_limit = 350M
The error also appears, if i rise the memory_limit up to 500M
SQL version
5.5.5-10.0.34-MariaDB
The text was updated successfully, but these errors were encountered: