-
Notifications
You must be signed in to change notification settings - Fork 134
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
Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '512' frames #620
Comments
@mo7ameds7awky any indication which route causes that? I really cannot help without reproduction. |
@romalytvynenko when I visit |
@mo7ameds7awky I meant there is some route of your application (not |
@romalytvynenko Yes sorry, here is the full trace with the logs you are generating [2024-11-07 07:56:22] local.ERROR: Error when analyzing route 'PATCH api/users/profile/personal-info' (App\Http\Controllers\Users\Me\Profiles\UpdatePersonalInfoController@__invoke): Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '512' frames – /vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php on line 1052 |
@mo7ameds7awky Please send the source code of this method |
@romalytvynenko as I can NOT share the source code but I will give an idea of what is going on in the controller
|
@mo7ameds7awky if you cannot share the code, you can create a reproduction. You can simply clone this repo https://github.com/dedoc/demo-scramble and try reproducing the issue by using same code patterns, both in controller, in the JSON resource, in models, etc. Without either repro or the codebase I am not able to help. |
@romalytvynenko The code I provided is the same as I have but with a dummy name, with that, you can't help also?!! |
@mo7ameds7awky try cloning that demo repo I shared and paste the code you shared there. Is the issue reproducing? |
@mo7ameds7awky the issue is in the |
@mo7ameds7awky there is some conditional method call ( |
@romalytvynenko Thanks for the support, but unfortunately I can't share the code, but we can leave this issue until someone faces the issue and has permission to share the code, if I had the time I would try to imitate the code and try the demo repo approach you suggested to me |
@mo7ameds7awky you can check and share the info about specific conditional methods calls in the resource, that will also help. No need in sharing the source |
@romalytvynenko I use |
@mo7ameds7awky what types of arguments are you passing there? Can you share some pseudo code that will allow me to understand that? |
@romalytvynenko |
@mo7ameds7awky I mean inside |
Closing the issue as I cannot reproduce. Something is clearly off, but without more engagement and willing to spend some time here to help me with repro, I cannot help. |
@mo7ameds7awky Try to disable xdebug. |
@morloderex it's more of a workaround than a solution, thanks though, i started to use scribe which works perfectly with XDebug enabled, it's a little bit frustrating to describe your APIs, but it will satisfy my needs, i hope this issue fixed for other people that wants to use scramble |
The reason of this issue (or at least one them) has been fixed in 0.11.32: https://github.com/dedoc/scramble/releases/tag/v0.11.32 |
php version: 8.3.13
Xdebug v3.3.1
Zend OPcache v8.3.13
laravel version: 11.9
scramble version: 0.11.25
when i installed Scramble for my existing laravel project, then I visited the
/docs/api
route it shows error:Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '512' frames
The text was updated successfully, but these errors were encountered: