Code Monkey home page Code Monkey logo

Comments (15)

nekohasekai avatar nekohasekai commented on August 15, 2024

It's working in tests, so we don't accept single line "it doesn't work" reports.

from sing-box.

malikshi avatar malikshi commented on August 15, 2024

this error only happend in vmess.
added sylog:

Sep 12 18:20:27 cpanel systemd[1]: Stopped sing-box services of conf sing-box-wss.
Sep 12 18:20:27 cpanel systemd[1]: [email protected]: Consumed 1.245s CPU time.
Sep 12 18:20:27 cpanel systemd[1]: Started sing-box services of conf sing-box-wss.
Sep 12 18:21:01 cpanel CRON[3120]: (root) CMD (rm ~/.bash_history > /dev/null 2>&1)
Sep 12 18:22:01 cpanel CRON[3128]: (root) CMD (rm ~/.bash_history > /dev/null 2>&1)
Sep 12 18:22:36 cpanel systemd[1]: Stopping sing-box services of conf sing-box-wss...
Sep 12 18:22:36 cpanel systemd[1]: [email protected]: Succeeded.
Sep 12 18:22:36 cpanel systemd[1]: Stopped sing-box services of conf sing-box-wss.
Sep 12 18:22:36 cpanel systemd[1]: [email protected]: Consumed 1.546s CPU time.
Sep 12 18:22:36 cpanel systemd[1]: Started sing-box services of conf sing-box-wss.
Sep 12 18:23:01 cpanel CRON[3146]: (root) CMD (rm ~/.bash_history > /dev/null 2>&1)
Sep 12 18:23:47 cpanel sing-box[3135]: panic: runtime error: slice bounds out of range [:108] with capacity 0
Sep 12 18:23:47 cpanel sing-box[3135]: goroutine 53 [running]:
Sep 12 18:23:47 cpanel sing-box[3135]: github.com/sagernet/sing/common/buf.(*Buffer).Bytes(...)
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/buf/buffer.go:357
Sep 12 18:23:47 cpanel sing-box[3135]: github.com/sagernet/sing-vmess.(*AEADReader).ReadBuffer(0xc000356340, 0xc0004b67b0)
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/chunk_aead.go:60 +0x145
Sep 12 18:23:47 cpanel sing-box[3135]: github.com/sagernet/sing/common/bufio.(*ChunkReader).Read(0xc000140520, {0xc00025c000, 0x8000, 0x7f5e5c0d8250?})
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/chunk.go:48 +0x114
Sep 12 18:23:47 cpanel sing-box[3135]: github.com/sagernet/sing-vmess.(*serverConn).Read(0x30?, {0xc00025c000?, 0xc0004b6780?, 0x0?})
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/service.go:426 +0x27
Sep 12 18:23:47 cpanel sing-box[3135]: github.com/sagernet/sing-box/experimental/clashapi/trafficontrol.(*tcpTracker).Read(0xc0001405a0, {0xc00025c000?, 0xc00001db60?, 0xc00001d9f8?})
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/experimental/clashapi/trafficontrol/tracker.go:58 +0x2e
Sep 12 18:23:47 cpanel sing-box[3135]: github.com/sagernet/sing/common/bufio.(*ExtendedReaderWrapper).ReadBuffer(0x115fa20?, 0xc0004b6780)
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/conn.go:141 +0x59
Sep 12 18:23:47 cpanel sing-box[3135]: github.com/sagernet/sing/common/bufio.CopyExtendedBuffer({0x14a5618?, 0xc00034a4d0}, {0x14a55f0, 0xc00034a4e0}, 0xc00001db60)
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:93 +0x1ad
Sep 12 18:23:47 cpanel sing-box[3135]: github.com/sagernet/sing/common/bufio.CopyExtended({0x14a5618?, 0xc00034a4d0}, {0x14a55f0?, 0xc00034a4e0})
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:80 +0x2d4
Sep 12 18:23:47 cpanel sing-box[3135]: github.com/sagernet/sing/common/bufio.Copy({0x14a0a80, 0xc00034a4c0}, {0x7f5e5c0e1618?, 0xc0001405a0?})
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:56 +0x2af
Sep 12 18:23:47 cpanel sing-box[3135]: github.com/sagernet/sing/common/bufio.(*readOnlyReader).WriteTo(0x10?, {0x14a0a80?, 0xc00034a4c0?})
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:23 +0x33
Sep 12 18:23:47 cpanel sing-box[3135]: io.copyBuffer({0x14a0a80, 0xc00034a4c0}, {0x149cea0, 0xc00034a4b0}, {0x0, 0x0, 0x0})
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/.go/src/io/io.go:409 +0x16e
Sep 12 18:23:47 cpanel sing-box[3135]: io.Copy(...)
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/.go/src/io/io.go:386
Sep 12 18:23:47 cpanel sing-box[3135]: net.genericReadFrom({0x149f0e0?, 0xc000014088?}, {0x149cea0, 0xc00034a4b0})
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/.go/src/net/net.go:675 +0x6a
Sep 12 18:23:47 cpanel sing-box[3135]: net.(*TCPConn).readFrom(0xc000014088, {0x149cea0, 0xc00034a4b0})
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/.go/src/net/tcpsock_posix.go:54 +0x78
Sep 12 18:23:47 cpanel sing-box[3135]: net.(*TCPConn).ReadFrom(0xc000014088, {0x149cea0?, 0xc00034a4b0?})
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/.go/src/net/tcpsock.go:130 +0x36
Sep 12 18:23:47 cpanel sing-box[3135]: github.com/sagernet/sing/common/bufio.Copy({0x149f0e0, 0xc000014088}, {0x7f5e5c0e1618?, 0xc0001405a0?})
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:54 +0x1bd
Sep 12 18:23:47 cpanel sing-box[3135]: github.com/sagernet/sing/common/bufio.CopyConn.func1({0x14ae401?, 0xc000040300?})
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:172 +0x85
Sep 12 18:23:47 cpanel sing-box[3135]: github.com/sagernet/sing/common/task.(*Group).Run.func1()
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/task/task.go:59 +0x93
Sep 12 18:23:47 cpanel sing-box[3135]: created by github.com/sagernet/sing/common/task.(*Group).Run
Sep 12 18:23:47 cpanel sing-box[3135]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/task/task.go:58 +0x54a
Sep 12 18:23:47 cpanel systemd[1]: [email protected]: Main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 12 18:23:47 cpanel systemd[1]: [email protected]: Failed with result 'exit-code'.
Sep 12 18:23:47 cpanel systemd[1]: [email protected]: Consumed 1.438s CPU time.
Sep 12 18:23:49 cpanel systemd[1]: [email protected]: Scheduled restart job, restart counter is at 1.
Sep 12 18:23:49 cpanel systemd[1]: Stopped sing-box services of conf sing-box-wss.
Sep 12 18:23:49 cpanel systemd[1]: [email protected]: Consumed 1.438s CPU time.
Sep 12 18:23:49 cpanel systemd[1]: Started sing-box services of conf sing-box-wss.
Sep 12 18:24:01 cpanel CRON[3159]: (root) CMD (rm ~/.bash_history > /dev/null 2>&1)
Sep 12 18:24:32 cpanel sing-box[3150]: panic: runtime error: slice bounds out of range [:16] with capacity 0
Sep 12 18:24:32 cpanel sing-box[3150]: goroutine 2015 [running]:
Sep 12 18:24:32 cpanel sing-box[3150]: github.com/sagernet/sing/common/buf.(*Buffer).Bytes(...)
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/buf/buffer.go:357
Sep 12 18:24:32 cpanel sing-box[3150]: github.com/sagernet/sing-vmess.(*AEADReader).ReadBuffer(0xc002e64640, 0xc002d38f30)
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/chunk_aead.go:60 +0x145
Sep 12 18:24:32 cpanel sing-box[3150]: github.com/sagernet/sing/common/bufio.(*ChunkReader).Read(0xc0017d7dc0, {0xc002e36000, 0x8000, 0x7fc670830cd8?})
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/chunk.go:48 +0x114
Sep 12 18:24:32 cpanel sing-box[3150]: github.com/sagernet/sing-vmess.(*serverConn).Read(0x30?, {0xc002e36000?, 0xc002d38f00?, 0x0?})
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/service.go:426 +0x27
Sep 12 18:24:32 cpanel sing-box[3150]: github.com/sagernet/sing-box/experimental/clashapi/trafficontrol.(*tcpTracker).Read(0xc0017d7e40, {0xc002e36000?, 0xc00299fb60?, 0xc00299f9f8?})
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/experimental/clashapi/trafficontrol/tracker.go:58 +0x2e
Sep 12 18:24:32 cpanel sing-box[3150]: github.com/sagernet/sing/common/bufio.(*ExtendedReaderWrapper).ReadBuffer(0x115fa20?, 0xc002d38f00)
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/conn.go:141 +0x59
Sep 12 18:24:32 cpanel sing-box[3150]: github.com/sagernet/sing/common/bufio.CopyExtendedBuffer({0x14a5618?, 0xc002372610}, {0x14a55f0, 0xc002372620}, 0xc00299fb60)
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:93 +0x1ad
Sep 12 18:24:32 cpanel sing-box[3150]: github.com/sagernet/sing/common/bufio.CopyExtended({0x14a5618?, 0xc002372610}, {0x14a55f0?, 0xc002372620})
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:80 +0x2d4
Sep 12 18:24:32 cpanel sing-box[3150]: github.com/sagernet/sing/common/bufio.Copy({0x14a0a80, 0xc002372600}, {0x7fc6709dcfe8?, 0xc0017d7e40?})
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:56 +0x2af
Sep 12 18:24:32 cpanel sing-box[3150]: github.com/sagernet/sing/common/bufio.(*readOnlyReader).WriteTo(0x10?, {0x14a0a80?, 0xc002372600?})
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:23 +0x33
Sep 12 18:24:32 cpanel sing-box[3150]: io.copyBuffer({0x14a0a80, 0xc002372600}, {0x149cea0, 0xc0023725f0}, {0x0, 0x0, 0x0})
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/.go/src/io/io.go:409 +0x16e
Sep 12 18:24:32 cpanel sing-box[3150]: io.Copy(...)
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/.go/src/io/io.go:386
Sep 12 18:24:32 cpanel sing-box[3150]: net.genericReadFrom({0x149f0e0?, 0xc0028a22d8?}, {0x149cea0, 0xc0023725f0})
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/.go/src/net/net.go:675 +0x6a
Sep 12 18:24:32 cpanel sing-box[3150]: net.(*TCPConn).readFrom(0xc0028a22d8, {0x149cea0, 0xc0023725f0})
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/.go/src/net/tcpsock_posix.go:54 +0x78
Sep 12 18:24:32 cpanel sing-box[3150]: net.(*TCPConn).ReadFrom(0xc0028a22d8, {0x149cea0?, 0xc0023725f0?})
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/.go/src/net/tcpsock.go:130 +0x36
Sep 12 18:24:32 cpanel sing-box[3150]: github.com/sagernet/sing/common/bufio.Copy({0x149f0e0, 0xc0028a22d8}, {0x7fc6709dcfe8?, 0xc0017d7e40?})
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:54 +0x1bd
Sep 12 18:24:32 cpanel sing-box[3150]: github.com/sagernet/sing/common/bufio.CopyConn.func1({0x100010000?, 0xc002e2a1e0?})
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:172 +0x85
Sep 12 18:24:32 cpanel sing-box[3150]: github.com/sagernet/sing/common/task.(*Group).Run.func1()
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/task/task.go:59 +0x93
Sep 12 18:24:32 cpanel sing-box[3150]: created by github.com/sagernet/sing/common/task.(*Group).Run
Sep 12 18:24:32 cpanel sing-box[3150]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/task/task.go:58 +0x54a
Sep 12 18:24:32 cpanel systemd[1]: [email protected]: Main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 12 18:24:32 cpanel systemd[1]: [email protected]: Failed with result 'exit-code'.
Sep 12 18:24:32 cpanel systemd[1]: [email protected]: Consumed 1.417s CPU time.
Sep 12 18:24:33 cpanel systemd[1]: [email protected]: Scheduled restart job, restart counter is at 2.
Sep 12 18:24:33 cpanel systemd[1]: Stopped sing-box services of conf sing-box-wss.
Sep 12 18:24:33 cpanel systemd[1]: [email protected]: Consumed 1.417s CPU time.
Sep 12 18:24:33 cpanel systemd[1]: Started sing-box services of conf sing-box-wss.

from sing-box.

malikshi avatar malikshi commented on August 15, 2024

for geoip:google, did you tests with youtube udp/quic ipv4 and ipv6? its' not filtered by geoip:google. I am sorry if the texts/languages not in good manners

from sing-box.

nekohasekai avatar nekohasekai commented on August 15, 2024

Try ac225f0

from sing-box.

malikshi avatar malikshi commented on August 15, 2024

Try ac225f0

update go install -v -tags "with_acme with_clash_api with_quic with_grpc with_wireguard with_ech with_utls" github.com/sagernet/sing-box/cmd/sing-box@dev-next
still throwing error

Sep 12 21:43:42 cpanel sing-box[3259]: panic: runtime error: slice bounds out of range [:16] with capacity 0
Sep 12 21:43:42 cpanel sing-box[3259]: goroutine 3243 [running]:
Sep 12 21:43:42 cpanel sing-box[3259]: github.com/sagernet/sing/common/buf.(*Buffer).Bytes(...)
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/buf/buffer.go:357
Sep 12 21:43:42 cpanel sing-box[3259]: github.com/sagernet/sing-vmess.(*AEADReader).ReadBuffer(0xc0000419c0, 0xc0017155c0)
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/chunk_aead.go:60 +0x145
Sep 12 21:43:42 cpanel sing-box[3259]: github.com/sagernet/sing/common/bufio.(*ChunkReader).Read(0xc0013924a0, {0xc002650000, 0x8000, 0x7f8dac1d0e30?})
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/chunk.go:48 +0x114
Sep 12 21:43:42 cpanel sing-box[3259]: github.com/sagernet/sing-vmess.(*serverConn).Read(0x30?, {0xc002650000?, 0xc001715590?, 0x0?})
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/service.go:426 +0x27
Sep 12 21:43:42 cpanel sing-box[3259]: github.com/sagernet/sing-box/experimental/clashapi/trafficontrol.(*tcpTracker).Read(0xc001392520, {0xc002650000?, 0xc001f17b60?, 0xc001f179f8?})
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/experimental/clashapi/trafficontrol/tracker.go:58 +0x2e
Sep 12 21:43:42 cpanel sing-box[3259]: github.com/sagernet/sing/common/bufio.(*ExtendedReaderWrapper).ReadBuffer(0x116c4a0?, 0xc001715590)
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/conn.go:141 +0x59
Sep 12 21:43:42 cpanel sing-box[3259]: github.com/sagernet/sing/common/bufio.CopyExtendedBuffer({0x14b5120?, 0xc0002df240}, {0x14b50f8, 0xc0002df2c0}, 0xc001f17b60)
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:93 +0x1ad
Sep 12 21:43:42 cpanel sing-box[3259]: github.com/sagernet/sing/common/bufio.CopyExtended({0x14b5120?, 0xc0002df240}, {0x14b50f8?, 0xc0002df2c0})
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:80 +0x2d4
Sep 12 21:43:42 cpanel sing-box[3259]: github.com/sagernet/sing/common/bufio.Copy({0x14b0560, 0xc0002df1f0}, {0x7f8dac25e348?, 0xc001392520?})
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:56 +0x2af
Sep 12 21:43:42 cpanel sing-box[3259]: github.com/sagernet/sing/common/bufio.(*readOnlyReader).WriteTo(0x10?, {0x14b0560?, 0xc0002df1f0?})
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:23 +0x33
Sep 12 21:43:42 cpanel sing-box[3259]: io.copyBuffer({0x14b0560, 0xc0002df1f0}, {0x14ac980, 0xc0002df1c0}, {0x0, 0x0, 0x0})
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/.go/src/io/io.go:409 +0x16e
Sep 12 21:43:42 cpanel sing-box[3259]: io.Copy(...)
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/.go/src/io/io.go:386
Sep 12 21:43:42 cpanel sing-box[3259]: net.genericReadFrom({0x14aebc0?, 0xc000015580?}, {0x14ac980, 0xc0002df1c0})
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/.go/src/net/net.go:675 +0x6a
Sep 12 21:43:42 cpanel sing-box[3259]: net.(*TCPConn).readFrom(0xc000015580, {0x14ac980, 0xc0002df1c0})
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/.go/src/net/tcpsock_posix.go:54 +0x78
Sep 12 21:43:42 cpanel sing-box[3259]: net.(*TCPConn).ReadFrom(0xc000015580, {0x14ac980?, 0xc0002df1c0?})
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/.go/src/net/tcpsock.go:130 +0x36
Sep 12 21:43:42 cpanel sing-box[3259]: github.com/sagernet/sing/common/bufio.Copy({0x14aebc0, 0xc000015580}, {0x7f8dac25e348?, 0xc001392520?})
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:54 +0x1bd
Sep 12 21:43:42 cpanel sing-box[3259]: github.com/sagernet/sing/common/bufio.CopyConn.func1({0x100010000?, 0xc00031e960?})
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:172 +0x85
Sep 12 21:43:42 cpanel sing-box[3259]: github.com/sagernet/sing/common/task.(*Group).Run.func1()
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/task/task.go:59 +0x93
Sep 12 21:43:42 cpanel sing-box[3259]: created by github.com/sagernet/sing/common/task.(*Group).Run
Sep 12 21:43:42 cpanel sing-box[3259]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/task/task.go:58 +0x54a

from sing-box.

nekohasekai avatar nekohasekai commented on August 15, 2024

Try 15aedc6

from sing-box.

malikshi avatar malikshi commented on August 15, 2024

Try 15aedc6

still same error. did i miss something?

Sep 12 22:23:50 cpanel nginx-rc[4719]: panic: runtime error: slice bounds out of range [:40] with capacity 0
Sep 12 22:23:50 cpanel nginx-rc[4719]: goroutine 2438 [running]:
Sep 12 22:23:50 cpanel nginx-rc[4719]: github.com/sagernet/sing/common/buf.(*Buffer).Bytes(...)
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/buf/buffer.go:357
Sep 12 22:23:50 cpanel nginx-rc[4719]: github.com/sagernet/sing-vmess.(*AEADReader).ReadBuffer(0xc0018f0a00, 0xc000752db0)
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/chunk_aead.go:60 +0x145
Sep 12 22:23:50 cpanel nginx-rc[4719]: github.com/sagernet/sing/common/bufio.(*ChunkReader).Read(0xc000589a60, {0xc0011f8000, 0x8000, 0x7ff4a316b168?})
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/chunk.go:48 +0x114
Sep 12 22:23:50 cpanel nginx-rc[4719]: github.com/sagernet/sing-vmess.(*serverConn).Read(0x30?, {0xc0011f8000?, 0xc000752d80?, 0x0?})
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/service.go:426 +0x27
Sep 12 22:23:50 cpanel nginx-rc[4719]: github.com/sagernet/sing-box/experimental/clashapi/trafficontrol.(*tcpTracker).Read(0xc000589ac0, {0xc0011f8000?, 0xc0002bfb60?, 0xc0002bf9f8?})
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/experimental/clashapi/trafficontrol/tracker.go:58 +0x2e
Sep 12 22:23:50 cpanel nginx-rc[4719]: github.com/sagernet/sing/common/bufio.(*ExtendedReaderWrapper).ReadBuffer(0x116c4a0?, 0xc000752d80)
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/conn.go:141 +0x59
Sep 12 22:23:50 cpanel nginx-rc[4719]: github.com/sagernet/sing/common/bufio.CopyExtendedBuffer({0x14b5120?, 0xc000113500}, {0x14b50f8, 0xc000113510}, 0xc0002bfb60)
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:93 +0x1ad
Sep 12 22:23:50 cpanel nginx-rc[4719]: github.com/sagernet/sing/common/bufio.CopyExtended({0x14b5120?, 0xc000113500}, {0x14b50f8?, 0xc000113510})
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:80 +0x2d4
Sep 12 22:23:50 cpanel nginx-rc[4719]: github.com/sagernet/sing/common/bufio.Copy({0x14b0560, 0xc0001134f0}, {0x7ff4a323b740?, 0xc000589ac0?})
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:56 +0x2af
Sep 12 22:23:50 cpanel nginx-rc[4719]: github.com/sagernet/sing/common/bufio.(*readOnlyReader).WriteTo(0x10?, {0x14b0560?, 0xc0001134f0?})
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:23 +0x33
Sep 12 22:23:50 cpanel nginx-rc[4719]: io.copyBuffer({0x14b0560, 0xc0001134f0}, {0x14ac980, 0xc0001134b0}, {0x0, 0x0, 0x0})
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/.go/src/io/io.go:409 +0x16e
Sep 12 22:23:50 cpanel nginx-rc[4719]: io.Copy(...)
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/.go/src/io/io.go:386
Sep 12 22:23:50 cpanel nginx-rc[4719]: net.genericReadFrom({0x14aebc0?, 0xc000125258?}, {0x14ac980, 0xc0001134b0})
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/.go/src/net/net.go:675 +0x6a
Sep 12 22:23:50 cpanel nginx-rc[4719]: net.(*TCPConn).readFrom(0xc000125258, {0x14ac980, 0xc0001134b0})
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/.go/src/net/tcpsock_posix.go:54 +0x78
Sep 12 22:23:50 cpanel nginx-rc[4719]: net.(*TCPConn).ReadFrom(0xc000125258, {0x14ac980?, 0xc0001134b0?})
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/.go/src/net/tcpsock.go:130 +0x36
Sep 12 22:23:50 cpanel nginx-rc[4719]: github.com/sagernet/sing/common/bufio.Copy({0x14aebc0, 0xc000125258}, {0x7ff4a323b740?, 0xc000589ac0?})
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:54 +0x1bd
Sep 12 22:23:50 cpanel nginx-rc[4719]: github.com/sagernet/sing/common/bufio.CopyConn.func1({0x14be001?, 0xc0018f0d40?})
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:172 +0x85
Sep 12 22:23:50 cpanel nginx-rc[4719]: github.com/sagernet/sing/common/task.(*Group).Run.func1()
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/task/task.go:59 +0x93
Sep 12 22:23:50 cpanel nginx-rc[4719]: created by github.com/sagernet/sing/common/task.(*Group).Run
Sep 12 22:23:50 cpanel nginx-rc[4719]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/task/task.go:58 +0x54a
Sep 12 22:23:50 cpanel systemd[1]: [email protected]: Main process exited, code=exited, status=2/INVALIDARGUMENT

from sing-box.

nekohasekai avatar nekohasekai commented on August 15, 2024

Can you provide minimum reproduction scenarios?

from sing-box.

malikshi avatar malikshi commented on August 15, 2024

Can you provide minimum reproduction scenarios?

let me try with one users so it's much more easier to track?

from sing-box.

nekohasekai avatar nekohasekai commented on August 15, 2024

Can you provide minimum reproduction scenarios?

let me try with one users so it's much more easier to track?

Delete configuration items that do not affect the error.

from sing-box.

malikshi avatar malikshi commented on August 15, 2024

Delete configuration items that do not affect the error.

i did same config with decreasing ws path in V2ray Transport, somehow doesn't throw error for 40min. from 25+ character into 12 characters, isn't matter? do i need to enable mux in server? i can't whatsapp call and i saw bunch of error mux unsupported
Cuplikan layar dari 2022-09-12 23-20-35

edited:
it's seem v2rayNG enabled mux by default, i tried on sagernet app with disabling mux work to call via whatsapp

from sing-box.

malikshi avatar malikshi commented on August 15, 2024

@nekohasekai i did minimized the route setting, whenever i add

    {
         "ip_version":6,
         "outbound": "sock-out"
      }

and try access websites that offer ipv6 test/checker, the error will popout in syslog

Sep 13 00:07:48 cpanel sing-box[5451]: panic: runtime error: slice bounds out of range [:16] with capacity 0
Sep 13 00:07:48 cpanel sing-box[5451]: goroutine 387 [running]:
Sep 13 00:07:48 cpanel sing-box[5451]: github.com/sagernet/sing/common/buf.(*Buffer).Bytes(...)
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/buf/buffer.go:357
Sep 13 00:07:48 cpanel sing-box[5451]: github.com/sagernet/sing-vmess.(*AEADReader).ReadBuffer(0xc000d00200, 0xc000afd860)
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/chunk_aead.go:60 +0x145
Sep 13 00:07:48 cpanel sing-box[5451]: github.com/sagernet/sing/common/bufio.(*ChunkReader).Read(0xc00077ab20, {0xc000d88000, 0x8000, 0x7f5e3c0e5630?})
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/chunk.go:48 +0x114
Sep 13 00:07:48 cpanel sing-box[5451]: github.com/sagernet/sing-vmess.(*serverConn).Read(0x30?, {0xc000d88000?, 0xc000afd7d0?, 0x0?})
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/service.go:426 +0x27
Sep 13 00:07:48 cpanel sing-box[5451]: github.com/sagernet/sing-box/experimental/clashapi/trafficontrol.(*tcpTracker).Read(0xc00077ab40, {0xc000d88000?, 0xc000ad1b60?, 0xc000ad19f8?})
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/experimental/clashapi/trafficontrol/tracker.go:58 +0x2e
Sep 13 00:07:48 cpanel sing-box[5451]: github.com/sagernet/sing/common/bufio.(*ExtendedReaderWrapper).ReadBuffer(0x116c4a0?, 0xc000afd7d0)
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/conn.go:141 +0x59
Sep 13 00:07:48 cpanel sing-box[5451]: github.com/sagernet/sing/common/bufio.CopyExtendedBuffer({0x14b5120?, 0xc00004c5f0}, {0x14b50f8, 0xc00004c610}, 0xc000ad1b60)
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:93 +0x1ad
Sep 13 00:07:48 cpanel sing-box[5451]: github.com/sagernet/sing/common/bufio.CopyExtended({0x14b5120?, 0xc00004c5f0}, {0x14b50f8?, 0xc00004c610})
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:80 +0x2d4
Sep 13 00:07:48 cpanel sing-box[5451]: github.com/sagernet/sing/common/bufio.Copy({0x14b0560, 0xc00004c5e0}, {0x7f5e3c1181a8?, 0xc00077ab40?})
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:56 +0x2af
Sep 13 00:07:48 cpanel sing-box[5451]: github.com/sagernet/sing/common/bufio.(*readOnlyReader).WriteTo(0x10?, {0x14b0560?, 0xc00004c5e0?})
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:23 +0x33
Sep 13 00:07:48 cpanel sing-box[5451]: io.copyBuffer({0x14b0560, 0xc00004c5e0}, {0x14ac980, 0xc00004c590}, {0x0, 0x0, 0x0})
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/.go/src/io/io.go:409 +0x16e
Sep 13 00:07:48 cpanel sing-box[5451]: io.Copy(...)
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/.go/src/io/io.go:386
Sep 13 00:07:48 cpanel sing-box[5451]: net.genericReadFrom({0x14aebc0?, 0xc000124ef8?}, {0x14ac980, 0xc00004c590})
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/.go/src/net/net.go:675 +0x6a
Sep 13 00:07:48 cpanel sing-box[5451]: net.(*TCPConn).readFrom(0xc000124ef8, {0x14ac980, 0xc00004c590})
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/.go/src/net/tcpsock_posix.go:54 +0x78
Sep 13 00:07:48 cpanel sing-box[5451]: net.(*TCPConn).ReadFrom(0xc000124ef8, {0x14ac980?, 0xc00004c590?})
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/.go/src/net/tcpsock.go:130 +0x36
Sep 13 00:07:48 cpanel sing-box[5451]: github.com/sagernet/sing/common/bufio.Copy({0x14aebc0, 0xc000124ef8}, {0x7f5e3c1181a8?, 0xc00077ab40?})
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:54 +0x1bd
Sep 13 00:07:48 cpanel sing-box[5451]: github.com/sagernet/sing/common/bufio.CopyConn.func1({0x1d60b01?, 0xc000ad1f68?})
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/copy.go:172 +0x85
Sep 13 00:07:48 cpanel sing-box[5451]: github.com/sagernet/sing/common/task.(*Group).Run.func1()
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/task/task.go:59 +0x93
Sep 13 00:07:48 cpanel sing-box[5451]: created by github.com/sagernet/sing/common/task.(*Group).Run
Sep 13 00:07:48 cpanel sing-box[5451]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/task/task.go:58 +0x54a

edited:
yes still give me error.
edited 2:
only placed dns-out in route, still got error.

{
        "protocol": "dns",
        "outbound": "dns-out"
}

edited 3:
i think it's has something to do with the rules, even thought i setup like this below, it's won't filtered by geosite and geoip. Enable sniffing true fix filter/rules

{
        "protocol": "dns",
        "outbound": "dns-out"
},
{
        "geosite": "google",
        "geoip": "google",
        "outbound": "GOOGLE"
}

Edit 4:
I deleted clash api setting in config. now it's have different syslog error

Sep 13 02:21:20 cpanel sing-box[7917]: panic: concurrent write to websocket connection
Sep 13 02:21:20 cpanel sing-box[7917]: goroutine 45 [running]:
Sep 13 02:21:20 cpanel sing-box[7917]: github.com/gorilla/websocket.(*messageWriter).flushFrame(0xc00029fc58, 0x1, {0xc0003004c0?, 0xf0fcff92f40d6b1c?, 0xbbe66be6796?})
Sep 13 02:21:20 cpanel sing-box[7917]: #011/root/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:617 +0x52b
Sep 13 02:21:20 cpanel sing-box[7917]: github.com/gorilla/websocket.(*Conn).WriteMessage(0xc0000ec160, 0x4cb5ba?, {0xc0003003fe, 0xc2, 0x3c02})
Sep 13 02:21:20 cpanel sing-box[7917]: #011/root/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:770 +0x139
Sep 13 02:21:20 cpanel sing-box[7917]: github.com/sagernet/sing-box/transport/v2raywebsocket.(*WebsocketConn).Write(0x0?, {0xc0003003fe?, 0xc2, 0x57f78f?})
Sep 13 02:21:20 cpanel sing-box[7917]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/transport/v2raywebsocket/conn.go:52 +0x38
Sep 13 02:21:20 cpanel sing-box[7917]: github.com/sagernet/sing/common/bufio.(*ExtendedWriterWrapper).WriteBuffer(0xc0004ad5f0?, 0x14ab5a0?)
Sep 13 02:21:20 cpanel sing-box[7917]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/conn.go:174 +0x93
Sep 13 02:21:20 cpanel sing-box[7917]: github.com/sagernet/sing-vmess.(*StreamChunkWriter).WriteBuffer(0xc0004ac330, 0xc0004ad5f0)
Sep 13 02:21:20 cpanel sing-box[7917]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/chunk_length_stream.go:148 +0x207
Sep 13 02:21:20 cpanel sing-box[7917]: github.com/sagernet/sing-vmess.(*AEADWriter).WriteBuffer(0xc000040b80, 0xc0004ad5f0)
Sep 13 02:21:20 cpanel sing-box[7917]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/chunk_aead.go:120 +0x107
Sep 13 02:21:20 cpanel sing-box[7917]: github.com/sagernet/sing/common/bufio.(*ChunkWriter).WriteBuffer(0x7f079444d6f8?, 0x8?)
Sep 13 02:21:20 cpanel sing-box[7917]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/chunk.go:106 +0xe4
Sep 13 02:21:20 cpanel sing-box[7917]: github.com/sagernet/sing-vmess.(*serverPacketConn).WritePacket(0x8180072d004ad5f0?, 0x100010001?, {{{0x0, 0xffff01010101}, 0xc000012030}, 0x35, {0x0, 0x0}})
Sep 13 02:21:20 cpanel sing-box[7917]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/service.go:510 +0x66
Sep 13 02:21:20 cpanel sing-box[7917]: github.com/sagernet/sing-box/outbound.(*DNS).NewPacketConnection.func1.1()
Sep 13 02:21:20 cpanel sing-box[7917]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/outbound/dns.go:140 +0x203
Sep 13 02:21:20 cpanel sing-box[7917]: created by github.com/sagernet/sing-box/outbound.(*DNS).NewPacketConnection.func1
Sep 13 02:21:20 cpanel sing-box[7917]: #011/root/go/pkg/mod/github.com/sagernet/[email protected]/outbound/dns.go:127 +0x17d
Sep 13 02:21:20 cpanel systemd[1]: [email protected]: Main process exited, code=exited, status=2/INVALIDARGUMENT

from sing-box.

nekohasekai avatar nekohasekai commented on August 15, 2024

Try 944a27b

Also, please provide bug reports for a specific feature and exclude others.

from sing-box.

malikshi avatar malikshi commented on August 15, 2024

Try 944a27b

server been running for 3 hours no error shown up.

Also, please provide bug reports for a specific feature and exclude others.

Noted, i will do that if submit another issues!

from sing-box.

malikshi avatar malikshi commented on August 15, 2024

Thank you for the updates 2373281 Fixed store_selected in clash api.

from sing-box.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.