Skip to content

Github Desktop change list incorrectly renders with 50,000+ changes #21630

Closed

Description

@Kamurai

The problem

When Github Desktop loads a list of changes that has excessive numbers (I'm moving the file system to GIT for versioning and sharing), the bottom of the list seems to rise as one scrolls down.

It has the appearance of "cutting off", but the changes are still there.

I'd really just like to report the bug, this doesn't seem like a very standard test case.

Windows 10, Github Desktop, the only extension is Large File Storage.

Release version

Version 3.5.4 (x64

Operating system

Windows 10

Steps to reproduce the behavior

  1. Create repository.
  2. Add 50,000 files.
  3. Observe Github Desktop change list.

Log files

2026-02-17.desktop.production.log

Screenshots

Image

Additional context

Moving something like 20K of files back to the original location did resolve the issue, I'll just have to move them in section by section.

And because someone at the other forum mentioned it, there are no system files other than thumbnail files I would ignore.

Activity

  1. benjaminhampe commented on Feb 22, 2026

    @benjaminhampe

    Same bug here.

    The more i scroll down the less lines are drawn until there are zero lines drawn anymore

    Never had this problem before.

    Win11 x64 3.5.4

  2. added
    investigation-needed
    on Feb 23, 2026
  3. added
    more-info-needed
    on Feb 23, 2026
  4. github-actions commented on Feb 23, 2026

    @github-actions
    Contributor

    Thank you for your issue! Unfortunately, we are unable to reproduce the issue you are experiencing. Please provide more information so we can help you.

    Here are some tips for writing reproduction steps:

    • Step by step instructions accompanied by screenshots or screencasts are the best.
    • Be as specific as possible; include as much detail as you can.
    • If not already provided, include:
      • the version of the application you are using.
      • the operating system you are using
      • any environment factors you can think of.
      • any custom configuration you are using.
      • a log file from the day you experienced the issue (access log files via Help > Show Logs in Finder/Explorer).
    • If relevant and can be shared, provide the repository or code you are using.
  5. babakks commented on Feb 23, 2026

    @babakks
    Member

    Hi @benjaminhampe and @Kamurai, I tried to reproduce this on a VirtualBox machine and was not successful, hence the unable-to-reproduce label.

    So, we'll appreciate it if you could provide us with more details to reproduce this. 🙏

  6. Kamurai commented on Feb 23, 2026

    @Kamurai
    Author

    I'll try to remember to circle back to this.
    The original scenario was that easy, granted mine was mostly pictures.

  7. removed
    more-info-needed
    on Feb 23, 2026
  8. added
    more-info-needed
    on Feb 23, 2026
  9. Kamurai commented on Feb 23, 2026

    @Kamurai
    Author

    I created a .txt file with "This is only a test.
    In the event of an actual text document, this would have words."

    Then copied it 9 times to make a folder with 10 files.
    I copied that folder 10 times to make a folder with 100 files.
    I copied that folder 10 times to make a folder with 1000 files.
    I copied that folder 10 times to make a folder with 10,000 files.
    I copied that folder 5 times to make a folder with 50,000 files.

    Symptom was exhibited.
    I removed 1 of the 10,000 file folders, and the symptom is no longer exhibited.
    I replaced the 10,000 file folder and the symptom is exhibited.

    If the virtual box system is too clean or performative, then I recommend adding more files until the symptom is exhibited.

  10. removed
    more-info-needed
    on Feb 23, 2026
  11. babakks commented on Feb 23, 2026

    @babakks
    Member

    I had tried with over 60K files in the same directory. Can you please tell me how is the structure of your repo directory? I mean, are all files in the root or are they spread over nested dirs?

  12. added
    more-info-needed
    on Feb 23, 2026
  13. Kamurai commented on Feb 23, 2026

    @Kamurai
    Author

    As explained in my previous comment, I made folders of 10 files.
    Those 10 folders are in a folder to make a 100 file folder.
    Those 100 folders are in a folder to make a 1000 file folder.
    Those 1000 folders are in a folder to make a 10,000 file folder.

    So at the root of the repository, there are 5 folders for the 10,000 level, in each of those 10 folders, recursively until you get down to 10 files in a folder.

    Additionally, I copied and pasted the 10 files up to 60,000 (apologies, got distracted at 30,000 and doubled it): the structure has no bearing on the symptom.

  14. removed
    more-info-needed
    on Feb 23, 2026
  15. babakks commented on Feb 26, 2026

    @babakks
    Member

    Thanks, @Kamurai! I think I was able to reproduce it but I'm not sure how reliable this method is , or how much it depends on the setup/environment.

    My setup:

    • VirtualBox 7.1.8 r168469 (Qt6.5.3)
    • CPU/Memory: 8 processors, 8192 MB
    • Windows 11 Pro 24H2 (build 26100.7462) + Windows Feature Experience Pack 1000.26100.275.0
    • Display resolution: 1920x1080 (100% scale)

    What I did:

    1. Created 60K files in a temp directory
    2. Created a directory and run git init
    3. Copied those 60K files over from the temp directory
    4. Opened Github Desktop and added the directory as an existing repository
    5. Once loaded, started to scroll down the list of changes and observed the viewable area shrinks

    Here's the screen recording of the above steps:

    gh-desktop-file-changes-too-long-repro.mp4
    gh-desktop-file-changes-too-long.mp4

    FWIW you can use this bash (git-bash) one-liner to create the files:

    for i in {1..60000}; do touch "foo-$i"; done
  16. added
    bug
    priority-3
    and removed on Feb 26, 2026
  17. babakks commented on Feb 26, 2026

    @babakks
    Member

    Also, it still happens even if you scroll down slowly, or use Down or Page Down keys.

  18. niik commented on Apr 20, 2026

    @niik
    Member

    I've verified that this reproduces on macOS as well as Windows.

  19. niik commented on Apr 20, 2026

    @niik
    Member

    I tossed this to Copilot and it found that there's a twofold problem with our SectionList and React virtualized scaling when the list height exceeds 1.5M pixels


    Root Cause

    The bug is caused by incorrect browser detection in react-virtualized's maxElementSize.js, compounded by a double offset adjustment in the
    two-level Grid architecture used by SectionList.

    How it works

    1. maxElementSize.js (in react-virtualized) detects Chrome via window.chrome.webstore, which was removed from Chrome in 2018. Since Electron
      doesn't have this property either, it falls back to DEFAULT_MAX_ELEMENT_SIZE = 1,500,000px instead of the Chromium limit of ~16.7M pixels.
    2. The changes list uses SectionList with one section containing all items. At 29px/row, the threshold is ~51,725 items (1,500,000 ÷ 29).
      Beyond this, react-virtualized's ScalingCellSizeAndPositionManager activates scaling.
    3. SectionList uses a two-level Grid — an outer Grid rendering sections, each containing an inner Grid rendering rows. When scaling
      activates, both Grids independently apply verticalOffsetAdjustment to compress positions. These adjustments compound:
    • The outer Grid shifts the section cell up by N pixels
    • The inner Grid also shifts its rows up by N pixels
    • The result is rows displaced by 2N pixels from where they should be
    1. Additionally, the inner Grid's style is { ...params.style, width: '100%' } where params.style.height is the unscaled section height (e.g.
      1.74M). This overrides the Grid's own height in _extends({}, gridStyle, style), causing the inner Grid's DOM element to be taller than its
      scaled content container — breaking the scroll relationship.

    Visual effect

    At scrollTop=0, both adjustments are 0 so everything renders. As the user scrolls, the adjustment grows linearly, pushing rendered rows
    progressively higher above the viewport — making the visible area shrink from the bottom until nothing is visible.

    Key files

    • app/node_modules/react-virtualized/dist/es/Grid/utils/maxElementSize.js:1-9 — broken isChrome() detection
    • app/src/ui/lib/list/section-list.tsx:1346-1373 — inner Grid receives params.style (line 1369) and scaling compounds
    • app/src/ui/changes/filter-changes-list.tsx:85 — RowHeight = 29

    Potential fixes

    1. Quick fix: Override maxScrollSize or patch the browser detection so Electron/Chromium uses ~16.7M limit, raising the threshold to ~578K
      items
    2. Proper fix: Strip height/top from params.style before passing to the inner Grid, preventing the double offset adjustment
  20. Kamurai commented on Apr 20, 2026

    @Kamurai
    Author

    I can't say this is outright wrong, but this is for a standalone app, not a browser, unless the GITHub Desktop app has a browser in it?

  21. niik commented on Apr 21, 2026

    @niik
    Member

    I can't say this is outright wrong, but this is for a standalone app, not a browser, unless the GITHub Desktop app has a browser in it?

    GitHub Desktop is built on Electron which is based on Chromium so in a way GitHub Desktop is a browser 😄

  22. Kamurai commented on Jul 16, 2026

    @Kamurai
    Author

    Was code actually implemented to fix this, or are we just done talking about it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buginvestigation-neededpriority-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions