-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
PHP Fatal error: Uncaught ErrorException: stream_set_chunk_size() #1592
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
Comments
We're having the same problem. Our hosting provider sets the edit: Can i send a PR that caps the calculated memory to |
Which has been added a few days ago, and which calculates 10% of the value from On my local setup I have 30 GB of memory limit, which is half my RAM, and it was trying to allocated 3 of that via stream_set_chunk_size(), which has a limit of 2 GB, apparently (the limit matches self::MAX_CHUNK_SIZE). I think @Seldaek wanted to use For those needing a quick fix, you should set P.S. I know I'm a bit late to the party, but I think the 791f547 commit makes the matter worse instead of solving the actual problem my simply using min instead of max. |
I also encountered this issue. Setting the |
Sorry about the trouble here.. I didn't realize the previous max constant was a hard limit, and definitely did not assume people would have memory limit set to 30GB :) Will get a release out shortly. |
Monolog version 2.3.4
Somehow StreamHandler->streamChunkSize becomes too big:
probably something is wrong with memory limit calculation.
and the constant MAX_CHUNK_SIZE is not actually used to limit the chunk size
The text was updated successfully, but these errors were encountered: