Skip to content

Conversation

@Henry-ZHR
Copy link
Contributor

Causing the following crash if Version is not available:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x56350145c98d]

goroutine 1 [running]:
github.com/sagernet/serenity/server.(*Profile).Render(0xc000184210, {{0x0, 0x0}, {0x0, 0x0}, 0x0})
        github.com/sagernet/serenity/server/profile.go:166 +0xb6d
github.com/sagernet/serenity/server.(*Server).RenderHeadless(0xc0001842c0?, {0x7fffff53768b?, 0x7?}, {{0x0, 0x0}, {0x0, 0x0}, 0x0})
        github.com/sagernet/serenity/server/server_render.go:112 +0xc5
main.export({0x7fffff53768b, 0x7})
        github.com/sagernet/serenity/cmd/serenity/cmd_export.go:100 +0x733
main.init.func2(0xc0001d6200?, {0xc0003ad540?, 0x1?, 0x5635018488e6?})
        github.com/sagernet/serenity/cmd/serenity/cmd_export.go:35 +0x35
github.com/spf13/cobra.(*Command).execute(0x5635024a3600, {0xc0003ad4f0, 0x5, 0x5})
        github.com/spf13/cobra@v1.9.1/command.go:1019 +0xa91
github.com/spf13/cobra.(*Command).ExecuteC(0x5635024a3e40)
        github.com/spf13/cobra@v1.9.1/command.go:1148 +0x46f
github.com/spf13/cobra.(*Command).Execute(...)
        github.com/spf13/cobra@v1.9.1/command.go:1071
main.main()
        github.com/sagernet/serenity/cmd/serenity/main.go:37 +0x1e

@nekohasekai nekohasekai merged commit a335a10 into SagerNet:dev May 27, 2025
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants