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

Unable to type in Windows terminal #9890

Closed
CorruptComputer opened this issue Apr 19, 2021 · 12 comments
Closed

Unable to type in Windows terminal #9890

CorruptComputer opened this issue Apr 19, 2021 · 12 comments
Labels
Area-Input Related to input processing (key presses, mouse, etc.) Issue-Question For questions or discussion Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-Answered Related to questions that have been answered

Comments

@CorruptComputer
Copy link

Windows Terminal version (or Windows build number)

1.7.1033.0

Other Software

PowerShell 7.1.3
Windows PowerShell 10.0.19042.928
Command Prompt 10.0.19042.928

Steps to reproduce

  • Open Windows terminal.
  • Try to type.

Expected Behavior

I should be able to type in the terminal.

Actual Behavior

I am unable to type in the Terminal, tried with all three of the types listed above.
Attached is a video of the issue, I am able to type in Powershell 7.1.3 but not when it is opened through Terminal.

2021-04-19.08-23-43.mp4
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Apr 19, 2021
@CorruptComputer
Copy link
Author

CorruptComputer commented Apr 19, 2021

In the video, you can see the dots on the small white WhatPulse icon being the second from the left in the notification area of the taskbar. Each dot on the right side of that icon is a keypress, I am typing in the video even though it doesn't show anything in the Terminal.

I also used Terminal just last week and it was fine, looking at it on the Windows Store it looks like it auto-updated over the weekend to the version listed above. I think the issue was probably introduced in that version.

I checked #4448 as well, I do have the "Touch Keyboard and Handwriting Panel Service" running.
image

@zadjii-msft
Copy link
Member

