v2rayN
v2rayN copied to clipboard
[Bug]: tun 模式导致内存溢出
预期情况
正常运行
实际情况
管理员权限下,使用 tun 模式,不一会内存就飙到 100%,非管理员模式下使用系统代理则正常运行
复现方法
win10系统,zz_v2rayN-With-Core-SelfContained V6.37版本,以管理员身份打开,运行不久后内存飙升,一键测速和延迟使内存飙升更快
日志信息
2024-03-04 00:57:03.0047-DEBUG at v2rayN.Handler.CoreHandler.RunProcess(ProfileItem node, CoreInfo coreInfo, String configPath, Boolean displayLog, Action`2 update) 2024-03-04 00:58:28.4478-DEBUG connect timeout (5s): 8.222.154.110,connect timeout (5s): 8.222.154.110 2024-03-04 00:58:28.4478-DEBUG at v2rayN.Handler.SpeedtestHandler.GetTcpingTime(String url, Int32 port) 2024-03-04 00:58:28.4629-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (由于线程退出或应用程序请求,已中止 I/O 操作。) 2024-03-04 00:58:28.4629-DEBUG 2024-03-04 00:58:28.4629-ERROR System.Net.Sockets.SocketException: 由于线程退出或应用程序请求,已中止 I/O 操作。 2024-03-04 00:58:29.4510-DEBUG connect timeout (5s): 51.44.30.166,connect timeout (5s): 51.44.30.166 2024-03-04 00:58:29.4510-DEBUG at v2rayN.Handler.SpeedtestHandler.GetTcpingTime(String url, Int32 port) 2024-03-04 00:58:29.9858-DEBUG connect timeout (5s): 13.38.153.192,connect timeout (5s): 13.38.153.192 2024-03-04 00:58:29.9858-DEBUG at v2rayN.Handler.SpeedtestHandler.GetTcpingTime(String url, Int32 port) 2024-03-04 00:59:02.9252-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (由于线程退出或应用程序请求,已中止 I/O 操作。) 2024-03-04 00:59:02.9252-DEBUG 2024-03-04 00:59:02.9252-ERROR System.Net.Sockets.SocketException: 由于线程退出或应用程序请求,已中止 I/O 操作。 2024-03-04 00:59:02.9252-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (由于线程退出或应用程序请求,已中止 I/O 操作。) 2024-03-04 00:59:02.9252-DEBUG 2024-03-04 00:59:02.9252-ERROR System.Net.Sockets.SocketException: 由于线程退出或应用程序请求,已中止 I/O 操作。 2024-03-04 01:00:05.1717-DEBUG connect timeout (5s): 8.222.154.110,connect timeout (5s): 8.222.154.110 2024-03-04 01:00:05.1717-DEBUG at v2rayN.Handler.SpeedtestHandler.GetTcpingTime(String url, Int32 port) 2024-03-04 01:00:06.1669-DEBUG connect timeout (5s): 51.44.30.166,connect timeout (5s): 51.44.30.166 2024-03-04 01:00:06.1669-DEBUG connect timeout (5s): 104.16.192.146,connect timeout (5s): 104.16.192.146 2024-03-04 01:00:06.1669-DEBUG at v2rayN.Handler.SpeedtestHandler.GetTcpingTime(String url, Int32 port) 2024-03-04 01:00:06.1669-DEBUG at v2rayN.Handler.SpeedtestHandler.GetTcpingTime(String url, Int32 port) 2024-03-04 01:00:06.6827-DEBUG connect timeout (5s): 13.38.153.192,connect timeout (5s): 13.38.153.192 2024-03-04 01:00:06.6827-DEBUG at v2rayN.Handler.SpeedtestHandler.GetTcpingTime(String url, Int32 port) 2024-03-04 01:00:07.6764-DEBUG connect timeout (5s): 51.21.114.201,connect timeout (5s): 51.21.114.201 2024-03-04 01:00:07.6764-DEBUG connect timeout (5s): 185.242.86.156,connect timeout (5s): 185.242.86.156 2024-03-04 01:00:07.6764-DEBUG at v2rayN.Handler.SpeedtestHandler.GetTcpingTime(String url, Int32 port) 2024-03-04 01:00:07.6764-DEBUG at v2rayN.Handler.SpeedtestHandler.GetTcpingTime(String url, Int32 port) 2024-03-04 01:00:09.0869-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (由于线程退出或应用程序请求,已中止 I/O 操作。) 2024-03-04 01:00:09.0869-DEBUG 2024-03-04 01:00:09.0869-ERROR System.Net.Sockets.SocketException: 由于线程退出或应用程序请求,已中止 I/O 操作。 2024-03-04 01:00:09.0869-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (由于线程退出或应用程序请求,已中止 I/O 操作。) 2024-03-04 01:00:09.0869-DEBUG 2024-03-04 01:00:09.0869-ERROR System.Net.Sockets.SocketException: 由于线程退出或应用程序请求,已中止 I/O 操作。 2024-03-04 01:00:09.1855-DEBUG connect timeout (5s): 193.243.147.128,connect timeout (5s): 193.243.147.128 2024-03-04 01:00:09.1855-DEBUG at v2rayN.Handler.SpeedtestHandler.GetTcpingTime(String url, Int32 port) 2024-03-04 01:00:09.2176-DEBUG connect timeout (5s): data-us-v1.shwjfkw.cn,connect timeout (5s): data-us-v1.shwjfkw.cn 2024-03-04 01:00:09.2176-DEBUG at v2rayN.Handler.SpeedtestHandler.GetTcpingTime(String url, Int32 port) 2024-03-04 01:00:09.6963-DEBUG connect timeout (5s): www.darkroom.lol,connect timeout (5s): www.darkroom.lol 2024-03-04 01:00:09.6963-DEBUG at v2rayN.Handler.SpeedtestHandler.GetTcpingTime(String url, Int32 port) 2024-03-04 01:00:40.8676-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (由于线程退出或应用程序请求,已中止 I/O 操作。) 2024-03-04 01:00:40.8676-DEBUG 2024-03-04 01:00:40.8676-ERROR System.Net.Sockets.SocketException: 由于线程退出或应用程序请求,已中止 I/O 操作。 2024-03-04 01:00:40.8676-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (由于线程退出或应用程序请求,已中止 I/O 操作。) 2024-03-04 01:00:40.8676-DEBUG 2024-03-04 01:00:40.8676-ERROR System.Net.Sockets.SocketException: 由于线程退出或应用程序请求,已中止 I/O 操作。 2024-03-04 01:00:40.8676-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (由于线程退出或应用程序请求,已中止 I/O 操作。) 2024-03-04 01:00:40.8676-DEBUG 2024-03-04 01:00:40.8676-ERROR System.Net.Sockets.SocketException: 由于线程退出或应用程序请求,已中止 I/O 操作。 2024-03-04 01:00:40.8676-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (由于线程退出或应用程序请求,已中止 I/O 操作。) 2024-03-04 01:00:40.8676-DEBUG 2024-03-04 01:00:40.8676-ERROR System.Net.Sockets.SocketException: 由于线程退出或应用程序请求,已中止 I/O 操作。 2024-03-04 01:00:40.8676-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (由于线程退出或应用程序请求,已中止 I/O 操作。) 2024-03-04 01:00:40.8676-DEBUG 2024-03-04 01:00:40.8676-ERROR System.Net.Sockets.SocketException: 由于线程退出或应用程序请求,已中止 I/O 操作。 2024-03-04 01:00:40.8698-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (由于线程退出或应用程序请求,已中止 I/O 操作。) 2024-03-04 01:00:40.8698-DEBUG 2024-03-04 01:00:40.8698-ERROR System.Net.Sockets.SocketException: 由于线程退出或应用程序请求,已中止 I/O 操作。 2024-03-04 01:00:40.8698-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (由于线程退出或应用程序请求,已中止 I/O 操作。) 2024-03-04 01:00:40.8698-DEBUG 2024-03-04 01:00:40.8698-ERROR System.Net.Sockets.SocketException: 由于线程退出或应用程序请求,已中止 I/O 操作。
额外信息
No response
我确认已更新至最新版本
- [X] 是
我确认已查询历史issues
- [X] 是
发现主界面信息框中的日志
i suffer the same problem , but it always normal until i open the lan perssion ,just open and close . after that ,it dont work
我也一样
发现主界面信息框中的日志
现在我测试不能复现了,不过当时情况是 sing-box 导致的内存飙升,应该是它的 BUG,我看到其他人相似情况的描述是虚拟网卡有BUG,会出现不能访问互联网的情况,在适配器里勾选它的 "允许其他网络用户通过此计算机的internet连接来连接 " 选项,然后再取消就可以访问 internet,我使用 wintun 创建的虚拟网卡就是这个问题,执行 勾选-取消勾选 操作后,虚拟网卡可用,同时 wintun 的占用内存过大问题也没有了
这应该是sing-box core的BUG,我记得sing-box已经修复了。你更新sing-box core试试。