Skip to content

[Bug]: panic: invalid deprecated note: tun-address-x #5950

@hilyso

Description

@hilyso

预期情况

Tun 模式打开之后, 网络适配器中 sing_box正常

实际情况

Tun 打开之后, 网络适配器中没有sing_box. 切换管理员权限打开软件结果一样

复现方法

执行了 v2rayN 中的 "检查更新" 选项

日志信息

panic: invalid deprecated note: tun-address-x
goroutine 1 [running]:
github.com/sagernet/sing-box/experimental/deprecated.Note.Impending({{0x1f93bef, 0xd}, {0x1fa4659, 0x19}, {0x1f8db6d, 0x6}, {0x1f8db79, 0x6}, {0x0, 0x0}, ...})
github.com/sagernet/sing-box/experimental/deprecated/constants.go:28 +0x179
github.com/sagernet/sing-box/experimental/deprecated.(*envManager).ReportDeprecated(0xc000122d30, {{0x1f93bef, 0xd}, {0x1fa4659, 0x19}, {0x1f8db6d, 0x6}, {0x1f8db79, 0x6}, {0x0, ...}, ...})
github.com/sagernet/sing-box/experimental/deprecated/env.go:19 +0x58
github.com/sagernet/sing-box/experimental/deprecated.Report({0x21a33d0?, 0xc0001b12c0?}, {{0x1f93bef, 0xd}, {0x1fa4659, 0x19}, {0x1f8db6d, 0x6}, {0x1f8db79, 0x6}, ...})
github.com/sagernet/sing-box/experimental/deprecated/manager.go:18 +0x59
github.com/sagernet/sing-box/inbound.NewTun({_, }, {, }, {, }, {, }, {{0xc0002456d0, 0xb}, ...}, ...)
github.com/sagernet/sing-box/inbound/tun.go:119 +0x11d8
github.com/sagernet/sing-box/inbound.New({
, }, {, }, {, }, {, }, {{0xc0002448d4, 0x3}, ...}, ...)
github.com/sagernet/sing-box/inbound/builder.go:20 +0x5a5
github.com/sagernet/sing-box.New({{{0xc000216000, 0x1f20, 0x3e00}, {0x0, 0x0}, 0xc0002232f0, 0xc0001e4900, 0x0, {0xc000118408, 0x1, ...}, ...}, ...})
github.com/sagernet/sing-box/box.go:110 +0xa5e
main.create()
github.com/sagernet/sing-box/cmd/sing-box/cmd_run.go:137 +0x198
main.run()
github.com/sagernet/sing-box/cmd/sing-box/cmd_run.go:174 +0x105
main.init.func25(0xc0001c9d00?, {0x1f8cd7b?, 0x4?, 0x1f8cd7f?})
github.com/sagernet/sing-box/cmd/sing-box/cmd_run.go:30 +0x17
github.com/spf13/cobra.(*Command).execute(0x2c3a320, {0xc0001f9b60, 0x3, 0x3})
github.com/spf13/cobra@v1.8.1/command.go:989 +0xa91
github.com/spf13/cobra.(*Command).ExecuteC(0x2c35580)
github.com/spf13/cobra@v1.8.1/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.8.1/command.go:1041
main.main()
github.com/sagernet/sing-box/cmd/sing-box/main.go:8 +0x1e
panic: invalid deprecated note: tun-address-x
goroutine 1 [running]:
github.com/sagernet/sing-box/experimental/deprecated.Note.Impending({{0x1f93bef, 0xd}, {0x1fa4659, 0x19}, {0x1f8db6d, 0x6}, {0x1f8db79, 0x6}, {0x0, 0x0}, ...})
github.com/sagernet/sing-box/experimental/deprecated/constants.go:28 +0x179
github.com/sagernet/sing-box/experimental/deprecated.(*envManager).ReportDeprecated(0xc000122d30, {{0x1f93bef, 0xd}, {0x1fa4659, 0x19}, {0x1f8db6d, 0x6}, {0x1f8db79, 0x6}, {0x0, ...}, ...})
github.com/sagernet/sing-box/experimental/deprecated/env.go:19 +0x58
github.com/sagernet/sing-box/experimental/deprecated.Report({0x21a33d0?, 0xc0001b12c0?}, {{0x1f93bef, 0xd}, {0x1fa4659, 0x19}, {0x1f8db6d, 0x6}, {0x1f8db79, 0x6}, ...})
github.com/sagernet/sing-box/experimental/deprecated/manager.go:18 +0x59
github.com/sagernet/sing-box/inbound.NewTun({
, }, {, }, {, }, {, }, {{0xc0002456d0, 0xb}, ...}, ...)
github.com/sagernet/sing-box/inbound/tun.go:119 +0x11d8
github.com/sagernet/sing-box/inbound.New({
, }, {, }, {, }, {, _}, {{0xc0002448d4, 0x3}, ...}, ...)
github.com/sagernet/sing-box/inbound/builder.go:20 +0x5a5
github.com/sagernet/sing-box.New({{{0xc000216000, 0x1f20, 0x3e00}, {0x0, 0x0}, 0xc0002232f0, 0xc0001e4900, 0x0, {0xc000118408, 0x1, ...}, ...}, ...})
github.com/sagernet/sing-box/box.go:110 +0xa5e
main.create()
github.com/sagernet/sing-box/cmd/sing-box/cmd_run.go:137 +0x198
main.run()
github.com/sagernet/sing-box/cmd/sing-box/cmd_run.go:174 +0x105
main.init.func25(0xc0001c9d00?, {0x1f8cd7b?, 0x4?, 0x1f8cd7f?})
github.com/sagernet/sing-box/cmd/sing-box/cmd_run.go:30 +0x17
github.com/spf13/cobra.(*Command).execute(0x2c3a320, {0xc0001f9b60, 0x3, 0x3})
github.com/spf13/cobra@v1.8.1/command.go:989 +0xa91
github.com/spf13/cobra.(*Command).ExecuteC(0x2c35580)
github.com/spf13/cobra@v1.8.1/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.8.1/command.go:1041
main.main()
github.com/sagernet/sing-box/cmd/sing-box/main.go:8 +0x1e

额外信息

系统版本: Windows 11 22H3
软件版本: v2rayN V7.0.4

我确认已更新至最新版本

我确认已查询历史issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions