Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.59k stars 572 forks source link

Handle invalid for apidispatchers.cpp #1367

Open mkulicke opened 6 years ago

mkulicke commented 6 years ago

Versions

ConEmu build: 171217 x64 OS version: Windows 10 Enterprise x64 Build 1703 (Creators Update) Used shell version (powershell):

Problem description

Right after starting conemu, the console becomes laggy and slow. Looking at DebugView, the conhost.exe is spamming (multiple times per second) the logs with primarily the following message [10212] windows\core\console\open\src\server\apidispatchers.cpp(544)\ConhostV2.dll!00007FFCBA32E7E4: (caller: 00007FFCBA330648) ReturnHr(307) tid(3ce4) 80070006 The handle is invalid.

and partially this message: [14024] windows\core\console\open\src\server\apidispatchers.cpp(99)\ConhostV2.dll!00007FFCBA330648: (caller: 00007FFCBA330648) ReturnHr(1886) tid(2d3c) 800706EC The list of RPC servers available for the binding of auto handles has been exhausted.

Steps to reproduce

  1. start ConEmu
  2. watch debug log being filled.

Actual results

Expected results

Additional files

[Settings] Basic settings, only added Powershell as a shell and let it autostart

Maximus5 commented 6 years ago

Please run ConEmu64.exe -log -basic -run {cmd}. I'm interested in ConEmu-srv-***.log file. https://conemu.github.io/en/LogFiles.html

That's due to impossibility to obtain current keyboard layout via GetConsoleKeyboardLayoutNameW. There is no way to do that in Window 10.

/cc @miniksa

mkulicke commented 6 years ago

There you go! ConEmu-srv-18868.log In your log example, cmd.exe is run, but it yields to the same results.

BR