Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[DepdencyInjection] Fix costly logic when checking errored definitions#50905

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedJul 6, 2023
edited
Loading

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#50763 (comment)
LicenseMIT
Doc PR-

@NicolJamie@X-Coder264 can you please give this patch a try and report back. Does that fix the perf issue you're having?

@X-Coder264
Copy link
Contributor

X-Coder264 commentedJul 6, 2023
edited
Loading

@nicolas-grekas It does fix it, thanks.

Without this fix:

www-data@31ed4ece830c:/srv/app$ time bin/console ca:clPHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 163840 bytes) in /srv/app/vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php on line 69PHP Fatal error:  Uncaught Symfony\Component\ErrorHandler\Error\OutOfMemoryError: Error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 163840 bytes) in /srv/app/vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php:69Stack trace:#0 {main}  thrown in /srv/app/vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php on line 69www-data@31ed4ece830c:/srv/app$ time bin/console ca:clPHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 163840 bytes) in /srv/app/vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php on line 69PHP Fatal error:  Uncaught Symfony\Component\ErrorHandler\Error\OutOfMemoryError: Error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 163840 bytes) in /srv/app/vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php:69Stack trace:#0 {main}  thrown in /srv/app/vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php on line 69real    1m0.200suser    0m59.713ssys     0m0.464s

With this fix:

www-data@31ed4ece830c:/srv/app$ time bin/console ca:clIn DefinitionErrorExceptionPass.php line 49:                                                                                                                                                                                                           Cannot autowire service "foo": argument "$bar" of method "Baz::__construct()" is type-hinted "int", you should confi    gure its value explicitly.                                                                                                                                                                                                                                                                                                                                                                                     real    0m9.052suser    0m8.738ssys     0m0.308s

@nicolas-grekasnicolas-grekas merged commit9cbdfc6 intosymfony:5.4Jul 7, 2023
@nicolas-grekasnicolas-grekas deleted the di-fix-errored-check branchJuly 25, 2023 15:45
This was referencedJul 29, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@nilBoranilBoranilBora left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@X-Coder264@nilBora@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp