Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

程序崩溃(panic: runtime error: slice bounds out of range) #733

Open
blanche0411 opened this issue Jan 15, 2025 · 9 comments
Open

程序崩溃(panic: runtime error: slice bounds out of range) #733

blanche0411 opened this issue Jan 15, 2025 · 9 comments

Comments

@blanche0411
Copy link

panic: runtime error: slice bounds out of range [:2058] with capacity 2048

goroutine 111885062 [running]:
github.com/xtls/xray-core/common/protocol/quic.SniffQUIC({0xc012170000, 0x4e2, 0x2000})
github.com/xtls/[email protected]/common/protocol/quic/sniff.go:220 +0x1c9a
github.com/XrayR-project/XrayR/app/mydispatcher.NewSniffer.func4({0xc0346a9928?, 0x8?}, {0xc012170000?, 0x51df59?, 0x429be60?})
github.com/XrayR-project/XrayR/app/mydispatcher/sniffer.go:40 +0x25
github.com/XrayR-project/XrayR/app/mydispatcher.(*Sniffer).Sniff(0xc05999e240, {0x4a765b8, 0xc065dd14a0}, {0xc012170000, 0x4e2, 0x2000}, 0x3)
github.com/XrayR-project/XrayR/app/mydispatcher/sniffer.go:64 +0xcc
github.com/XrayR-project/XrayR/app/mydispatcher.sniffer.func1({0x4a765b8, 0xc065dd14a0}, 0xc069d18240, 0xc069d182a0, 0xc05999e240, 0x3)
github.com/XrayR-project/XrayR/app/mydispatcher/default.go:365 +0x125
github.com/XrayR-project/XrayR/app/mydispatcher.sniffer({0x4a765b8, 0xc065dd14a0}, 0xc069d18240, 0x0, 0x3)
github.com/XrayR-project/XrayR/app/mydispatcher/default.go:375 +0x11f
github.com/XrayR-project/XrayR/app/mydispatcher.(*DefaultDispatcher).Dispatch.func1()
github.com/XrayR-project/XrayR/app/mydispatcher/default.go:271 +0x10f
created by github.com/XrayR-project/XrayR/app/mydispatcher.(*DefaultDispatcher).Dispatch in goroutine 111884832
github.com/XrayR-project/XrayR/app/mydispatcher/default.go:266 +0x4d3

@Ksael
Copy link

Ksael commented Feb 1, 2025

Same problem

@Tau34RUS
Copy link

Tau34RUS commented Feb 8, 2025

Getting the same this week
`panic: runtime error: slice bounds out of range [:2312] with capacity 2048

goroutine 113 [running]:
github.com/xtls/xray-core/common/protocol/quic.SniffQUIC({0x2592000, 0xa12, 0x2000})
github.com/xtls/xray-core/common/protocol/quic/sniff.go:220 +0x1bd8
github.com/xtls/xray-core/app/dispatcher.NewSniffer.func4({0x1192930, 0x259e6f0}, {0x2592000, 0xa12, 0x2000})
github.com/xtls/xray-core/app/dispatcher/sniffer.go:40 +0x50
github.com/xtls/xray-core/app/dispatcher.(*Sniffer).Sniff(0x265eca0, {0x1192930, 0x259e6f0}, {0x2592000, 0xa12, 0x2000}, 0x3)
github.com/xtls/xray-core/app/dispatcher/sniffer.go:64 +0xe4
github.com/xtls/xray-core/app/dispatcher.sniffer.func1({0x1192930, 0x259e6f0}, 0x2660a08, 0x270c2c0, 0x265eca0, 0x3)
github.com/xtls/xray-core/app/dispatcher/default.go:346 +0x148
github.com/xtls/xray-core/app/dispatcher.sniffer({0x1192930, 0x259e6f0}, 0x2660a08, 0x0, 0x3)
github.com/xtls/xray-core/app/dispatcher/default.go:356 +0x118
github.com/xtls/xray-core/app/dispatcher.(*DefaultDispatcher).Dispatch.func1()
github.com/xtls/xray-core/app/dispatcher/default.go:241 +0x130
created by github.com/xtls/xray-core/app/dispatcher.(*DefaultDispatcher).Dispatch in goroutine 48
github.com/xtls/xray-core/app/dispatcher/default.go:236 +0x458
Xray 1.8.4`

@infinitaa
Copy link

same here, someone on Xray-Core page said that it related to TUN mode and sniffing on chrome. I don't know how to fix it but I know it has risen recently. and Xrayr keeps restarting constantly.

@miladrajabi2002
Copy link

XTLS/Xray-core#4396 (comment)

he said is problem is fixed but xrayr use old version xray-core and they have this problem

@fiyong12138
Copy link

Excuse me, is there a solution? My xrayr keeps restarting, causing significant network fluctuations

@depfsh
Copy link

depfsh commented Feb 20, 2025

same issue.

panic: runtime error: slice bounds out of range [:2317] with capacity 2048

goroutine 8963 [running]:
github.com/xtls/xray-core/common/protocol/quic.SniffQUIC({0xc007338000, 0xef4, 0x2000})
github.com/xtls/[email protected]/common/protocol/quic/sniff.go:220 +0x1c9a
github.com/wyx2685/XrayR/app/mydispatcher.NewSniffer.func4({0xc005cbc080?, 0x20?}, {0xc007338000?, 0xc0075aed50?, 0x3683480?})
github.com/wyx2685/XrayR/app/mydispatcher/sniffer.go:40 +0x25
github.com/wyx2685/XrayR/app/mydispatcher.(*Sniffer).Sniff(0xc004a652a8, {0x3c9bc00, 0xc0043f3bc0}, {0xc007338000, 0xef4, 0x2000}, 0x3)
github.com/wyx2685/XrayR/app/mydispatcher/sniffer.go:64 +0xcc
github.com/wyx2685/XrayR/app/mydispatcher.sniffer.func1({0x3c9bc00, 0xc0043f3bc0}, 0xc0043f3f20, 0xc0043f3f50, 0xc004a652a8, 0x3)
github.com/wyx2685/XrayR/app/mydispatcher/default.go:376 +0x125
github.com/wyx2685/XrayR/app/mydispatcher.sniffer({0x3c9bc00, 0xc0043f3bc0}, 0xc0043f3f20, 0x0, 0x3)
github.com/wyx2685/XrayR/app/mydispatcher/default.go:386 +0x11f
github.com/wyx2685/XrayR/app/mydispatcher.(*DefaultDispatcher).Dispatch.func1()
github.com/wyx2685/XrayR/app/mydispatcher/default.go:269 +0x10f
created by github.com/wyx2685/XrayR/app/mydispatcher.(*DefaultDispatcher).Dispatch in goroutine 8962
github.com/wyx2685/XrayR/app/mydispatcher/default.go:264 +0x3ad

@fiyong12138
Copy link

#738

The adjacent post has already provided a repair method, and I have tested it on my end without any problems. You can give it a try

@depfsh
Copy link

depfsh commented Feb 20, 2025

#738

The adjacent post has already provided a repair method, and I have tested it on my end without any problems. You can give it a try

thanks bro. It seems working

@linglala
Copy link

同样的问题!

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

No branches or pull requests

8 participants