惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Help Net Security
Help Net Security
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
L
LINUX DO - 热门话题
Security Latest
Security Latest
A
Arctic Wolf
G
GRAHAM CLULEY
月光博客
月光博客
S
Securelist
D
Docker
J
Java Code Geeks
T
Troy Hunt's Blog
T
Tenable Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LINUX DO - 最新话题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 三生石上(FineUI控件)
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
Netflix TechBlog - Medium
Vercel News
Vercel News
Forbes - Security
Forbes - Security
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
S
Secure Thoughts
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Check Point Blog
云风的 BLOG
云风的 BLOG
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Blog of Author Tim Ferriss
L
Lohrmann on Cybersecurity
F
Full Disclosure
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed

博客园 - ubirdy

在Cursor中使用Anthropic的Skills 用ikuai软路由提供内网NTP服务 在欧拉系统(openEuler)上安装uWSGI 在欧拉系统(openEuler)上安装Nginx 海康工业相机SDK错误码常见场景解析 ubuntu22.04 server安装nvidia cuda 12.08提示Nouveau 驱动已经在用 ubuntu22.04更换镜像源 ubuntu22.04安装CUDA ICMP时间戳漏洞CVE-1999-0524的处理 解决supervisor在香橙派AIpro上启动问题 用ffplay在香橙派AIPro上播放PCM文件 香橙派OrangePi_AiPro超频CPU与NPU 昇腾310B4在转换onnx格式至om格式时提示BrokenPipeError: [Errno 32] Broken pipe Python打包工具 Pyinstaller使用教程 FFplay命令参数 yoloV7训练结果分析 在windows中安装pytorch的GPU版本及torchvision Win11禁用右键菜单折叠改用经典右键菜单 Altas产品查询CANN软件包版本的方法
切换至windows自带中文输入法后卡住的bug解决
ubirdy · 2025-12-27 · via 博客园 - ubirdy

我使用windows 10 企业版LTSC 21H2版本(windows 10和windows 11的其它的当前版本也有这个问题),在切换至windows自带中文输入法(五笔或拼音)输入法后打中文时卡住,等了好久才会出现一两个英文字母,这个bug的原因是:

简体中文的拼音输入法会在C:\Users\"username"\AppData\Roaming\Microsoft\InputMethod\Chs文件夹下创建tmp文件,使用的是Windows API: GetTempFileNameW,但是创建出来的tmp文件并不会清理掉,导致如果使用的时间够长,比如一年,此文件夹下会填充满65535个tmp文件,导致该API无法正常获取临时文件名,并且每次调用会尝试65535次CreateFileW函数调用,最终导致输入中文异常的慢,基本无法输入中文,CPU也占用满单核。

删除这些.tmp文件就可以解决卡顿问题。操作如下:

1、打开powershell或者cmd (按win+R,打开"运行",输入powershell,或者输入cmd)

b2b4396c-6aa5-4406-9e50-a663b65431dc

 2、切换至输入法目录,注意你自己的用户名,在输入时根据自己的用户名替换一下。

b9a0a083-4fa2-43df-b9a6-3c68ae25518c

3、删除.tmp文件,6万多个文件,耐心等待。

e5d6be11-2cda-4c66-b555-b6aa2f8c1951

执行完了就可以流畅的使用输入法了。