-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Windows 10 pro x64, Git 2.20.1 Windows x64, Unable to edit C:\Program Files\Git\git-bash.exe (out of memory). #2003
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
Comments
|
|
Install by file |
That sounds as if you tried to use Windows' default console window for Git Bash (note: the issue reporting template really is not meant to annoy bug reporters, but rather intended to help you not forget vital information). Can you edit |
|
@donhuvy please do try to work with me, if you do not try ResEdit I get the impression that you might not be interested in resolving this bug at all. |
ok, I will reply soon. I am using macOS, I will report about it when use Windows OS. |
This is my result First line
(latest version 2.20.1 for Windows is the same) |
On Sat, 5 Jan 2019, Do Nhu Vy wrote:
This is my result
<img width="800" alt="a1" src="https://user-images.githubusercontent.com/1328316/50723622-c7c26480-1112-11e9-861f-ba4bdc61e00f.png">
<img width="800" alt="a2" src="https://user-images.githubusercontent.com/1328316/50723623-c85afb00-1112-11e9-8836-e153bb7a69e1.png">
Could you summarize that without pasting an image that I cannot see in a
text reader?
|
The content of it is APP_ID=GitForWindows.Bash ALLOC_CONSOLE=1 usr\bin\mintty.exe --nodaemon -o AppID=GitForWindows.Bash -o AppLaunchCmd="@@EXEPATH@@\git-bash.exe" -o AppName="Git Bash" -i "@@EXEPATH@@\git-bash.exe" --store-taskbar-properties -- /usr/bin/bash --login -i |
What antivirus do you have? |
After I use ResEdit on file |
I think there is a bug where the actual condition of the error is not handed through correctly, and the installer will always claim that it is out of memory, even if it is a matter of access being denied. I just kicked off a snapshot build that should address the incorrect error message, and would like to ask you, @donhuvy, to test this installer; It should be available here once the build is done. |
To work around an antivirus, perhaps the installer needs to patch the file while in a temporary directory, and then copy the patched file to ProgramFiles/Git |
My PC I download Git for Windows 64bit - (commit 1dfd189). Turn on Real-time protection of Mc-Afee antivirus.
As you see error notice dialog, after I press button OK, Git Bash still work as I want. |
That's a good suggestion. Could you open a PR to make it so? |
A temp folder is probably inappropriate. The file should be on the same
filesystem/volume and moved over for performance reasons. But when you look
closer, I am pretty sure inno setup does that already.
Best regards, Mike
…On Fri, Feb 22, 2019, 3:01 PM Johannes Schindelin ***@***.***> wrote:
To work around an antivirus, perhaps the installer needs to patch the file
while in a temporary directory, and then copy the patched file to
ProgramFiles/Git
That's a good suggestion. Could you open a PR to make it so?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2003 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHJ-yBet2EYKzJJR-rbeVFC5dMiot1iaks5vQEx_gaJpZM4ZlNNm>
.
|
@mfriedrich74 you don't need to guess, you can look! In any case, we already work with a temporary directory in similar cases, look for To test out your changes:
|
Okay, people, I really described in detail how you can help yourself with this issue. Ball's in your court now. |
I install |
Windows 10 pro x64.
Git for Windows version 2.20.1 x64.
I try to reinstall, restart many time, Run as administrator, but not success.
also version 2.20.1 for Windows 32 bit, 64 bit cause same error (like screenshot).
The text was updated successfully, but these errors were encountered: