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.
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.
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. =(
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.)
*“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!
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).
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.
“even though it’s set to “None” with no project loaded – it’s reset to “Git Plugin” when the project is reloaded.” - it’s because your project has a reference to it. Hence “Not advisable, but you could remove the entry in your .pjs file”.
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: