You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MediaMTX crashes after sending PATCH request that enables recording for path with sourceOnDemand true.
Expected behavior should be automatically changing sourceOnDemand from value true to false, when we send { "record": true } request body. Another option is returning exception from API with message saying something like "you cannot start recording on camera with source on demand".
Describe how to replicate the issue
Start the server.
Add path with properties source, sourceOnDemand (true) and sourceOnDemandCloseAfter (through API).
Send PATCH request with body { "record": true } through API.
Check logs to see the segmentation error.
Did you attach the server logs?
yes
Below, after sending PATCH request.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xcf1d60]
goroutine 193 [running]:
github.com/bluenviron/mediamtx/internal/core.(*staticSourceHandler).reloadConf(0x75ce25?, 0xc00051e540?)
/s/internal/core/static_source_handler.go:229 +0x20
created by github.com/bluenviron/mediamtx/internal/core.(*path).doReloadConf in goroutine 164
/s/internal/core/path.go:374 +0x173
Did you attach a network dump?
no
The text was updated successfully, but these errors were encountered:
This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.
Which version are you using?
v1.7.0
Which operating system are you using?
Describe the issue
MediaMTX crashes after sending PATCH request that enables recording for path with
sourceOnDemand
true.Expected behavior should be automatically changing
sourceOnDemand
from valuetrue
tofalse
, when we send{ "record": true }
request body. Another option is returning exception from API with message saying something like "you cannot start recording on camera with source on demand".Describe how to replicate the issue
source
,sourceOnDemand
(true) andsourceOnDemandCloseAfter
(through API).{ "record": true }
through API.Did you attach the server logs?
yes
Below, after sending PATCH request.
Did you attach a network dump?
no
The text was updated successfully, but these errors were encountered: