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: index out of range [0] with length 0 #390

Closed
nejcmedved opened this issue Apr 28, 2023 · 3 comments
Closed

panic: runtime error: index out of range [0] with length 0 #390

nejcmedved opened this issue Apr 28, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@nejcmedved
Copy link

Hi,

I have an issue with getting error when I try to open mp4 stream

http://{go2rtcip}:1984/stream.html?src={camera_name}

error says:

panic: runtime error: index out of range [0] with length 0

goroutine 391 [running]:
github.com/deepch/vdk/codec/h265parser.AVCDecoderConfRecord.Marshal({0x1, 0x60, 0x0, 0x3, {0xc0002ed038, 0x1, 0x1}, {0xc0002eccc0, 0x1, 0x1}, ...}, ...)
        github.com/deepch/vdk@v0.0.19/codec/h265parser/parser.go:634 +0x65c
github.com/deepch/vdk/codec/h265parser.NewCodecDataFromVPSAndSPSAndPPS({_, _, _}, {_, _, _}, {_, _, _})
        github.com/deepch/vdk@v0.0.19/codec/h265parser/parser.go:515 +0x425
github.com/AlexxIT/go2rtc/pkg/mp4.(*Muxer).GetInit(0xc00101ee10, {0xc000431678, 0x1, 0x1?})
        github.com/AlexxIT/go2rtc/pkg/mp4/muxer.go:93 +0x3bb
github.com/AlexxIT/go2rtc/pkg/mp4.(*Consumer).Init(0xc0002a67e0)
        github.com/AlexxIT/go2rtc/pkg/mp4/consumer.go:181 +0xcd
github.com/AlexxIT/go2rtc/cmd/mp4.handlerWSMSE(0xc00101ed20, 0xc000515860)
        github.com/AlexxIT/go2rtc/cmd/mp4/ws.go:47 +0x4b2
github.com/AlexxIT/go2rtc/cmd/api.apiWS.func2()
        github.com/AlexxIT/go2rtc/cmd/api/ws.go:111 +0x3f
created by github.com/AlexxIT/go2rtc/cmd/api.apiWS
        github.com/AlexxIT/go2rtc/cmd/api/ws.go:110 +0x398

I am using version 1.4.0

The issue is appearing only on one or two out of 20 cameras.

Thanks for help in advance,

Nejc

@AlexxIT AlexxIT added the bug Something isn't working label Apr 29, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Apr 29, 2023

I think problem same #384
You can try latest master version

@AlexxIT AlexxIT self-assigned this Apr 29, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented May 4, 2023

@AlexxIT AlexxIT closed this as completed May 4, 2023
@nejcmedved
Copy link
Author

Hi,

we have tried latest master docker image this morning. Works great!

Thanks for solving, Nejc

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