(the following is copy-pasta, so yes I see that you've got the "Touch Keyboard and Handwriting Panel" started)

Can you confirm that the "Touch Keyboard and Handwriting Panel" service is running? You can check that with the command

sc query TabletInputService

Which should get you something like:
image

If you're seeing that the service is running, could you check if ctfmon.exe is also running? Apparently ctfmon.exe is the real important process, which the service is just used to resurrect.

> tasklist /v /fi "imagename eq ctfmon.exe" /fo list

Image Name:   ctfmon.exe
PID:          10828
Session Name: Console
Session#:     1
Mem Usage:    26,536 K
Status:       Running
User Name:    REDMOND\migrie
CPU Time:     0:01:05
Window Title: N/A

image

It needs to be running with a stable PID. So run that command a few times and make sure that the PID isn't changing.

Also, can you check InputServiceEnabled in the registry? You can do that with:

reg query hklm\software\microsoft\input /v InputServiceEnabled

Which should give you something like:

HKEY_LOCAL_MACHINE\software\microsoft\input
InputServiceEnabled REG_DWORD 0x1

(See #8045, #4448)

@zadjii-msft zadjii-msft added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Apr 19, 2021
@CorruptComputer
Copy link
Author

Here are the outputs from those commands:

PS C:\Users\ngupton> sc query TabletInputService
SERVICE_NAME: TabletInputService
        TYPE               : 30  WIN32
        STATE              : 4  RUNNING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0

PS C:\Users\ngupton> tasklist /v /fi "imagename eq ctfmon.exe" /fo list
INFO: No tasks are running which match the specified criteria.

PS C:\Users\ngupton> reg query hklm\software\microsoft\input /v InputServiceEnabled
HKEY_LOCAL_MACHINE\software\microsoft\input
    InputServiceEnabled    REG_DWORD    0x1

It looks like ctfmon.exe is not running for some reason, strange. I tried to start it, but it looks like it might be closing or crashing right after launch.

PS C:\Users\ngupton> ctfmon.exe
PS C:\Users\ngupton> tasklist /v /fi "imagename eq ctfmon.exe" /fo list
INFO: No tasks are running which match the specified criteria.

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Apr 19, 2021
@zadjii-msft
Copy link
Member

@ebadger can you help OP here figure out why ctfmon.exe is crashing on launch?

@zadjii-msft zadjii-msft added the Area-Input Related to input processing (key presses, mouse, etc.) label Apr 19, 2021
@ebadger
Copy link

ebadger commented Apr 19, 2021

Here are the outputs from those commands:

PS C:\Users\ngupton> sc query TabletInputService
SERVICE_NAME: TabletInputService
        TYPE               : 30  WIN32
        STATE              : 4  RUNNING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0

PS C:\Users\ngupton> tasklist /v /fi "imagename eq ctfmon.exe" /fo list
INFO: No tasks are running which match the specified criteria.

PS C:\Users\ngupton> reg query hklm\software\microsoft\input /v InputServiceEnabled
HKEY_LOCAL_MACHINE\software\microsoft\input
    InputServiceEnabled    REG_DWORD    0x1

It looks like ctfmon.exe is not running for some reason, strange. I tried to start it, but it looks like it might be closing or crashing right after launch.

PS C:\Users\ngupton> ctfmon.exe
PS C:\Users\ngupton> tasklist /v /fi "imagename eq ctfmon.exe" /fo list
INFO: No tasks are running which match the specified criteria.

Could you try following these instructions:
https://docs.microsoft.com/en-us/windows/win32/wer/collecting-user-mode-dumps

and enable collecting user mode dumps to your local disk?

Do you see any ctfmon dumps? If so, I'd like to see one of them.

Thanks,

Eric

@CorruptComputer
Copy link
Author

Hey @ebadger I enabled the dumps in my registry, but running ctfmon.exe doesn't seem to produce any.
The %LOCALAPPDATA%\CrashDumps folder is empty after running these commands:

PS C:\Users\ngupton> ctfmon.exe
PS C:\Users\ngupton> tasklist /v /fi "imagename eq ctfmon.exe" /fo list
INFO: No tasks are running which match the specified criteria.

@ebadger
Copy link

ebadger commented Apr 19, 2021

Hey @ebadger I enabled the dumps in my registry, but running ctfmon.exe doesn't seem to produce any.
The %LOCALAPPDATA%\CrashDumps folder is empty after running these commands:

PS C:\Users\ngupton> ctfmon.exe
PS C:\Users\ngupton> tasklist /v /fi "imagename eq ctfmon.exe" /fo list
INFO: No tasks are running which match the specified criteria.

Would you run this command and reply with output:
tasklist /m msctfmonitor.dll

@CorruptComputer
Copy link
Author

Sure, no problem. Here it is:

PS C:\Users\ngupton> tasklist /m msctfmonitor.dll

Image Name                     PID Modules
========================= ======== ============================================
taskhostw.exe                12000 MsCtfMonitor.dll

@ebadger
Copy link

ebadger commented Apr 19, 2021

Sure, no problem. Here it is:

PS C:\Users\ngupton> tasklist /m msctfmonitor.dll

Image Name                     PID Modules
========================= ======== ============================================
taskhostw.exe                12000 MsCtfMonitor.dll

please try terminating PID 12000, signing out, and signing back in

@CorruptComputer
Copy link
Author

That seems to have fixed it, I'm able to type now, what a strange issue...

Thanks for your help!

@zadjii-msft
Copy link
Member

holy crap, @ebadger you're a wizard. Thanks!

@zadjii-msft zadjii-msft added Issue-Question For questions or discussion Resolution-Answered Related to questions that have been answered labels Apr 19, 2021
@rafaelgslima
Copy link

I removed MsCtfMonitor.dll and my keyboard worked in windows terminal but stopped work in system operational (for exemple in explorer folder or system find). Its so bad. I can't use keyboard in windows terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Input Related to input processing (key presses, mouse, etc.) Issue-Question For questions or discussion Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-Answered Related to questions that have been answered
Projects
None yet
Development

No branches or pull requests

4 participants