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 [:8192] with capacity 4096 #47

Closed
calisro opened this issue Sep 18, 2022 · 5 comments
Closed
Labels
bug Something isn't working
Milestone

Comments

@calisro
Copy link

calisro commented Sep 18, 2022

Seeing these quite frequently. I didn't see these reported but if they have, please close as duplicate.

panic: runtime error: slice bounds out of range [:8192] with capacity 4096
goroutine 500 [running]:
bufio.(*Reader).ReadSlice(0x4000460ea0, 0xc?)
	bufio/bufio.go:346 +0x230
bufio.(*Reader).ReadLine(0x4000460ea0)
	bufio/bufio.go:400 +0x28
net/textproto.(*Reader).readLineSlice(0x400009fe20)
	net/textproto/reader.go:57 +0x7c
net/textproto.(*Reader).ReadLine(...)
	net/textproto/reader.go:38
github.com/AlexxIT/go2rtc/pkg/tcp.ReadRequest(0x4000460ea0)
	github.com/AlexxIT/go2rtc/pkg/tcp/textproto.go:115 +0x68
github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0x4000106f70)
	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:628 +0x11c
github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Start(0x4000106f70)
	github.com/AlexxIT/go2rtc/pkg/rtsp/streamer.go:37 +0x9c
github.com/AlexxIT/go2rtc/cmd/streams.(*Producer).start.func1()
	github.com/AlexxIT/go2rtc/cmd/streams/producer.go:93 +0x34
created by github.com/AlexxIT/go2rtc/cmd/streams.(*Producer).start
	github.com/AlexxIT/go2rtc/cmd/streams/producer.go:92 +0x168
@calisro
Copy link
Author

calisro commented Sep 18, 2022

Oh I see this is a duplicate.

@calisro calisro closed this as completed Sep 18, 2022
@calisro
Copy link
Author

calisro commented Sep 18, 2022

#44

@AlexxIT AlexxIT added the bug Something isn't working label Sep 19, 2022
@AlexxIT AlexxIT reopened this Sep 19, 2022
@AlexxIT
Copy link
Owner

AlexxIT commented Sep 19, 2022

This is not duplicate. Some problems while reading data from RTSP

@AlexxIT AlexxIT added this to the v0.1-rc.3 milestone Nov 13, 2022
@AlexxIT
Copy link
Owner

AlexxIT commented Jan 1, 2023

Almost same:

panic: runtime error: slice bounds out of range [:4380] with capacity 4096

goroutine 202 [running]:
bufio.(*Reader).Read(0x400057a1e0, {0x40000ba770?, 0x432?, 0x7ff7757db4fc?})
        .../bufio/bufio.go:250 +0x34c
io.ReadAtLeast({0x7ff775c82340, 0x400057a1e0}, {0x40000ba680, 0x522, 0x522}, 0x522)
        .../io/io.go:332 +0xa8
io.ReadFull(...)
        .../io/io.go:351
github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0x4000096270)
        .../go2rtc/pkg/rtsp/conn.go:715 +0x2f4
github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Start(0x4000096270?)
        .../go2rtc/pkg/rtsp/streamer.go:47 +0x8c
github.com/AlexxIT/go2rtc/cmd/streams.(*Producer).start.func1()
        .../go2rtc/cmd/streams/producer.go:104 +0x30
created by github.com/AlexxIT/go2rtc/cmd/streams.(*Producer).start
        .../go2rtc/cmd/streams/producer.go:102 +0x174

@AlexxIT AlexxIT modified the milestones: v0.1-rc.X, v0.1-rc.7 Jan 8, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Jan 8, 2023

I hope problem fixed in https://github.com/AlexxIT/go2rtc/releases/tag/v0.1-rc.7
If not, please reopen issue.

@AlexxIT AlexxIT closed this as completed Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants