Skip to content

Multiple update notification message boxes #2347

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

Closed
1 task done
pwlsjk opened this issue Oct 4, 2019 · 8 comments
Closed
1 task done

Multiple update notification message boxes #2347

pwlsjk opened this issue Oct 4, 2019 · 8 comments
Assignees

Comments

@pwlsjk
Copy link

pwlsjk commented Oct 4, 2019

  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
git version 2.22.0.windows.1
cpu: x86_64
built from commit: d003d728ffa6c0006da875ec6318d3f6b28a4ddb
sizeof-long: 4
sizeof-size_t: 8
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
Microsoft Windows [Wersja 6.1.7601]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
Editor Option: Notepad++
Custom Editor Path:
Path Option: CmdTools
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFCommitAsIs
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Enabled
Enable Builtin Interactive Add: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

Windows 7 as Hyper-V virtual machine

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

None

None

Auto updater notifications appears.

  • What did you expect to occur after running these commands?

Single windows with notification.

  • What actually happened instead?

Multiple windows with notifications.

Adnotacja 2019-10-04 121302

@PhilipOakley
Copy link

Wow. What fun. What date does the Virtual machine think it is...?

The updater is IIRC in the build-extra repo https://github.com/git-for-windows/build-extra

@dscho
Copy link
Member

dscho commented Oct 4, 2019

That's strange. We try specifically to avoid multiple instances of the update:

<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>

I see, however, that this is on Windows 7. Maybe the Task Scheduler on this operating system (that will see its end of life this coming January, by the way) ignores that tag? @pwlsjk can you check?

@rimrul
Copy link
Member

rimrul commented Oct 14, 2019

The documentation for MultipleInstancesPolicy says it's supported on Vista/Server 2008 and up. That shouldn't be the problem here. How do we launch this? Does the git-bash.exe process launched by the scheduler exit before the message box gets closed?

@rimrul
Copy link
Member

rimrul commented Oct 14, 2019

Does the git-bash.exe process launched by the scheduler exit before the message box gets closed?

This does not seem to be the case. Unless I manually kill a process in the chain (git-bash.exe, multiple sh.exe processes, multiple git.exe processes) this does not happen. The task scheduler on Windows 7 revognizes the running process and doe not open another messagebox.

Something on @pwlsjk 's machine seems to kill one or more intermediate processes.

@dscho
Copy link
Member

dscho commented Oct 14, 2019

How do we launch this?

When asked to run update checks automatically, the installer registers a scheduled task. This task runs the following command:

git-bash.exe --hide --no-needs-console --command=cmd\git.exe update-git-for-windows --quiet --gui

which in turn runs the shell script git-update-git-for-windows.

Something on @pwlsjk 's machine seems to kill one or more intermediate processes.

Sounds like it, doesn't it?

@rimrul
Copy link
Member

rimrul commented Jun 10, 2020

I have a new hunch what might cause this. StartWhenAvailable. I think the task scheduler might not properly check for running instances (or fail to detect freshly started instances) if it missed multiple scheduled executions and tries to follow them all up. I also think we can't drop the StartWhenAvailable setting, as that would cause issues with systems that where installed at a time they usually not in use.

@rimrul rimrul self-assigned this Jun 24, 2020
@kdekaluga
Copy link

It's Sep 2021 and I'm still having this issue on Windows 7. I just left my work PC unattended for some time (maybe, about a week), then opened RDP session and saw the following:

image

I have git version 2.32.0.windows.2

This is quite frustrating.

@dscho
Copy link
Member

dscho commented Oct 4, 2021

This is quite frustrating.

It might be best if you reinstall Git for Windows and uncheck the "auto-update" option.

@dscho dscho closed this as completed Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants