clash_for_windows_pkg
clash_for_windows_pkg copied to clipboard
[Bug]: 关闭软件主窗口时,偶尔会同时启动一个最近使用过的 UWP 应用
请认真检查以下清单中的每一项
- [X] 已经搜索过,没有发现类似issue
- [x] 已经搜索过文档,没有发现相关内容
- [x] 已经尝试使用过最新版,问题依旧存在
- [x] 使用的是官方版本(未替换及修改过安装目录程序文件)
软件版本
0.19.24
操作系统
Windows x64
系统版本
Windows 10 Pro 21H2 19044.1766
问题描述
在关闭软件主窗口时,偶尔会同时启动一个最近使用过的 UWP 应用。
复现步骤
我没能研究出 100% 复现该问题的方法。这个现象至少在三、四个月之前就已经出现了,体感是随机小概率发生的。
因为随机启动的是最近使用过的 UWP 应用(在我这里最常见的是系统 Settings 应用,或者我常用的计算器应用),所以我怀疑是和我使用了 UWP Loopback 启用了所有 UWP 应用代理有关。
日志文件
logs
time="Sat Jul 16 2022 18:28:11 GMT+0800 (China Standard Time)" level=info msg="app start with mode: production"
time="Sat Jul 16 2022 18:28:11 GMT+0800 (China Standard Time)" level=info msg="http server started at: 62291"
time="Sat Jul 16 2022 18:28:11 GMT+0800 (China Standard Time)" level=info msg="first luanch, creating config.yaml..."
time="Sat Jul 16 2022 18:28:11 GMT+0800 (China Standard Time)" level=info msg="load data from general config.yaml"
time="Sat Jul 16 2022 18:28:11 GMT+0800 (China Standard Time)" level=info msg="mixed-port changed"
time="Sat Jul 16 2022 18:28:11 GMT+0800 (China Standard Time)" level=info msg="external controller port changed"
time="Sat Jul 16 2022 18:28:11 GMT+0800 (China Standard Time)" level=info msg="clash axios client changed"
time="Sat Jul 16 2022 18:28:11 GMT+0800 (China Standard Time)" level=info msg="external controller port changed"
time="Sat Jul 16 2022 18:28:11 GMT+0800 (China Standard Time)" level=info msg="clash axios client changed"
time="Sat Jul 16 2022 18:28:12 GMT+0800 (China Standard Time)" level=info msg="restarting clash core..."
time="Sat Jul 16 2022 18:28:13 GMT+0800 (China Standard Time)" level=info msg="new outbound interface: Wi-Fi"
time="Sat Jul 16 2022 18:28:13 GMT+0800 (China Standard Time)" level=info msg="check for app update, current: 0.19.24"
time="Sat Jul 16 2022 18:28:13 GMT+0800 (China Standard Time)" level=info msg="clash core startup success!"
time="Sat Jul 16 2022 18:28:13 GMT+0800 (China Standard Time)" level=info msg="clash status change to [connected]"
time="Sat Jul 16 2022 18:28:32 GMT+0800 (China Standard Time)" level=info msg="app start with mode: production"
time="Sat Jul 16 2022 18:28:32 GMT+0800 (China Standard Time)" level=info msg="http server started at: 62306"
time="Sat Jul 16 2022 18:28:32 GMT+0800 (China Standard Time)" level=info msg="load data from general config.yaml"
time="Sat Jul 16 2022 18:28:32 GMT+0800 (China Standard Time)" level=info msg="mixed-port changed"
time="Sat Jul 16 2022 18:28:32 GMT+0800 (China Standard Time)" level=info msg="external controller port changed"
time="Sat Jul 16 2022 18:28:32 GMT+0800 (China Standard Time)" level=info msg="clash axios client changed"
time="Sat Jul 16 2022 18:28:32 GMT+0800 (China Standard Time)" level=info msg="external controller port changed"
time="Sat Jul 16 2022 18:28:32 GMT+0800 (China Standard Time)" level=info msg="clash axios client changed"
time="Sat Jul 16 2022 18:28:32 GMT+0800 (China Standard Time)" level=info msg="restarting clash core..."
time="Sat Jul 16 2022 18:28:33 GMT+0800 (China Standard Time)" level=info msg="clash status change to [connected]"
time="Sat Jul 16 2022 18:28:33 GMT+0800 (China Standard Time)" level=info msg="check for app update, current: 0.19.24"
time="Sat Jul 16 2022 18:29:06 GMT+0800 (China Standard Time)" level=info msg="restore at index: 0"
time="Sat Jul 16 2022 18:29:07 GMT+0800 (China Standard Time)" level=info msg="restore proxy settings"
time="Sat Jul 16 2022 18:29:12 GMT+0800 (China Standard Time)" level=info msg="restore at index: 1"
time="Sat Jul 16 2022 18:29:14 GMT+0800 (China Standard Time)" level=info msg="restore proxy settings"
time="Sat Jul 16 2022 18:39:36 GMT+0800 (China Standard Time)" level=info msg="app start with mode: production"
time="Sat Jul 16 2022 18:39:36 GMT+0800 (China Standard Time)" level=info msg="http server started at: 49747"
time="Sat Jul 16 2022 18:39:36 GMT+0800 (China Standard Time)" level=info msg="load data from general config.yaml"
time="Sat Jul 16 2022 18:39:36 GMT+0800 (China Standard Time)" level=info msg="mixed-port changed"
time="Sat Jul 16 2022 18:39:36 GMT+0800 (China Standard Time)" level=info msg="external controller port changed"
time="Sat Jul 16 2022 18:39:36 GMT+0800 (China Standard Time)" level=info msg="clash axios client changed"
time="Sat Jul 16 2022 18:39:36 GMT+0800 (China Standard Time)" level=info msg="external controller port changed"
time="Sat Jul 16 2022 18:39:36 GMT+0800 (China Standard Time)" level=info msg="clash axios client changed"
time="Sat Jul 16 2022 18:39:36 GMT+0800 (China Standard Time)" level=info msg="restarting clash core..."
time="Sat Jul 16 2022 18:39:37 GMT+0800 (China Standard Time)" level=info msg="clash status change to [connected]"
time="Sat Jul 16 2022 18:39:37 GMT+0800 (China Standard Time)" level=info msg="restore at index: 1"
time="Sat Jul 16 2022 18:39:37 GMT+0800 (China Standard Time)" level=info msg="check for app update, current: 0.19.24"
time="Sat Jul 16 2022 18:39:38 GMT+0800 (China Standard Time)" level=info msg="restore proxy settings"
time="Sat Jul 16 2022 19:12:49 GMT+0800 (China Standard Time)" level=info msg="restore at index: 1"
time="Sat Jul 16 2022 19:12:49 GMT+0800 (China Standard Time)" level=info msg="restore proxy settings"
time="Sat Jul 16 2022 19:12:54 GMT+0800 (China Standard Time)" level=info msg="restore at index: 1"
time="Sat Jul 16 2022 19:12:54 GMT+0800 (China Standard Time)" level=info msg="restore proxy settings"
time="Sun Jul 17 2022 00:39:38 GMT+0800 (China Standard Time)" level=info msg="check for app update, current: 0.19.24"
time="Sun Jul 17 2022 14:12:46 GMT+0800 (China Standard Time)" level=info msg="check for app update, current: 0.19.24"
time="Sun Jul 17 2022 14:12:46 GMT+0800 (China Standard Time)" level=info msg="restore at index: 1"
time="Sun Jul 17 2022 14:12:46 GMT+0800 (China Standard Time)" level=info msg="restore proxy settings"
time="Sun Jul 17 2022 14:12:51 GMT+0800 (China Standard Time)" level=info msg="new outbound interface: Clash"
time="Sun Jul 17 2022 14:12:51 GMT+0800 (China Standard Time)" level=info msg="restore at index: 1"
time="Sun Jul 17 2022 14:12:53 GMT+0800 (China Standard Time)" level=info msg="restore proxy settings"
time="Sun Jul 17 2022 18:39:36 GMT+0800 (China Standard Time)" level=info msg="check for app update, current: 0.19.24"
time="Mon Jul 18 2022 00:39:36 GMT+0800 (China Standard Time)" level=info msg="check for app update, current: 0.19.24"
time="Mon Jul 18 2022 14:44:45 GMT+0800 (China Standard Time)" level=info msg="check for app update, current: 0.19.24"
time="Mon Jul 18 2022 14:44:46 GMT+0800 (China Standard Time)" level=info msg="restore at index: 1"
time="Mon Jul 18 2022 14:44:46 GMT+0800 (China Standard Time)" level=info msg="restore proxy settings"
time="Mon Jul 18 2022 18:40:03 GMT+0800 (China Standard Time)" level=info msg="check for app update, current: 0.19.24"
time="Tue Jul 19 2022 00:40:03 GMT+0800 (China Standard Time)" level=info msg="check for app update, current: 0.19.24"
time="Tue Jul 19 2022 13:47:58 GMT+0800 (China Standard Time)" level=info msg="check for app update, current: 0.19.24"
time="Tue Jul 19 2022 13:47:59 GMT+0800 (China Standard Time)" level=info msg="restore at index: 1"
time="Tue Jul 19 2022 13:47:59 GMT+0800 (China Standard Time)" level=info msg="restore proxy settings"
time="Tue Jul 19 2022 18:40:01 GMT+0800 (China Standard Time)" level=info msg="check for app update, current: 0.19.24"
其他补充
No response
我也是这样,关闭cfw窗口时,电脑的设置界面就会莫名其妙打开。
我这边也是,关闭 cfw 窗口时有时可能会打开一个 UWP 应用,但不是每次关闭都一定会打开。这似乎与你打开 UWP Loopback 启用了所有 UWP 应用代理无关,因为我没打开这些功能照样有这个问题。
有视频为证:
https://user-images.githubusercontent.com/64591583/180630416-d4d3f971-bc82-4a01-8a93-70cfb9b3ae30.MOV
我的 Windows 10 22H2 (19045.1865) 也是这样,好像只有 设置 和 计算器 被打开过,其他应用没打开过
先明确一下计算器是被哪个进程启动的。
使用 Process Explorer,在基础配置上,加一条 filter:
-
Operation
begins withProcess
thenInclude
之后,重点观察 Process Create
事件。
注意,UWP 的进程总是由 BrokerInfrastructure
(Background Tasks Infrastructure Service) 服务创建,所以,要确定触发源,需观察时序。
例如,由下面这个事件序列可以推测:Windows Terminal -> PowerShell -> calc.exe
-> 计算器。
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days