Stuck on "Checking Settings" during load

334 views
Skip to first unread message

Ilija Misov

unread,
Apr 18, 2013, 11:04:36 AM4/18/13
to gitext...@googlegroups.com
Hi guys,

It looks like I have successfully installed Git Extensions v. 2.4.4 . But when I try to run it, the app stops on splash screen while "Checking Settings" action is executing. Since I install the app for all users, when I try to run it as a different user, it runs ok, but not with my account. The same thing happens with v. 2.4.3. Git Bash itself works correctly. I tried several times with uninstall/install but with no success. I also created the .ssh folder under my profile, and also removed it from there, but still ... no success, the problem is always the same, the app got stuck on "Checking Settings".

Can you please help on this.

Thank you,

Regards
Ilija Misov

Janusz Białobrzewski

unread,
Apr 19, 2013, 4:43:07 AM4/19/13
to gitext...@googlegroups.com
Hi,

Probably it would be the best if you could download Visual studio express edition (for free) and debug why program hangs up.

Regards,
Janusz.

Ilija Misov

unread,
May 11, 2013, 7:25:39 PM5/11/13
to gitext...@googlegroups.com
Hi Janusz et all,

I tried debugging and I got to the following:

\GitCommand\SynchronizedProcessReader.cs on public static void ReadBytes(Process process, out byte[] stdOutput, out byte[] stdError) line 40, when it tries to run the "C:/Program Files (x86)/Git/bin/sh.exe". The stdError variable return an exitCode 127 which actually means "No such file or directory" ({"C:/Program Files (x86)/Git/bin/sh.exe": config: No such file or directory}), which actually is not true since the file exists there. Just in any case, I ran the VS as Administrator (or the actual installation of GitExtensions as Administrator), but the error remains the same.

Any help would be appreciated.

Thank you,

Regards,
Ilija Misov

Janusz Białobrzewski

unread,
May 14, 2013, 4:21:13 PM5/14/13
to gitext...@googlegroups.com
Could you provide full stack trace? I don't know why it uses "C:/Program Files (x86)/Git/bin/sh.exe". I could not reproduce it with removing sh.exe from my disk.

Ilija Misov

unread,
May 16, 2013, 3:14:36 AM5/16/13
to gitext...@googlegroups.com
Hi Janusz,

Thanks for your help. I will try to elaborate the issue as precise as I can:

The stuck trace is following:

GitCommands.dll!GitCommands.SynchronizedProcessReader.ReadBytes(System.Diagnostics.Process process, out byte[] stdOutput, out byte[] stdError) Line 44    C#
GitCommands.dll!GitCommands.GitCommandHelpers.CreateAndStartProcess(string arguments, string cmd, string workDir, out byte[] stdOutput, out byte[] stdError, byte[] stdInput) Line 192 + 0x17 bytes    C#
GitCommands.dll!GitCommands.GitModule.RunCmdByte(string cmd, string arguments, byte[] stdInput, out byte[] output, out byte[] error) Line 599 + 0x2b bytes    C#
GitCommands.dll!GitCommands.GitModule.RunCmd(string cmd, string arguments, out int exitCode, byte[] stdInput, System.Text.Encoding encoding) Line 584 + 0x46 bytes    C#
GitCommands.dll!GitCommands.GitModule.RunGitCmd(string arguments, out int exitCode, byte[] stdInput, System.Text.Encoding encoding) Line 616 + 0x44 bytes    C#
GitCommands.dll!GitCommands.GitModule.SystemEncoding.get() Line 139 + 0x7a bytes    C#
GitCommands.dll!GitCommands.GitModule.RunGitCmd(string arguments, out int exitCode, byte[] stdInput) Line 611 + 0x39 bytes    C#
GitCommands.dll!GitCommands.GitModule.RunGitCmd(string arguments, byte[] stdInput) Line 627 + 0x19 bytes    C#
GitCommands.dll!GitCommands.GitModule.RunGitCmd(string arguments) Line 638 + 0x12 bytes    C#
GitUI.dll!GitUI.CommandsDialogs.SettingsDialog.CheckSettingsLogic.CanFindGitCmd() Line 286 + 0x2d bytes    C#
GitUI.dll!GitUI.CommandsDialogs.SettingsDialog.Pages.ChecklistSettingsPage.CheckGitCmdValid() Line 558 + 0x2f bytes    C#
GitUI.dll!GitUI.CommandsDialogs.SettingsDialog.Pages.ChecklistSettingsPage.CheckSettings() Line 459 + 0xc bytes    C#
GitExtensions.exe!GitExtensions.Program.Main() Line 83 + 0x10 bytes    C#

So, on the last executing command ReadBytes, it returns byte[75] which is assigned to stdError value on "public static void ReadBytes(Process process, out byte[] stdOutput, out byte[] stdError)" void, having the ExitCode value of 127. The executing "process" variable in the above void has following params:

Arguments:    "config --get ą"
CreateNoWindow:    true
Domain:    ""
FileName:    "C:\\Program Files (x86)\\Git\\bin\\sh.exe"
LoadUserProfile    true

This argument "config --get ą" is set in the \GitCommands\Git\GitModule.cs in "public static Encoding SystemEncoding" function lines 134 and 135 and commented as below:

//check whether GitExtensions works with standard msysgit or msysgit-unicode

// invoke a git command that returns an invalid argument in its response, and
// check if a unicode-only character is reported back. If so assume msysgit-unicode

// git config --get with a malformed key (no section) returns:
// "error: key does not contain a section: <key>"
const string controlStr = "ą"; // "a caudata"
string arguments = string.Format("config --get {0}", controlStr);


The stdError, from previous section I was explaining, those byte[75], later in \GitCommands\Git\EncodingHelper.cs, the EncodingHelper class => public static string GetString(byte[] output, byte[] error, Encoding encoding) line 12, is translated as {"C:/Program Files (x86)/Git/bin/sh.exe": config: No such file or directory} . Here is the stack trace:

GitCommands.dll!GitCommands.EncodingHelper.GetString(byte[] output, byte[] error, System.Text.Encoding encoding) Line 34    C#
GitCommands.dll!GitCommands.GitModule.RunCmd(string cmd, string arguments, out int exitCode, byte[] stdInput, System.Text.Encoding encoding) Line 585 + 0x17 bytes    C#
GitCommands.dll!GitCommands.GitModule.RunGitCmd(string arguments, out int exitCode, byte[] stdInput, System.Text.Encoding encoding) Line 616 + 0x44 bytes    C#
GitCommands.dll!GitCommands.GitModule.SystemEncoding.get() Line 139 + 0x7a bytes    C#
GitCommands.dll!GitCommands.GitModule.RunGitCmd(string arguments, out int exitCode, byte[] stdInput) Line 611 + 0x39 bytes    C#
GitCommands.dll!GitCommands.GitModule.RunGitCmd(string arguments, byte[] stdInput) Line 627 + 0x19 bytes    C#
GitCommands.dll!GitCommands.GitModule.RunGitCmd(string arguments) Line 638 + 0x12 bytes    C#
GitUI.dll!GitUI.CommandsDialogs.SettingsDialog.CheckSettingsLogic.CanFindGitCmd() Line 286 + 0x2d bytes    C#
GitUI.dll!GitUI.CommandsDialogs.SettingsDialog.Pages.ChecklistSettingsPage.CheckGitCmdValid() Line 558 + 0x2f bytes    C#
GitUI.dll!GitUI.CommandsDialogs.SettingsDialog.Pages.ChecklistSettingsPage.CheckSettings() Line 459 + 0xc bytes    C#
GitExtensions.exe!GitExtensions.Program.Main() Line 83 + 0x10 bytes    C#

If I can provide any more info, please let me know

Thank you,
Ilija Misov

Janusz Białobrzewski

unread,
May 20, 2013, 7:10:29 AM5/20/13
to gitext...@googlegroups.com

Hi,

It looks more like problem with msysgit installation. Could you run Git Bash and type there:
 
  git config --get user.name

What output do you get?

Janusz.

Ilija Misov

unread,
May 21, 2013, 10:29:14 AM5/21/13
to gitext...@googlegroups.com
If I type

git config --get ilija...@cuttignedgeintelligence.com

then I get nothing as output. If I misspell my username, then I get

"error: invalid key: ilija.misov@cuttingedgeintelligence"


Thanks,
Ilija

Janusz Białobrzewski

unread,
May 27, 2013, 2:16:32 PM5/27/13
to gitext...@googlegroups.com
I am not able to reproduce it. What version of git do you use?
Maybe try to reinstall git on your machine.

Janusz.

Ilija Misov

unread,
May 29, 2013, 2:27:32 PM5/29/13
to gitext...@googlegroups.com
Hi Janusz,

I currently have installed Git Extension v. 2.44. I have tried to reinstall it 2-3 times as well as tried to install Git Extensions v. 2.41. The Git bash version that I use is 1.8.1.2. The really strange thing is, as I mentioned in my initial post, that if I login with another user from the same computer, I'm able to use Git Extensions without any problem. Another note here is that the account I'm using has full admin rights.

Regards,
Ilija

yogi....@7digital.com

unread,
Dec 30, 2014, 7:17:10 AM12/30/14
to gitext...@googlegroups.com
Hi

I am facing the same problem, have you had any luck fixing this issue?

Thanks

Yogi



This email, including attachments, is private and confidential. If you have received this email in error please notify the sender and delete it from your system. Emails are not secure and may contain viruses. No liability can be accepted for viruses that might be transferred by this email or any attachment. Any unauthorised copying of this message or unauthorised distribution and publication of the information contained herein are prohibited.

7digital Limited. Registered office: 69 Wilson Street, London EC2A 2BB.
Registered in
England and Wales. Registered No. 04843573.

yogi....@7digital.com

unread,
Dec 30, 2014, 7:37:36 AM12/30/14
to gitext...@googlegroups.com
I have got this working now.

1) Uninstall Git (As soon as I did this then GitExtensions loaded really quickly).
2) In GitExtension's setting Page under the "Git" tab, remove the paths
     "Command used to run git (git.cmd or git.exe)"
     "Path to linux tools (sh). Leave empty when it is in the path."

Save changes, and reinstall Git. Restart GitExtensions and Repair paths.

Yogi
Reply all
Reply to author
Forward
0 new messages