Forum Discussion

KRogersX's avatar
KRogersX
Contributor
3 months ago
Solved

How to Ignore "The git.exe process crashed."?

This happens randomly sometimes in the middle of my test runs, causing a false error in the test being run at the moment Git decided to crash.

 Why is TestComplete picking up this process crash when it's completely unrelated to the application under test?

Is there a way to tell TestComplete to ignore certain processes?

 

  • Sounds like the plug-in was fouled up.  If you ever end up needing it you can always install it fresh and the issue will likely not return.  Glad that fixed it!  Let's hope it sticks.  🙂

18 Replies

  • Update: I went into File --> Install Extensions... and removed the Git Plugin extension (and all the other source control extensions as well, for good measure).

    I was then able to get through an entire test run without seeing the "git.exe process crashed" error. Fingers crossed this is a permanent solution (since I manage the Git repo externally to TestComplete anyway).

  • I suggest the following options:

    If you had the plugin previously installed https://support.smartbear.com/testcomplete/docs/working-with/integration/scc/git/requirements.html  try to uninstall, reset TestComplete settings to default by un-installing, reboot, and re-installing. 

    You probably could work around the error by using Log.Enabled = false/true around the crash-prone segment https://support.smartbear.com/testcomplete/docs/reference/project-objects/test-log/log/enabled.html

    Attempt to filter out such process https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/open-apps/process-filter.html 

    💬 If a response helped you out, don’t forget to Like it! And if it answered your question, mark it as the solution so others can benefit too.

    • KRogersX's avatar
      KRogersX
      Contributor

      "You probably could work around the error by using Log.Enabled = false/true around the crash-prone segment..."

      This won't work. Like I said in the OP, it crashes randomly; any test script can be running when it happens.

      The process filter looks promising; I'll give that a try. Thanks!

       

  • Hi KRogersX​ ,

    I have a suggestion that will suppress the error from getting to the test results but does not resolve the actual issue.

    TestComplete includes a module that monitors Windows for crashes involving standard (default) Windows applications. This is why you’ve been receiving the "Git.exe process crashed" message.

    This module, tcJITHook.exe, is specifically designed to generate log entries when default Windows applications crash.

    To prevent this behavior, you can rename tcJITHook.exe to tcJITHook1.exe (simply adding a "1" before the .exe extension) in both of the following locations:
    - C:\Program Files (x86)\SmartBear\TestComplete 15\Bin\Extensions\tcJITHook.exe
    - C:\Program Files (x86)\SmartBear\TestComplete 15\x64\Bin\Extensions\tcJITHook.exe


    If you are also using TestExecute, you’ll need to make the same change in these locations:
    - C:\Program Files (x86)\SmartBear\TestExecute 15\Bin\Extensions\tcJITHook.exe
    - C:\Program Files (x86)\SmartBear\TestExecute 15\x64\Bin\Extensions\tcJITHook.exe

  • scot1967's avatar
    scot1967
    Icon for Champion Level 2 rankChampion Level 2

    Send us a few screenshots and logs entries.  You should likely look into why you are getting that error instead of trying to ignore it however.  😉

    • KRogersX's avatar
      KRogersX
      Contributor

      There is no other feedback about Git crashing except in the TestComplete Test Log. (For all I know, TestComplete is making stuff up.) So yeah, I wouldn't mind ignoring it.

       

  • scot1967's avatar
    scot1967
    Icon for Champion Level 2 rankChampion Level 2

    I don't know of anyway to prevent TestComplete from logging the error.  You may be able to change the behavior with event handlers and settings in TestComplete to control what happens when an error is logged.  

    There is usually a trail in the Windows event log when a process crashes.  It may give you an idea. In the Windows Event Viewer: Look under Windows Logs > Application for .NET Runtime, Application Error, or git.exe specific entries. If you find the associated eventid that would be helpful. git --version could be helpful as well. 

    TestComplete uses the Git command-line utility (git.exe)." you could try re-installing git per the integration instructions linked below.  Integration or the git version installed (both?) is likely where the issue is.

    Git integration
    https://support.smartbear.com/testcomplete/docs/working-with/integration/scc/git/index.html

     

    • KRogersX's avatar
      KRogersX
      Contributor

      Thanks... good info.

      I did find an Error entry for "git.exe" in the Event Viewer, but it only shows an exception code; nothing about what's triggering the error.

      There's not really any good reason to use the TestComplete Git  plugin, so I'll disable it and see if that stops the error.

      But whatever the issue is, TestComplete should not be showing that error when it has nothing to do with the AUT or the test scripts. If it needs to be logged, it should log it somewhere else, not in my test log, making it look like my test failed.

      Edit: Tried to disable the Git plugin, but TC won't let me; re-enables Git when I reload the project. =(

       

  • scot1967's avatar
    scot1967
    Icon for Champion Level 2 rankChampion Level 2

    Sounds like the plug-in was fouled up.  If you ever end up needing it you can always install it fresh and the issue will likely not return.  Glad that fixed it!  Let's hope it sticks.  🙂

  • catalin_ochisor's avatar
    catalin_ochisor
    Occasional Contributor

    Would need more info:

    • is this about an  unexpected popup window with an error message?
    • is this about an error message about an unfiltered process which is logged somewhere?
    • not sure why you would need Git on the machine which runs tests (in a Prod environment)
    • KRogersX's avatar
      KRogersX
      Contributor

      In the Test Log output from the test script run.

      "not sure why you would need Git on the machine which runs tests (in a Prod environment)" 

      Not sure why you think it matters. But: The test scripts are prepped on a development machine before they are deployed to a production environment.

  • scot1967's avatar
    scot1967
    Icon for Champion Level 2 rankChampion Level 2

    There's not really any good reason to use the TestComplete Git  plugin, so I'll disable it and see if that stops the error.

    👍👍If you aren't using it that would be the easiest thing to try .  Let us know if that does it!  


  • rraghvani's avatar
    rraghvani
    Icon for Champion Level 3 rankChampion Level 3

    Do you have git.exe in your Tested Apps by any chance?

    Are you using e.g. Objects.Save method or anything relating to saving objects/pictures/base- files, which is then used to perform comparison?

    What version of TestComplete are you using?

    The only reference you have to git.exe, is in Source Control?

     

    • KRogersX's avatar
      KRogersX
      Contributor

      Nope, no git.exe in Tested Apps.

      No Objects.Save, etc.

      Version is the newest: 15.76.

      The only thing I can think of is that because TestComplete is set to use the Git Plugin, the error is coming from TestComplete trying to do something with Git. (I can't disable the Git Plugin for this project though; but that's an issue I've taken up with support.)

      • rraghvani's avatar
        rraghvani
        Icon for Champion Level 3 rankChampion Level 3

        If you are not able to set your source control plugin to none, then it's an issues with TC!

        Not advisable, but you could remove the entry in your .pjs file (I'm using TFS)