Nautilus freezes with multiple disks setup with nested bind mounts
Steps to reproduce
Nautilus freezes every few seconds when using bind-mounts within bind-mounts. It's not neccessary to browse to the bound dirs, the freezing occures randomly while using nautilus.
I found out, that this behaviour occurs with the following mount situation:
Bind large homedirs to XDG user directories (bind mount)
/media/home/user/Pictures --> /home/user/Pictures
/media/home/user/Music --> /home/user/Music
/media/home/user/Videos --> /home/user/Videos
Mount large hdds (normal mount)
/dev/sdd1 --> /media/8TB_1_1
/dev/sdd1 --> /media/8TB_2_1
/dev/sdd1 --> /media/8TB_3_1
Make files directly available in XDG user directories for convenience (at the end, it's a bind mount in a bind)
/media/8TB_1_1/video/movies --> /home/user/Videos/bib/movies_01
/media/8TB_2_1/video/movies --> /home/user/Videos/bib/movies_02
/media/8TB_3_1/video/movies --> /home/user/Videos/bib/movies_03
In fact, I have much more drives (14) all 2 TB oder bigger.
Current behavior
Nautilus freezes
Expected behavior
Nautilus should operate without freezing.
Additional information
When I run
nautilus --gdk-debug=ALL
I can see for example these two pauses (about 12 and 11 sec.):
Gdk-Message: 01:19:14.021: property notify: window: 33571785, atom(260): "_NET_WM_NAME"
Gdk-Message: 01:19:26.580: 361: interval=12276,5 layout_start=20,7 paint_start=55,4 frame_end=98,0 predicted=16,7 refresh_interval=16,7
and
Gdk-Message: 01:20:02.216: client message: window: 33554439
Gdk-Message: 01:20:13.814: 382: interval=90,0 layout_start=0,1 paint_start=33,8 frame_end=91,8 predicted=16,7 refresh_interval=16,7
Within the freeze, the nautilus window doesn't react on any mouse input, it's not even movable. Some of the freezes last several minutes.
When I run
nautilus --gtk-debug=ALL
I get, in case of nautilus being stucked, within seconds hundreds of megabytes of stuff like attached.
This problem occures at least in nautilus 3.26 and 3.28 on Fedora 27 and Fedora 28.