-
Notifications
You must be signed in to change notification settings - Fork 308
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
Heavy latency on focus after some while #2472
Comments
Update: It does become worse over time during normal operation even without window resizing. |
If you turn off image preview in nemo settings, does this issue persist? |
@RunkelRitter I disabled thumbnails as you suggested, but it still happens to me. Easiest way to reproduce is to open a folder with many files (e.g. Downloads), grabbing one window corner and moving the cursor in circles to alter the window size. After a few circles the window becomes very notably unresponsive when refocused. Edit: I recorded my screen: https://streamable.com/b3wwu9 |
I concur, I noticed this too after the mint 20 upgrade. |
Does disabling Icon Captions help? #2605 (comment) |
@SparkyBluefang thanks for linking, it's indeed the icon captions as identified in #2605 . Disabling them works as workaround. |
Does this occur in both list and icon views? I have a folder with 5000 images and cannot reproduce this (trying with the initially provided method) - the window stays responsive throughout. This behavior is curious because of the changes we did for 4.6 (mint 20): The icon view no longer optimizes its row heights (each row as small as its largest occupant) - the space allocated for the icon is always the same, regardless of the shape of the actual icon/thumbnail. This was done because of some similar behavior that would occur when loading a large folder - it would get bogged down constantly having to recalculate the layout (for all files, even those out-of-view). Now, as files are added, or resizing occurs, the spacing is constant, and there's much less cpu being used there. The symptoms you describe suggest something similar may be happening.
Thanks, hopefully I can narrow this down. |
Seems to be only in icon view for me.
Yes.
Icons and Controls: both Mint-Y-Dark
It even happens in folders with no images:
No too much, my home directory without hidden files is enough (26 files).
32 GiB (3.08 in use) Thanks :)) Edit: @mtwebster Just pull the bottom right edge of the window and spin it in circles for a few seconds. It becomes worse over time until nemo is unusable |
Yes, I have disabled all actions/extensions.
Adwaita Windows/Controls and Gnome icons.
With captions disabled, I scrolled through the folder to generate all of the thumbnails. Then, during testing, I would start by scrolling through to make sure nemo loads all of the thumbnails. Even with all of the thumbnails pre-generated, scrolling the icon view can be stuttery and refocusing the window becomes progressively worse. I can also still reproduce (but not as severely or as quickly) with thumbnails disabled entirely.
My current test case is 1,763. But I also have folders up to 15,000 (which also behave much worse).
64GB (reported 62.5GiB)
I can go back and try testing older version to see if there was a specific version that regressed. i.e. 323d0f0 was in 4.6.1 and d937f06 was in 4.6.3 I honestly don't recall when this regression showed up. I jumped from 4.0.x to 4.4.x in the Feb/March 2020, and from 4.4.x to 4.6.x in June/July 2020.
Ignoring that icon view scrolling is not as smooth (with captions enabled), it really seems like this is related to window focus events. Like it's triggering a layout reflow and something is leaking/accumulating. The best performing was the list view, where every single row/column is a fixed static size. The compact view had a fixed row height, but the column widths differ because they expand to fix the file names. I would have assumed the icon view would have been comprised of a grid of fixed size containers, and then internally they would flow the icons/labels appropriately, but that doesn't seem to be the case. Also, this doesn't seem to be related to displaying additional file metadata (like size and mod time) because the list view contains that data. Does the icon view and desktop view share the same implementation for the icon component (icon, name, captions)? If so, this might also explain why the desktop is still having problems keeping things aligned to the grid if those components are having layout/flow issues. |
Hi, can you guys confirm something for me:
Restart nemo, and try to reproduce this at any zoom level. Once you're done you can run:
This will restore any setting changes you've made previously. Thanks |
I can not reproduce the problem with either |
I do not get this problem either:
|
My
When disabling the captions ( But after loading the old gsettings, it appears again - even without restart. |
(Sorry for video quality, had to get it below 10MB for GitHub) As you can see, resizing becomes slower and slower and when refocusing the window (click on any file) the window doesn't react at all for a few seconds. nemo-issue-2472.mp4 |
I played this back at half-speed [using VLC], full screen. Is this a real bug though - do you (in normal practice) resize the nemo window at the rate shown in the video? |
Exactly, it uses a full CPU thread until it is responsive again.
Of course I don't do this crazy resizing. It's just the easiest and fastest way to reproduce this issue. It also slowly builds up like this if I switch folders, scroll around and do typical stuff. Until I get to the point that I can't use it anymore without restarting with |
I reproduce this without resizing the window at all. I trigger the problem simply by scrolling around and changing window focus (i.e. scroll, open an image, close the viewer, scroll, open a different image, etc). The longer I do that, the more pronounced the latency gets on focus. In case you misread my previous comment, I can not reproduce this problem with captions disabled. I CAN reproduce it with captions enabled, which makes nemo unusable fairly quickly (at least with sufficiently large folders). |
You don't have to do any more convincing - I can reproduce the issue, I just wanted to confirm the factor captions are playing while I was working on this. |
No worries, I just wanted to make sure @Jeremy7701 wasn't conflating (unrealistic) window resizing with this being a non-issue :) |
Hi if you want to test the fix, you can get packages here: https://github.com/linuxmint/nemo/releases/tag/master.mint20 I'm also triggering a build on our daily ppa if you wish to try that way: |
I can confirm that this appears to have resolved the runaway latency. Though icon view does still have about a consistent 1/2 second delay in focusing the window (in my test case with 2k images, compared to list view), but that at least appears to be fixed and isn't too obtrusive. The thing I find strange is that this unclosed |
Theming has changed a lot with Gtk over the years (just ask theme developers). I'm not sure when this issue started, but I wouldn't be surprised if it could be pinned down to a major Gtk3 version change (like what we get moving from mint 18 -> 19 -> 20), though I stopped digging once I found the culprit. |
No worries. I expect the remaining focus latency is most likely a different problem. It's noticeable, but not a usability blocker. I can file a follow-up issue if you think it's worth tracking. |
Issue
After resizing a nemo window multiple times, the window completely freezes for up to multiple seconds after focusing it.
New since Mint 20.
Steps to reproduce
Expected behaviour
Instant response
Other information
nemo -q
necessary)I'm willing to provide more info or a screen recording if needed. :)
Thanks!
The text was updated successfully, but these errors were encountered: