v2rayN icon indicating copy to clipboard operation
v2rayN copied to clipboard

[Bug]: 使用最新6.39版本开启tun模式CPU和内存会迅速升至100%导致电脑卡死崩溃,而且国内外网站无法访问

Open xhj234 opened this issue 11 months ago • 38 comments

预期情况

/

实际情况

只要开启TUN模式就会卡死,我已经试过重新下载软件 v2

复现方法

开启TUN模式

日志信息

2024-03-28.txt

额外信息

No response

我确认已更新至最新版本

  • [x] 是

我确认已查询历史issues

  • [X] 是

xhj234 avatar Mar 28 '24 05:03 xhj234

有没有开热点? https://github.com/2dust/v2rayN/issues/4539

Kukuair avatar Mar 29 '24 13:03 Kukuair

有没有开热点? #4539

没有哦,目前退回6.38故障消退 最新补充:6.38也坏了

xhj234 avatar Mar 29 '24 13:03 xhj234

在设置中把core内核日志保存到文件查看,以及开启tun模式时生成的的config.json文件是否正确

Lsyx-Good avatar Mar 30 '24 02:03 Lsyx-Good

在设置中把core内核日志保存到文件查看,以及开启tun模式时生成的的config.json文件是否正确 guiLogs.zip 日志已经生成,日志等级wraning

xhj234 avatar Mar 30 '24 03:03 xhj234

在设置中把core内核日志保存到文件查看,以及开启tun模式时生成的的config.json文件是否正确 guiLogs.zip 日志已经生成,日志等级wraning

开启tun模式时,生成的config.json文件具体内容是?

Lsyx-Good avatar Mar 30 '24 04:03 Lsyx-Good

在设置中把core内核日志保存到文件查看,以及开启tun模式时生成的的config.json文件是否正确 guiLogs.zip 日志已经生成,日志等级wraning

开启tun模式时,生成的config.json文件具体内容是?

{ "log": { "access": "e:\Downloads\6.39\zz_v2rayN-With-Core-SelfContained\guiLogs\Vaccess_2024-03-30.txt", "error": "e:\Downloads\6.39\zz_v2rayN-With-Core-SelfContained\guiLogs\Verror_2024-03-30.txt", "loglevel": "debug" }, "inbounds": [ { "tag": "socks", "port": 23005, "listen": "0.0.0.0", "protocol": "socks", "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ], "routeOnly": false }, "settings": { "auth": "noauth", "udp": true, "allowTransparent": false } }, { "tag": "http", "port": 23006, "listen": "0.0.0.0", "protocol": "http", "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ], "routeOnly": false }, "settings": { "auth": "noauth", "udp": true, "allowTransparent": false } }, { "tag": "api", "port": 23010, "listen": "127.0.0.1", "protocol": "dokodemo-door", "settings": { "udp": false, "address": "127.0.0.1", "allowTransparent": false } } ], "outbounds": [ { "tag": "proxy", "protocol": "vless", "settings": { "vnext": [ { "address": "132.226.168.199", "port": 18421, "users": [ { "id": "d7dd3a35-b68b-4992-b319-a85b8a1fc8e5", "alterId": 0, "email": "[email protected]", "security": "auto", "encryption": "none" } ] } ] }, "streamSettings": { "network": "ws", "security": "tls", "tlsSettings": { "allowInsecure": false, "serverName": "tg.dns68.cloudns.nz", "show": false }, "wsSettings": { "path": "Twitter\u82CF\u5C0F\u67E0", "headers": { "Host": "tg.dns68.cloudns.nz" } } }, "mux": { "enabled": false, "concurrency": -1 } }, { "tag": "direct", "protocol": "freedom", "settings": {} }, { "tag": "block", "protocol": "blackhole", "settings": { "response": { "type": "http" } } } ], "stats": {}, "api": { "tag": "api", "services": [ "StatsService" ] }, "policy": { "system": { "statsOutboundUplink": true, "statsOutboundDownlink": true } }, "dns": { "servers": [ "1.1.1.1", "8.8.8.8" ] }, "routing": { "domainStrategy": "AsIs", "rules": [ { "type": "field", "inboundTag": [ "api" ], "outboundTag": "api" }, { "type": "field", "outboundTag": "direct", "domain": [ "domain:example-example.com", "domain:example-example2.com" ] }, { "type": "field", "outboundTag": "block", "domain": [ "geosite:category-ads-all" ] }, { "type": "field", "outboundTag": "direct", "domain": [ "geosite:cn" ] }, { "type": "field", "outboundTag": "direct", "ip": [ "geoip:private", "geoip:cn" ] }, { "type": "field", "port": "0-65535", "outboundTag": "proxy" } ] } }

xhj234 avatar Mar 30 '24 04:03 xhj234

在设置中把core内核日志保存到文件查看,以及开启tun模式时生成的的config.json文件是否正确 guiLogs.zip 日志已经生成,日志等级wraning

开启tun模式时,生成的config.json文件具体内容是?

{ "log": { "access": "e:\Downloads\6.39\zz_v2rayN-With-Core-SelfContained\guiLogs\Vaccess_2024-03-30.txt", "error": "e:\Downloads\6.39\zz_v2rayN-With-Core-SelfContained\guiLogs\Verror_2024-03-30.txt", "loglevel": "debug" }, "inbounds": [ { "tag": "socks", "port": 23005, "listen": "0.0.0.0", "protocol": "socks", "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ], "routeOnly": false }, "settings": { "auth": "noauth", "udp": true, "allowTransparent": false } }, { "tag": "http", "port": 23006, "listen": "0.0.0.0", "protocol": "http", "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ], "routeOnly": false }, "settings": { "auth": "noauth", "udp": true, "allowTransparent": false } }, { "tag": "api", "port": 23010, "listen": "127.0.0.1", "protocol": "dokodemo-door", "settings": { "udp": false, "address": "127.0.0.1", "allowTransparent": false } } ], "outbounds": [ { "tag": "proxy", "protocol": "vless", "settings": { "vnext": [ { "address": "132.226.168.199", "port": 18421, "users": [ { "id": "d7dd3a35-b68b-4992-b319-a85b8a1fc8e5", "alterId": 0, "email": "[email protected]", "security": "auto", "encryption": "none" } ] } ] }, "streamSettings": { "network": "ws", "security": "tls", "tlsSettings": { "allowInsecure": false, "serverName": "tg.dns68.cloudns.nz", "show": false }, "wsSettings": { "path": "Twitter\u82CF\u5C0F\u67E0", "headers": { "Host": "tg.dns68.cloudns.nz" } } }, "mux": { "enabled": false, "concurrency": -1 } }, { "tag": "direct", "protocol": "freedom", "settings": {} }, { "tag": "block", "protocol": "blackhole", "settings": { "response": { "type": "http" } } } ], "stats": {}, "api": { "tag": "api", "services": [ "StatsService" ] }, "policy": { "system": { "statsOutboundUplink": true, "statsOutboundDownlink": true } }, "dns": { "servers": [ "1.1.1.1", "8.8.8.8" ] }, "routing": { "domainStrategy": "AsIs", "rules": [ { "type": "field", "inboundTag": [ "api" ], "outboundTag": "api" }, { "type": "field", "outboundTag": "direct", "domain": [ "domain:example-example.com", "domain:example-example2.com" ] }, { "type": "field", "outboundTag": "block", "domain": [ "geosite:category-ads-all" ] }, { "type": "field", "outboundTag": "direct", "domain": [ "geosite:cn" ] }, { "type": "field", "outboundTag": "direct", "ip": [ "geoip:private", "geoip:cn" ] }, { "type": "field", "port": "0-65535", "outboundTag": "proxy" } ] } }

您这个不是sing-box开启tun模式时的生成的配置文件,您需要保持tun开关开启,然后打开config.json文件,此时才是tun模式的配置文件

Lsyx-Good avatar Mar 30 '24 04:03 Lsyx-Good

先看下这个 https://github.com/2dust/v2rayN/issues/4539

2dust avatar Mar 30 '24 06:03 2dust

我今天更新也出现这个问题了,操作和上述相同,先退回旧版本了

BlakeHansen130 avatar Mar 30 '24 06:03 BlakeHansen130

在设置中把core内核日志保存到文件查看,以及开启tun模式时生成的的config.json文件是否正确 guiLogs.zip 日志已经生成,日志等级wraning

开启tun模式时,生成的config.json文件具体内容是?

config.txt 好的

xhj234 avatar Mar 30 '24 06:03 xhj234

有没有开热点? #4539

我v6.39关闭了笔记本热点以后就没事了,打扰了

BlakeHansen130 avatar Mar 30 '24 06:03 BlakeHansen130

先看下这个 #4539

您好,作者!发现开启tun模式后经常出现 “FATAL[0016] start service: initialize inbound/tun[tun-in]: configure tun interface: Cannot create a file when that file already exists.”,而且关闭tun的时候日志中没有看到关于sing-box的日志输出,同样的配置文件(v2rayn生成),在terminal中使用命令行sing-box运行不会出错,但是从v2rayn启动就会经常遇到这个错误,一般sing-box正常退出时都会输出图片下的内容,而在v2rayn中没有看到(开启记录到文件也无法看到),这会不会是v2rayn对sing-box的关闭方式造成相关信息没有正确清除,导致第二次无法正常启动?以上是我的疑惑,不知道是否正确 image

Lsyx-Good avatar Mar 30 '24 07:03 Lsyx-Good

在设置中把core内核日志保存到文件查看,以及开启tun模式时生成的的config.json文件是否正确 guiLogs.zip 日志已经生成,日志等级wraning

开启tun模式时,生成的config.json文件具体内容是?

config.txt 好的

尝试在设置中更换tun的dns为以下试试

{
  "servers": [
    {
      "tag": "default",
      "address": "tls://8.8.8.8"
    },
    {
      "tag": "local",
      "address": "https://223.6.6.6/dns-query",
      "detour": "direct"
    }
  ],
  "rules": [
    {
      "outbound": "any",
      "server": "local"
    },
    {
      "geosite": [
        "cn"
      ],
      "server": "local"
    }
  ],
  "reverse_mapping": true,
  "strategy": "prefer_ipv4"
}

Lsyx-Good avatar Mar 30 '24 08:03 Lsyx-Good

在设置中把core内核日志保存到文件查看,以及开启tun模式时生成的的config.json文件是否正确 guiLogs.zip 日志已经生成,日志等级wraning

开启tun模式时,生成的config.json文件具体内容是?

config.txt 好的

尝试在设置中更换tun的dns为以下试试

{
  "servers": [
    {
      "tag": "default",
      "address": "tls://8.8.8.8"
    },
    {
      "tag": "local",
      "address": "https://223.6.6.6/dns-query",
      "detour": "direct"
    }
  ],
  "rules": [
    {
      "outbound": "any",
      "server": "local"
    },
    {
      "geosite": [
        "cn"
      ],
      "server": "local"
    }
  ],
  "reverse_mapping": true,
  "strategy": "prefer_ipv4"
}

屏幕截图 2024-03-30 161807 这样吗?这样试了不行

xhj234 avatar Mar 30 '24 08:03 xhj234

在设置中把core内核日志保存到文件查看,以及开启tun模式时生成的的config.json文件是否正确 guiLogs.zip 日志已经生成,日志等级wraning

开启tun模式时,生成的config.json文件具体内容是?

config.txt 好的

尝试在设置中更换tun的dns为以下试试

{
  "servers": [
    {
      "tag": "default",
      "address": "tls://8.8.8.8"
    },
    {
      "tag": "local",
      "address": "https://223.6.6.6/dns-query",
      "detour": "direct"
    }
  ],
  "rules": [
    {
      "outbound": "any",
      "server": "local"
    },
    {
      "geosite": [
        "cn"
      ],
      "server": "local"
    }
  ],
  "reverse_mapping": true,
  "strategy": "prefer_ipv4"
}

屏幕截图 2024-03-30 161807 这样吗?这样试了不行

是内存还是疯狂增加,还是什么

Lsyx-Good avatar Mar 30 '24 08:03 Lsyx-Good

可以尝试关闭windows系统的数据包转发,尝试Set-NetIPInterface -ifAlias <你的网卡名称> -Forwarding Disabled,如果多个网卡可以去掉-ifAlias参数,再尝试打开tun模式看看占用。

cipeizheng avatar Mar 30 '24 08:03 cipeizheng

在设置中把core内核日志保存到文件查看,以及开启tun模式时生成的的config.json文件是否正确 guiLogs.zip 日志已经生成,日志等级wraning

开启tun模式时,生成的config.json文件具体内容是?

config.txt 好的

尝试在设置中更换tun的dns为以下试试

{
  "servers": [
    {
      "tag": "default",
      "address": "tls://8.8.8.8"
    },
    {
      "tag": "local",
      "address": "https://223.6.6.6/dns-query",
      "detour": "direct"
    }
  ],
  "rules": [
    {
      "outbound": "any",
      "server": "local"
    },
    {
      "geosite": [
        "cn"
      ],
      "server": "local"
    }
  ],
  "reverse_mapping": true,
  "strategy": "prefer_ipv4"
}

屏幕截图 2024-03-30 161807 这样吗?这样试了不行

是内存还是疯狂增加,还是什么

爆CPU

xhj234 avatar Mar 30 '24 08:03 xhj234

在terminal中使用sing-box run -c 配置文件路径 命令运行,是否存在相同问题

Lsyx-Good avatar Mar 30 '24 09:03 Lsyx-Good

在terminal中使用sing-box run -c 配置文件路径 命令运行,是否存在相同问题

屏幕截图 2024-03-30 170926 爆CPU了

xhj234 avatar Mar 30 '24 09:03 xhj234

在terminal中使用sing-box run -c 配置文件路径 命令运行,是否存在相同问题

屏幕截图 2024-03-30 170926 爆CPU了

把配置文件log的级别从warn改为debug,发现之前你开的是warn以及sing-box的版本(sing-box version),以及尝试命令行运行我发的这个版本(还不行的话,可能你的windows做了其他设置 sing-box.zip

Lsyx-Good avatar Mar 30 '24 09:03 Lsyx-Good

检查下网卡有几个,如果有虚拟的网卡全部禁用了试试

2dust avatar Mar 30 '24 09:03 2dust

在terminal中使用sing-box run -c 配置文件路径 命令运行,是否存在相同问题

屏幕截图 2024-03-30 170926 爆CPU了

把配置文件log的级别从warn改为debug,发现之前你开的是warn以及sing-box的版本(sing-box version),以及尝试命令行运行我发的这个版本(还不行的话,可能你的windows做了其他设置 sing-box.zip

guiLogs.zip 还是爆CPU 也在禁用了其他虚拟网卡的情况下尝试了,故障现象依旧

xhj234 avatar Mar 30 '24 09:03 xhj234

检查下网卡有几个,如果有虚拟的网卡全部禁用了试试

我把除了以太网以外的全部网卡禁用了,问题现象依旧

xhj234 avatar Mar 30 '24 09:03 xhj234

在terminal中使用sing-box run -c 配置文件路径 命令运行,是否存在相同问题

屏幕截图 2024-03-30 170926 爆CPU了

把配置文件log的级别从warn改为debug,发现之前你开的是warn以及sing-box的版本(sing-box version),以及尝试命令行运行我发的这个版本(还不行的话,可能你的windows做了其他设置 sing-box.zip

昨天试的时候6.38还可以正常用诶,今天6.38也爆CPU了

xhj234 avatar Mar 30 '24 09:03 xhj234

屏幕截图 2024-03-30 174450 这好像真跟系统有关吧,以前确实没有这种情况额

xhj234 avatar Mar 30 '24 09:03 xhj234

把你节点发一份到 [email protected]

2dust avatar Mar 30 '24 10:03 2dust

屏幕截图 2024-03-30 174450 这好像真跟系统有关吧,以前确实没有这种情况额

把软件设置中日志级别开为debug,以及保存到文件(把今日关于sing-box的日志文件删除),开启tun(确保适配器中出现sing-box的虚拟网卡),然后访问网站,把日志发一下

Lsyx-Good avatar Mar 30 '24 10:03 Lsyx-Good

https://github.com/2dust/v2rayN/issues/4889#issuecomment-2027992649 这个楼层发了

xhj234 avatar Mar 30 '24 10:03 xhj234

image 回环了

Lsyx-Good avatar Mar 30 '24 10:03 Lsyx-Good

image 回环了

我好像也没动什么设置,只是启用了统计和硬件加速

xhj234 avatar Mar 30 '24 10:03 xhj234