Skip to content

Software stops running in the background #18548

Closed

Description

@821938089

The problem

When I wanted to discard over a thousand files, I minimized the software because it was taking too long. However, when I reopened it after some time, I found that it still hadn't finished executing.
Exactly when I minimized the software, the discard process paused until I reopened it.

Release version

3.3.14

Operating system

Windows 10

Steps to reproduce the behavior

  1. discard 1000+ file
  2. minimize software

Log files

No response

Screenshots

No response

Additional context

No response

Activity

  1. steveward commented on May 3, 2024

    @steveward
    Contributor

    Thanks for the report @821938089. I'm going to add this to #7155 where we are tracking this issue.

  2. 821938089 commented on May 10, 2024

    @821938089
    Author
  3. Mancitiss commented on Jul 25, 2024

    @Mancitiss

    @steveward is this issue and #7155 really related? If I understand correctly #7155 is about discarding changes being slow. This issue is about discarding changes PAUSE when Github Desktop is in background. It does not do anything at all when it is not visible on the screen, only when I let it sit idling on the foreground (focus or not) does it begin to continue discarding changes. if it is just slow then the number of files it deletes should still be scale with time as if it was running on foreground for the entire time, however, to me it just stuck there while in background (not visible on the screen).

  4. 821938089 commented on Jul 25, 2024

    @821938089
    Author

    issue 7155 is actually outdated, the moveItemToTrash method is already asynchronous in the current source code, but the executor is still designed for blocking api's, there is no concurrent execution, leading to inefficiencies in moving files to the recycle bin.

    Moreover, there is a bug in this executor that causes it to pause in the background.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions