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

Crash when creating new streams #1394

Open
franconoronha opened this issue Oct 11, 2024 · 2 comments
Open

Crash when creating new streams #1394

franconoronha opened this issue Oct 11, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@franconoronha
Copy link

franconoronha commented Oct 11, 2024

My server has been crashing when I try to create multiple streams through the API. Wondering if it's fixable or if I should I just space them out.
Logs:

fatal error: concurrent map writes
fatal error: concurrent map writes
fatal error: concurrent map writes
goroutine 35 [running]:
github.com/AlexxIT/go2rtc/internal/streams.New({0xc000704016, 0x3}, {0xc000618150, 0x68})
        github.com/AlexxIT/go2rtc/internal/streams/streams.go:65 +0x7d
github.com/AlexxIT/go2rtc/internal/streams.apiStreams({0xc48df0, 0xc00061a0e0}, 0xc00029e480)
        github.com/AlexxIT/go2rtc/internal/streams/api.go:51 +0x2d9
net/http.HandlerFunc.ServeHTTP(0x112b060?, {0xc48df0?, 0xc00061a0e0?}, 0xb333c4?)
        net/http/server.go:2166 +0x29
net/http.(*ServeMux).ServeHTTP(0xc00060c120?, {0xc48df0, 0xc00061a0e0}, 0xc00029e480)
        net/http/server.go:2683 +0x1ad
github.com/AlexxIT/go2rtc/internal/api.Init.middlewareCORS.func1({0xc48df0, 0xc00061a0e0}, 0xc00029e480)
        github.com/AlexxIT/go2rtc/internal/api/api.go:220 +0xd5
net/http.HandlerFunc.ServeHTTP(0x309339?, {0xc48df0?, 0xc00061a0e0?}, 0xc0001d9b68?)
        net/http/server.go:2166 +0x29
net/http.serverHandler.ServeHTTP({0xc00028c3c0?}, {0xc48df0?, 0xc00061a0e0?}, 0x6?)
        net/http/server.go:3137 +0x8e
net/http.(*conn).serve(0xc000232090, {0xc4a440, 0xc000200270})
        net/http/server.go:2039 +0x5e8
created by net/http.(*Server).Serve in goroutine 6
        net/http/server.go:3285 +0x4b4
@AlexxIT AlexxIT added the bug Something isn't working label Oct 11, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Oct 11, 2024

I think this is already fixed in master version #1355

@AlexxIT AlexxIT self-assigned this Oct 11, 2024
@franconoronha
Copy link
Author

Should have checked better if It was pointed out already, sorry. Ty!

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