Open Nisthar opened 1 year ago
can you pls check this? @deepch
I'm having the same problem... Seems to be related to IPv6... not sure... Any ideas?
github.com/gin-gonic/gin.(*Context).Next(...) /root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173 main.CrossOrigin.func1(0xc000412d00) /workspace/apiHTTPRouter.go:296 +0x2f9 github.com/gin-gonic/gin.(*Context).Next(...) /root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc0005004e0, 0xc000412d00) /root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:616 +0x671 github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc0005004e0, {0xd1a098, 0xc0004a81c0}, 0xc000684d00) /root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:572 +0x1dd net/http.serverHandler.ServeHTTP({0xc0003dc570}, {0xd1a098, 0xc0004a81c0}, 0xc000684d00) /usr/lib/go/src/net/http/server.go:2879 +0x43b net/http.(*conn).serve(0xc00012f0e0, {0xd20d80, 0xc000366990}) /usr/lib/go/src/net/http/server.go:1930 +0xb08 created by net/http.(*Server).Serve /usr/lib/go/src/net/http/server.go:3034 +0x4e8 2023/03/20 22:14:16 http: panic serving [:IPv6_removed:]:56877: runtime error: invalid memory address or nil pointer dereference goroutine 131 [running]: net/http.(*conn).serve.func1() /usr/lib/go/src/net/http/server.go:1802 +0xb9 panic({0xb35fa0, 0x11e5790}) /usr/lib/go/src/runtime/panic.go:1047 +0x266 main.(*MuxerHLS).GetIndexM3u8(0x0, 0xffffffffffffffff, 0xffffffffffffffff) /workspace/hlsMuxer.go:158 +0x27 main.(*StorageST).HLSMuxerM3U8(0xc0004bc000, {0xc00004118c, 0x10}, {0xc0000411a5, 0x1}, 0x5851, 0xd0d3a0) /workspace/storageStreamChannel.go:400 +0x1b6 main.HTTPAPIServerStreamHLSLLM3U8(0xc000412800) /workspace/apiHTTPHLSLL.go:83 +0x496 github.com/gin-gonic/gin.(*Context).Next(...) /root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173 main.CrossOrigin.func1(0xc000412800) /workspace/apiHTTPRouter.go:296 +0x2f9 github.com/gin-gonic/gin.(*Context).Next(...) /root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc0005004e0, 0xc000412800) /root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:616 +0x671 github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc0005004e0, {0xd1a098, 0xc0003b6460}, 0xc000413000) /root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:572 +0x1dd net/http.serverHandler.ServeHTTP({0xc0002bb380}, {0xd1a098, 0xc0003b6460}, 0xc000413000) /usr/lib/go/src/net/http/server.go:2879 +0x43b net/http.(*conn).serve(0xc0003de320, {0xd20d80, 0xc000366990}) /usr/lib/go/src/net/http/server.go:1930 +0xb08 created by net/http.(*Server).Serve /usr/lib/go/src/net/http/server.go:3034 +0x4e8 2023/03/20 22:14:16 http: panic serving [:IPv6_Removed:]:56879: runtime error: invalid memory address or nil pointer dereference goroutine 105 [running]: net/http.(*conn).serve.func1() /usr/lib/go/src/net/http/server.go:1802 +0xb9 panic({0xb35fa0, 0x11e5790}) /usr/lib/go/src/runtime/panic.go:1047 +0x266 main.(*MuxerHLS).GetIndexM3u8(0x0, 0xffffffffffffffff, 0xffffffffffffffff) /workspace/hlsMuxer.go:158 +0x27 main.(*StorageST).HLSMuxerM3U8(0xc0004bc000, {0xc00012087c, 0x10}, {0xc000120895, 0x1}, 0x0, 0x0) /workspace/storageStreamChannel.go:400 +0x1b6 main.HTTPAPIServerStreamHLSLLM3U8(0xc000685100) /workspace/apiHTTPHLSLL.go:83 +0x496 github.com/gin-gonic/gin.(*Context).Next(...) /root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173 main.CrossOrigin.func1(0xc000685100) /workspace/apiHTTPRouter.go:296 +0x2f9 github.com/gin-gonic/gin.(*Context).Next(...) /root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc0005004e0, 0xc000685100) /root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:616 +0x671 github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc0005004e0, {0xd1a098, 0xc000168b60}, 0xc000685000) /root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:572 +0x1dd net/http.serverHandler.ServeHTTP({0xc0003dd9b0}, {0xd1a098, 0xc000168b60}, 0xc000685000) /usr/lib/go/src/net/http/server.go:2879 +0x43b net/http.(*conn).serve(0xc00012f220, {0xd20d80, 0xc000366990}) /usr/lib/go/src/net/http/server.go:1930 +0xb08 created by net/http.(*Server).Serve /usr/lib/go/src/net/http/server.go:3034 +0x4e8 2023/03/20 22:14:17 http: panic serving [:IPv6_removed:]:56882: runtime error: invalid memory address or nil pointer dereference goroutine 107 [running]: net/http.(*conn).serve.func1() /usr/lib/go/src/net/http/server.go:1802 +0xb9 panic({0xb35fa0, 0x11e5790}) /usr/lib/go/src/runtime/panic.go:1047 +0x266 main.(*MuxerHLS).GetIndexM3u8(0x0, 0xffffffffffffffff, 0xffffffffffffffff) /workspace/hlsMuxer.go:158 +0x27 main.(*StorageST).HLSMuxerM3U8(0xc0004bc000, {0xc00053423c, 0x10}, {0xc000534255, 0x1}, 0x0, 0x0) /workspace/storageStreamChannel.go:400 +0x1b6 main.HTTPAPIServerStreamHLSLLM3U8(0xc0001dcb00) /workspace/apiHTTPHLSLL.go:83 +0x496 github.com/gin-gonic/gin.(*Context).Next(...) /root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173 main.CrossOrigin.func1(0xc0001dcb00) /workspace/apiHTTPRouter.go:296 +0x2f9 github.com/gin-gonic/gin.(*Context).Next(...) /root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc0005004e0, 0xc0001dcb00) /root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:616 +0x671 github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc0005004e0, {0xd1a098, 0xc0004a8460}, 0xc000685200) /root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:572 +0x1dd net/http.serverHandler.ServeHTTP({0xc0005fc090}, {0xd1a098, 0xc0004a8460}, 0xc000685200) /usr/lib/go/src/net/http/server.go:2879 +0x43b net/http.(*conn).serve(0xc00012f360, {0xd20d80, 0xc000366990}) /usr/lib/go/src/net/http/server.go:1930 +0xb08 created by net/http.(*Server).Serve /usr/lib/go/src/net/http/server.go:3034 +0x4e8
same issue here, might be similar with #87
invalid memory address or nil pointer dereference
Hi,
I have a rtsp stream, which I can play successfully with VLC media player. Unfortunately it does not work with RTSPToWeb, here is my log, please let me know if you need additional information: