react-devtools icon indicating copy to clipboard operation
react-devtools copied to clipboard

Expanded trees blank out sections, basically unusable.

Open paularmstrong opened this issue 9 years ago • 20 comments

Browser Versions: Chrome 58 & Canary

Site: https://mobile.twitter.com

Problem: When attempting to navigate through a tree of components (very very nested), portions of the tree blank out and make the extension unusable.

screen shot 2017-05-18 at 1 02 26 pm

Notes:

  • I've disabled all other Chrome extensions
  • Tried in multiple Chrome versions
  • Tried in incognito

paularmstrong avatar May 18 '17 20:05 paularmstrong

More data points:

  • OSX 10.12.4
  • Chrome version 58.0.3029.110 (64-bit)

Latest devtools (built from master) on mobile.twitter.com: screen shot 2017-05-20 at 10 06 59 am

Latest released devtools (from Chrome store): screen shot 2017-05-20 at 10 08 54 am

Tried exploring pretty deeply and still not seeing the issue: deep-nested

bvaughn avatar May 20 '17 08:05 bvaughn

@bvaughn Dock the dev tools to the side of the browser and try a bigger screen. When I undock and have devtools as a separate window, it seems to not happen. Only happens when devtools are a substantially large size and docked in the current window

Happens on both of my laptops while plugged into another screen.

paularmstrong avatar May 20 '17 13:05 paularmstrong

I'm traveling all week so I don't have a bigger screen to try on unfortunately. Maximizing the height of the devtools on my laptop's 15" screen is not sufficient to reproduce the bug though, no matter how deep I explore on Twitter Light.

My best guess at the moment is that it's some sort of browser rendering bug. (We don't do anything that should cause the behavior shown in your screenshot. It's just nested divs with color styles applied.)

I think this is edge-case enough that devtools are still pretty usable/useful 😁 but I'd love to figure out what's triggering this for you so we could add a fix. Any chance you could poke around in the Elements and Styles panels when this happens and see if there's any CSS properties that "fix" the issue when toggled off?

bvaughn avatar May 21 '17 14:05 bvaughn

Back in the states now (with an external monitor) but I'm still not able to reproduce the reported issue.

screen shot 2017-06-01 at 2 17 05 pm

Tried docked and undocked, on external monitor, browsing pretty deep in the hierarchy.

Not sure what else to do with this one at present.

bvaughn avatar Jun 01 '17 21:06 bvaughn

PS Which version of react-devtools are you seeing this bug with? can you repro with latest (2.2.0+)?

bvaughn avatar Jun 01 '17 21:06 bvaughn

Hi there,

I'm having exactly the same issue also on OSX. Using the latest extension version 2.3.3. Chrome 58.0.3029.110 (64-bit). OSX 10.12.5 (16F73)

I've recorded a performance session with the chrome dev of the chome dev, not sure if I'm reading this correctly but maybe the JS Heap is maxed out at which point nodes starts being dropped?

image

This might be a coincidence but I see the React tree start flashing as soon as I enter a node with a recompose HOC. Anyway, here's an animated gif which might give you some ideas!

react_devtool

Let me know if you want a profiler session export.

Cheers,

Jun

jmatsushita avatar Jun 19 '17 14:06 jmatsushita

Hi @jmatsushita. Thanks for the extra context! Is the site you're viewing with DevTools accessible somewhere I can try to repro?

bvaughn avatar Jun 19 '17 14:06 bvaughn

Maybe it makes a difference that I'm using a 24" HiDPI screen? (2x Dell P2715Q) @jmatsushita Are you using something similar?

paularmstrong avatar Jun 19 '17 15:06 paularmstrong

Ha! @paularmstrong indeed, going to the laptop screen addresses the problem!

@bvaughn Not super easily right now... In a week or so probably! :)

jmatsushita avatar Jun 19 '17 15:06 jmatsushita

Screen caps speaks louder than words (this is across my two screens):

react_devtool_2

jmatsushita avatar Jun 19 '17 15:06 jmatsushita

This happens to me as well. The fastest way to reproduce is to inspect a DOM node, then switch to the React tab to instantly expand the tree to that position. I've seen it on both my external (vertical) 4K monitor and the 15" 2017 MBP screen with Devtools docked, on both Chrome and Vivaldi.

alexkrolick avatar Jul 10 '17 17:07 alexkrolick

@alexkrolick: Just to confirm, when that happens, are you sure that the tree isn't just scrolled to the incorrect horizontal position? I have seen that (and we have #746 opened to fix that).

bvaughn avatar Jul 10 '17 17:07 bvaughn

Yeah, it totally glitches out - see before/after below for trying to hover the devtools titlebar, plus the extra white areas where nodes should be.

62006242-ced3-435e-9342-a2745e69ce4b 0fffd469-dec0-413d-97a9-de62e1bb22aa

alexkrolick avatar Jul 10 '17 17:07 alexkrolick

It's actually happening on one of my coworker's screen right now, too 😱

alexkrolick avatar Jul 10 '17 17:07 alexkrolick

When it does this, can you inspect the React DevTools panel (using the "Elements" tab in another Chrome DevTools panel) and confirm if the nodes are missing or if they're there but not rendered? My guess is that they're present, but not being rendered by the browser for some reason, but I have been unable to reproduce this bug so far.

bvaughn avatar Jul 10 '17 18:07 bvaughn

kapture 2017-07-10 at 12 21 20 kapture 2017-07-10 at 12 20 22

I think they are there, just flickering out somehow - including Chrome's ... chrome

alexkrolick avatar Jul 10 '17 19:07 alexkrolick

That's interesting! I suspected this was some sort of browser/rendering bug.

bvaughn avatar Jul 10 '17 19:07 bvaughn

Reverting to earlier versions of Chrome might work too, it didn't happen before a certain update.

mbixby avatar Jul 25 '17 20:07 mbixby

+1 I'm having the Same issue: Chrome Version 60.0.3112.101 OSX: 10.12.6 4k monitor: browser any width

8-bitTom avatar Aug 24 '17 18:08 8-bitTom

React DevTools has been rewritten and recently launched a new version 4 UI. The source code for this rewrite was done in a separate repository and now lives in the main React repo (github.com/facebook/react).

Because version 4 was a total rewrite, and all issues in this repository are related to the old version 3 of the extension, I am closing all issues in this repository. If you can still reproduce this issue, or believe this feature request is still relevant, please open a new issue in the React repo: https://github.com/facebook/react/issues/new?labels=Component:%20Developer%20Tools

bvaughn avatar Aug 19 '19 23:08 bvaughn