在使用FFmpeg
压制视频的过程中,电脑突然意外掉电,导致电脑重启后v2rayN
无法正常启动。相关的错误日志如下所示:
启动服务(2023/08/13 09:18:21)...
Xray 1.8.3 (Xray, Penetrates Everything.) Custom (go1.20.5 windows/amd64)
A unified platform for anti-censorship.
2023/08/13 09:18:21 Using default config: C:\v2rayN\guiConfigs\config.json
2023/08/13 09:18:21 [Info] infra/conf/serial: Reading config: C:\v2rayN\guiConfigs\config.json
panic: runtime error: index out of range [1] with length 1
goroutine 1 [running]:
github.com/xtls/xray-core/infra/conf.find({0xc000880000?, 0xc0002f8770?, 0xc0002d0978?}, {0xc00058d3b8, 0x6, 0xc0002f8770?})
github.com/xtls/xray-core/infra/conf/router.go:268 +0x1f2
github.com/xtls/xray-core/infra/conf.loadSite({0x12ab001, 0xb}, {0xc0002f8770, 0x6})
github.com/xtls/xray-core/infra/conf/router.go:233 +0x2a8
github.com/xtls/xray-core/infra/conf.loadGeositeWithAttr({0x12ab001, 0xb}, {0xc0002f8770?, 0xc00021d5c0?})
github.com/xtls/xray-core/infra/conf/router.go:330 +0x1a5
github.com/xtls/xray-core/infra/conf.parseDomainRule({0xc0002f8760?, 0x12f?})
github.com/xtls/xray-core/infra/conf/router.go:352 +0x9a
github.com/xtls/xray-core/infra/conf.parseFieldRule({0xc000226140, 0x12f, 0x140})
github.com/xtls/xray-core/infra/conf/router.go:545 +0xe35
github.com/xtls/xray-core/infra/conf.ParseRule({0xc000226140, 0x12f, 0x140})
github.com/xtls/xray-core/infra/conf/router.go:623 +0x1a5
github.com/xtls/xray-core/infra/conf.(*RouterConfig).Build(0xc0000e9270)
github.com/xtls/xray-core/infra/conf/router.go:100 +0x1c6
github.com/xtls/xray-core/infra/conf.(*Config).Build(0xc000283ee0)
github.com/xtls/xray-core/infra/conf/xray.go:591 +0x6ba
github.com/xtls/xray-core/infra/conf/serial.BuildConfig({0xc0002866e0, 0x1, 0xc00021dc80?}, {0xc0002866f0, 0x1, 0xc0000d0510?})
github.com/xtls/xray-core/infra/conf/serial/builder.go:29 +0x4a5
github.com/xtls/xray-core/core.LoadConfig({0x12a38bd, 0x4}, {0x10bc920?, 0xc0000d0510?})
github.com/xtls/xray-core/core/config.go:117 +0x663
main.startXray()
github.com/xtls/xray-core/main/run.go:185 +0xaa
main.executeRun(0x1c74840?, {0xc0000a94d0?, 0x20?, 0x10a4140?})
github.com/xtls/xray-core/main/run.go:65 +0x45
github.com/xtls/xray-core/main/commands/base.Execute()
github.com/xtls/xray-core/main/commands/base/execute.go:64 +0x636
main.main()
github.com/xtls/xray-core/main/main.go:22 +0x1aa
Cannot mix synchronous and asynchronous operation on process stream.
2023/08/13 09:18:21 系统代理设置改变ForcedChange
2023/08/13 09:18:33 当前服务的真连接延迟: -1 ms
下载开始... https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat
下载开始... https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat
经过分析,轻松解决:
- 删除位于
guiLogs
目录下今天日期对应的日志文件 - 重新启动
v2rayN
服务