-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Existing issues matching what you're seeing
- I was not able to find an open or closed issue matching what I'm seeing
Git for Windows version
git version 2.50.0.windows.1
cpu: x86_64
built from commit: 311e67dc2479debe725dfb9a3f974bdce04644ea
sizeof-long: 4
sizeof-size_t: 8
shell-path: D:/git-sdk-64-build-installers/usr/bin/sh
feature: fsmonitor--daemon
libcurl: 8.14.1
OpenSSL: OpenSSL 3.2.4 11 Feb 2025
zlib: 1.3.1
SHA-1: SHA1_DC
SHA-256: SHA256_BLK
Windows version
Windows 11
Windows CPU architecture
x86_64 (64-bit)
Additional Windows version information
Microsoft Windows [Version 10.0.26100.4351]
Options set during installation
None / defaults
Other interesting things
The error dissapears after a short while
Terminal/shell
visual studio 2022 / cmd
Commands that trigger the issue
git push (visual studio 22)
Expected behaviour
push successful
Actual behaviour
This has happened last week and today just re-occured. When trying to push to a remote repo I get error that appears to be originating from Avalonia (presumably trying to get my git repo credentials):
Pushing Release-4.0
Failed to push to the remote repository. See the Output window for more details.
Error encountered while pushing to the remote repository: Git failed with a fatal error.
Method not found: 'Void System.Func`3..ctor(System.Object, IntPtr)'.
Enumerating objects: 6, done.
Delta compression using up to 32 threads
Compressing objects: 25% (1/4)
Compressing objects: 50% (2/4)
Compressing objects: 75% (3/4)
Compressing objects: 100% (4/4)
Compressing objects: 100% (4/4), done.
Writing objects: 25% (1/4)
Writing objects: 50% (2/4)
Writing objects: 75% (3/4)
Writing objects: 100% (4/4)
Writing objects: 100% (4/4), 5.15 KiB | 5.15 MiB/s, done.
Total 4 (delta 2), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 0% (0/2)
remote: Resolving deltas: 50% (1/2)
remote: Resolving deltas: 100% (2/2)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To https://github.com/moltco/remote_repo.git
f6f4bff..aded7be Release-4.0 -> Release-4.0
Pushing Release-4.0
Unhandled Exception: System.TypeLoadException: Method 'remove_Closed' in type 'Avalonia.Controls.WindowBase' from assembly 'Avalonia.Controls, Version=11.1.3.0, Culture=neutral, PublicKeyToken=c8d484a7012f9a8b' does not have an implementation.
at GitCredentialManager.ApplicationBase.RunAsync(String[] args)
at GitCredentialManager.Program.AppMain(Object o)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
Everything up-to-date
Just in case it is useful - I use Visual Studio 2022 as IDE for this repo. The error was first reported by Visual Studio and then I tried to reproduce in cmd.
The repo remote is over https://github.com/moltco/remote_repo.git for both fetch and push. I can do things like git remote show origin
or git fetch
just fine.
After poking around with fetching and showing origin for a while (I also turned on tracing via set GIT_TRACE=1 set GIT_CURL_VERBOSE=1
everything started working well again. My guess is that there is an intermittent issue either in Avalonia GUI start-up or access to git which causes Avalonia to crash where it should either retry or report error (?)
I am sorry I don't have further debug info and I appreciate it is not really reproducible but if it helps happy to run any commands that are useful if/when it happens again.
Repository
The only possible quirk is that the github repo in question has LFS switched on but I can't see how this would influence Avalonia credentials GUI.