-
Notifications
You must be signed in to change notification settings - Fork 47.2k
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
Error: "Commit tree already contains fiber "19587". This is a bug in React DevTools." #18859
Comments
What does this mean?
Can you repro this bug? And if so, could you share steps for repro with us? |
Sorry for not providing enough details, but even I don't have enough details. This error just popped up when I was profiling my app in React Devtools. I was profiling a normal ( About having a repro, I couldn't replicate it myself after that one occurrence, again. Anyways, my assumption is (it could be wrong), one of the list item in the flame graph is getting duplicated somehow, either due to the app it was profiling or due to something else. |
Okay. Thanks for clarifying. |
@bvaughn If no-one is working on this, I would like to assign myself to investigate and fix the issue (since multiple people have referenced it). Also, If you assign me, Can you please also help me with where to look? |
@irohitb If you'd like to dig into this, we'd be happy to have the help. I don't really have the bandwidth to guide you on it though. Some places you'd want to look at for starters: And for a general overview of how DevTools works, you can check out this: https://github.com/facebook/react/blob/master/packages/react-devtools/OVERVIEW.md |
@phoenisx This error remains the highest reported DevTools bug but we still don't have a repro case so that I can fix it. Do you remember how to repro the error you saw above? Can you share the steps with me if so? It would be very helpful! Thank you 🙇🏼 |
Hi @bvaughn Will try to replicate it again... It's been a long time since I used the Profiler, so I don't remember much. 👍 |
Okay, understood! Either way, thanks for checking. |
I've got a repro for this over on #21402: https://github.com/web-reprex/prettier-list-different When I run this project, I see an error in DevTools:
This is very promising! Looks like there's a problem with Suspense and LegacyHidden. |
I think the case I'm seeing is this:
Unfortunately this thrown error is not surfaced in the UI so things go on until later, when it causes a downstream error in the Profiler. First step is making that first error visible (done via #21426). Second step is to figure out why it's happening. Interestingly, if I trim down the repro a https://github.com/web-reprex/prettier-list-different to the minimal repro case, then copy that into the React DevTools test harness (with a bleeding edge build of react and react-dom) the bug no longer happens. 🤔 Edit 1: If I copy it instead into a project created by Edit 2: One (possibly) significant difference between the two versions is that 17 uses the |
Oooh looks like this may have just been an oversight in our filtering logic. (We filter Eventually we'll not want to filter |
This bug fix has been released as 4.13.1 |
Describe what you were doing when the bug occurred:
DevTools version: 4.6.0-6cceaeb67
The text was updated successfully, but these errors were encountered: