Monibuca / plugin-gb28181

gb28181 plugin for monibuca
GNU Affero General Public License v3.0
146 stars 95 forks source link

panic错误 #84

Closed hydaizd closed 11 months ago

hydaizd commented 1 year ago
panic: runtime error: slice bounds out of range [:9] with length 0

goroutine 1616 [running]:
m7s.live/plugin/gb28181/v4.(*Channel).CreateRequst(0xc0013ae1c0, {0xe6cbab, 0x6})
    /go/pkg/mod/m7s.live/plugin/gb28181/v4@v4.1.5/channel.go:100 +0x725
m7s.live/plugin/gb28181/v4.(*Channel).Invite(0xc0013ae1c0, {0x0, 0x0, {0x0, 0x0}, {0xc000804b50, 0xa}, 0xbebd2f1, 0xe358})
    /go/pkg/mod/m7s.live/plugin/gb28181/v4@v4.1.5/channel.go:358 +0xbbc
created by m7s.live/plugin/gb28181/v4.(*Device).UpdateChannels
    /go/pkg/mod/m7s.live/plugin/gb28181/v4@v4.1.5/device.go:245 +0x9b6
charlestamz commented 1 year ago

Please manually pull the plugin-gb28181 to latest version of v4 and recompile the whole m7s proejct. It should fix.

hydaizd commented 1 year ago

升级到最新后,摄像头不能播放录像了,一直报timeout

14:51:30        INFO    ⌛->🔴   {"stream": "37070000081111268288/37070000081311268288", "action": "timeout"}
14:51:31        INFO    subscribe       {"plugin": "Snap", "path": "37070000081111268288/37070000081311268288"}
14:51:31        INFO    created {"stream": "37070000081111268288/37070000081311268288"}
14:51:31        INFO    innersuber +1   {"stream": "37070000081111268288/37070000081311268288", "type": "SnapSubscriber", "ID": "10.0.3.74:63999", "remains": 1}
14:51:31        INFO    subscribe       {"plugin": "WebRTC", "path": "37070000081111268288/37070000081311268288"}
14:51:31        INFO    suber +1        {"stream": "37070000081111268288/37070000081311268288", "type": "WebRTCSubscriber", "remains": 1}
14:51:41        INFO    ⌛->🔴   {"stream": "37070000081111268288/37070000081311268288", "action": "timeout"}
14:51:42        INFO    subscribe       {"plugin": "WebRTC", "path": "37070000081111268288/37070000081311268288"}
14:51:42        INFO    created {"stream": "37070000081111268288/37070000081311268288"}
14:51:42        INFO    suber +1        {"stream": "37070000081111268288/37070000081311268288", "type": "WebRTCSubscriber", "remains": 1}
14:51:52        INFO    ⌛->🔴   {"stream": "37070000081111268288/37070000081311268288", "action": "timeout"}
14:51:53        INFO    subscribe       {"plugin": "Snap", "path": "37070000081111268288/37070000081311268288"}
14:51:53        INFO    created {"stream": "37070000081111268288/37070000081311268288"}
14:51:53        INFO    innersuber +1   {"stream": "37070000081111268288/37070000081311268288", "type": "SnapSubscriber", "ID": "10.0.3.74:64066", "remains": 1}
14:51:53        INFO    subscribe       {"plugin": "WebRTC", "path": "37070000081111268288/37070000081311268288"}
14:51:53        INFO    suber +1        {"stream": "37070000081111268288/37070000081311268288", "type": "WebRTCSubscriber", "remains": 1}
14:52:03        INFO    ⌛->🔴   {"stream": "37070000081111268288/37070000081311268288", "action": "timeout"}
14:52:04        INFO    subscribe       {"plugin": "Snap", "path": "37070000081111268288/37070000081311268288"}
14:52:04        INFO    created {"stream": "37070000081111268288/37070000081311268288"}
14:52:04        INFO    innersuber +1   {"stream": "37070000081111268288/37070000081311268288", "type": "SnapSubscriber", "ID": "10.0.3.74:64102", "remains": 1}
14:52:04        INFO    subscribe       {"plugin": "WebRTC", "path": "37070000081111268288/37070000081311268288"}
14:52:04        INFO    suber +1        {"stream": "37070000081111268288/37070000081311268288", "type": "WebRTCSubscriber", "remains": 1}
14:52:14        INFO    ⌛->🔴   {"stream": "37070000081111268288/37070000081311268288", "action": "timeout"}
langhuihui commented 1 year ago

直播流是正常的?

hydaizd commented 1 year ago

就是支持gb28181摄像头推过来的rtp直播流,使用webrtc播放,一直timeout,播放不出来,没升级之前是能正常播放的,我回退到之前的版本又正常了,应该是新版哪里有问题.

langhuihui commented 1 year ago

加微信吧yigehui