-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Web Profiler inconsistent error - Undefined array key 4 #50942
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
heh... I found these gems in the 'index.csv' file: L364: |
Seems to be the same issue than in #50816 and #50913. If you, @benjaminfunk or @Pelagoss ever manage to share a reproducer, feel free to do so! |
Is it even possible to mock concurrent file writes to the same file from two different requests? |
Closing in favor of #50947. |
nicolas-grekas
added a commit
that referenced
this issue
Jul 13, 2023
…age (radar3301) This PR was merged into the 6.3 branch. Discussion ---------- [HttpKernel] Skip corrupted CSV data in FileProfilerStorage | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Partially fixes #50942, improves/fixes on PR #50913, partially fixes #50816 | License | MIT Technically, part of this fix could go all the way back to 2.1, but since we're not sure why/how exactly the index.csv file is being corrupted in the first place, this PR should just serve as a stop-gap measure until the root cause can be identified. A corrupted index.csv file is especially noticeable since 6.3, when the "Remove Expired Profiles" feature was added by #47352 . RE: improves/fixes on PR #50913: Warnings are (usually?) only escalated to errors in debug mode, so having a try/catch is a bit more overhead than I think is actually needed, and I believe just checking that the line read from the csv is not corrupted is the better/faster option. Granted, the profiler should really only be active in debug/non-production modes anyway, but "should" and reality usually don't align... `@alamirault` `@MatTheCat` `@benjaminfunk` `@Pelagoss` `@derrabus` Commits ------- b4e942d Update FileProfilerStorage.php
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Symfony version(s) affected
6.3.1
Description
Very occassionally, when navigating '/logout' (302 redirect) '/' (302 redirect) '/login, I get the following errors:
The interesting thing (maybe?) is that '/login' returns HTTP 200, but it looks like the AJAX request is failing? But I don't have any entries in the developer console for any ajax requests... And yet the page output looks like this:

How to reproduce
No idea how to reproduce, as it's inconsistent. I'm assuming it's a delay with the file system, maybe? I don't know.
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: