Skip to content
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

[Bug] Occasional "handle is invalid" error when tagging commits #2391

Open
ravindUwU opened this issue Dec 12, 2024 · 11 comments
Open

[Bug] Occasional "handle is invalid" error when tagging commits #2391

ravindUwU opened this issue Dec 12, 2024 · 11 comments
Milestone

Comments

@ravindUwU
Copy link

ravindUwU commented Dec 12, 2024

I've noticed a dialog with this message pop up sometimes, when tagging commits: run 'C:\Users\ravindUwU\scoop\apps\git\current\bin\git.exe tag --annotate tagMessage c5ac73 -F C:\Users\ravindUwU\AppData\Local\Temp\Fork\fork-tagMessage.txt': The handle is invalid. (os error 6).

Checking the folder %LOCALAPPDATA%\Temp\Fork afterward, I noticed that the referenced file %LOCALAPPDATA%\Temp\Fork\fork-tagMessage.txt doesn't exist (although I guess it's possible that it was quickly created and deleted by Fork 🤷).

Retrying after restarting Fork usually helps, but not always 🤷. Fork 2.3.1.0 running on Windows 11 Enterprise 23H2 22631.4460.

@DanPristupov
Copy link
Contributor

Please contact me by email ([email protected]).

@assuiedmilan
Copy link

assuiedmilan commented Dec 13, 2024

I have the same error, the file is indeed deleted when we try to create a tag.

@DanPristupov
Copy link
Contributor

I can't reproduce the problem myself. So I need someone to contact me, otherwise I won't be able to fix this.

@laomao800
Copy link

I have the same error, the file is indeed deleted when we try to create a tag.

For me, it was solved after reinstalling the program.
👀

@DanPristupov
Copy link
Contributor

@laomao800 no, it wasn't.

@force-net
Copy link

force-net commented Dec 17, 2024

Same issue. If it still not reproduced, I can contact by email

@zootius
Copy link

zootius commented Dec 17, 2024

Just to say I encountered this same error today when trying to add a tag. However I closed and restarted Fork and then it allowed me to tag without error.

Fork v2.3.1.0 running on Windows 10

@force-net
Copy link

run 'C:\Users\force\AppData\Local\Fork\gitInstance\2.45.2\bin\git.exe tag --annotate test commit_hash -F C:\Users\force\AppData\Local\Temp\1\Fork\fork-tagMessage.txt': The handle is invalid. (os error 6)

Folder C:\Users\force\AppData\Local\Temp\1\Fork\ exists.
Remove folder - new folder is created, same error message.
Deny permissions to remove file. fork-tagMessage.txt is created with correct contents, error is same.
Another try to create tag - all fine.
Restoring permissions, deleting file - all fine.

Looks like magic

@aledalmas
Copy link

Same problem, restarting fork solved the issue today

@KENNYSOFT
Copy link

KENNYSOFT commented Dec 24, 2024

I've reproduced it.
The first tagging after the program startup is always a success, and the following tagging to the different commits always fails.

@DanPristupov
Copy link
Contributor

@KENNYSOFT can you contact me by email ([email protected]) so we can confirm if the problem is fixed?

@DanPristupov DanPristupov added this to the 2.4 milestone Dec 24, 2024
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

8 participants