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

Git Bash: Critical Error(VM_COMMAND: end) #4065

Closed
1 task done
GatesGe opened this issue Oct 12, 2022 · 10 comments
Closed
1 task done

Git Bash: Critical Error(VM_COMMAND: end) #4065

GatesGe opened this issue Oct 12, 2022 · 10 comments
Milestone

Comments

@GatesGe
Copy link

GatesGe commented Oct 12, 2022

  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

git version 2.38.0.windows.1
cpu: x86_64
built from commit: 0355083fbe5582f6d3f819afc130ed2f2375e0bd
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Windows 10 Pro for Workstations X64 [Version 10.0.19044.2130]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"

# C:\Program Files\Git\etc\install-options.txt
Editor Option: VIM
Custom Editor Path: 
Default Branch Option: main
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Merge
Use Credential Manager: Enabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Disabled
Enable Pseudo Console Support: Disabled
Enable FSMonitor: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

    After the Git Bash is opened in options -> terminal, it always reports a Critical Error ( VM_COMMAND: end ) , and no matter whether you click close or OK, it will cause a forced exit. This phenomenon persisted for several versions, and I don't know what caused it.

Critical Error

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

    Git Bash

  • What commands did you run to trigger this issue? If you can provide a
    Minimal, Complete, and Verifiable example
    this will help us understand the issue.

    # command not executed
  • What did you expect to occur after running these commands?

    null

  • What actually happened instead?

    null

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

    null

@rimrul
Copy link
Member

rimrul commented Oct 17, 2022

Looks like a segfault in MinTTY after a recent WM_COMMAND or WM_DRAWITEM was processed by the config dialog is what causes that messagebox. (The weird when/or syntax is basically just case)

@dscho
Copy link
Member

dscho commented Oct 18, 2022

Looks like a segfault in MinTTY after a recent WM_COMMAND or WM_DRAWITEM was processed by the config dialog is what causes that messagebox. (The weird when/or syntax is basically just case)

I guess it should be reported to the MinTTY project, then?

@GatesGe
Copy link
Author

GatesGe commented Oct 18, 2022

Looks like a segfault in MinTTY after a recent WM_COMMAND or WM_DRAWITEM was processed by the config dialog is what causes that messagebox. (The weird when/or syntax is basically just case)

I found that the cause of this error is not directly caused by the source code, but caused by Windows updating drivers or disabling system services. After reinstalling windows, I installed git-bash without any settings, and no error was reported when I opened this setting; but when I updated the driver and optimized system services, and then installed git-bash, this error appeared. This factor was not discovered at first, and was discovered later, but I don't know what went wrong.

@rimrul
Copy link
Member

rimrul commented Nov 30, 2022

An issue with the same symptoms was reported to mintty as mintty/mintty#1185 but they did not manage to debug the issue further.

@GatesGe
Copy link
Author

GatesGe commented Dec 1, 2022

During use, it is found that this error has nothing to do with the version, it is the Windows system service [Print Spooler]: (C:\Windows\System32\spoolsv.exe) is not started or is disabled or set to manual mode. When this setting is turned on, when the service is called, it will not wake up automatically, causing bugs. The guess may be that the developer did not do more processing on this service exception or did not consider the service being disabled, and regarded it as a key program, and this bug may only be triggered in rare cases.

@dscho
Copy link
Member

dscho commented Dec 1, 2022

@GatesGe thank you so much for leaving this helpful record in this ticket. I am sure that others encountering the same issue will be very, very grateful.

@mintty
Copy link

mintty commented Dec 1, 2022

Thanks indeed. Stopping the Print Spooler service makes the bug appear and I can now debug it.

@dscho
Copy link
Member

dscho commented Dec 18, 2022

This ticket is addressed via #4182. @GatesGe would you mind testing once we get a new snapshot?

@dscho dscho added this to the Next release milestone Dec 19, 2022
@dscho
Copy link
Member

dscho commented Dec 20, 2022

This ticket is addressed via #4182. @GatesGe would you mind testing once we get a new snapshot?

There's a new snapshot now. @GatesGe please verify that it fixes the issue. I plan on releasing a new Git for Windows version soon, and it would be a shame if the bug you reported wasn't fixed in it solely due to lack of testing.

@dscho
Copy link
Member

dscho commented Dec 21, 2022

/add release note bug A bug in MinTTY caused it to throw a Critical Error when the printer spool service was not started, which was fixed by upgrading MinTTY.

The workflow run was started

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

4 participants