openvidu icon indicating copy to clipboard operation
openvidu copied to clipboard

Error applying CrowdDetectorFilter

Open VaporMontey opened this issue 3 years ago • 3 comments

Describe the bug When applying the filter to the session an exception describes an issue with the parameters given to the filter.

ERROR:org.kurento.client.internal.server.KurentoServerException:'rois' parameter should be a list (Code:40001, Type:null, Data: {"type":"MARSHALL_ERROR"})

Expected behavior Apply the filter

Wrong current behavior The filter is not applied and and exception is thrown

OpenVidu tutorial where to replicate the error

  1. Enable the filter for the session kurentoOptions: { allowedFilters: ['CrowdDetectorFilter'] };

  2. Apply the filter (documentation options were used) this.publisher1.stream.applyFilter("CrowdDetectorFilter", { rois: [ { id: 'roi1', points: [ {x: 0, y: 0}, {x: 0.5, y: 0}, {x: 0.5, y: 0.5}, {x: 0, y: 0.5} ], regionOfInterestConfig: { occupancyLevelMin: 10, occupancyLevelMed: 35, occupancyLevelMax: 65, occupancyNumFramesToEvent: 5, fluidityLevelMin: 10, fluidityLevelMed: 35, fluidityLevelMax: 65, fluidityNumFramesToEvent: 5, sendOpticalFlowEvent: false, opticalFlowNumFramesToEvent: 3, opticalFlowNumFramesToReset: 3, opticalFlowAngleOffset: 0 } } ] });

OpenVidu deployment info Openvidu deployed on premises using the installation script

Openvidu 2.17.0 Kurento 6.16.0

Client device info (if applicable) Chrome 89.0.4389.90 openvidu-angular 2.17.0

Screenshots err_pt1 err_pt2

Additional context Other filters like GStreamer are working. CrowdDetectorFilter is enabled for the session

VaporMontey avatar Mar 22 '21 10:03 VaporMontey

Hello,

Seems like some kind of parsing error of type list. Please, update Kurento Media Server logging level in the module "JSON-RPC API server calls" as stated in here: https://doc-kurento.readthedocs.io/en/latest/features/logging.html#other-components

That will provide further information about what is being received and parsed by the RPC Kurento Media Server module.

pabloFuente avatar Mar 22 '21 10:03 pabloFuente

Hi,

Thanks for the response, here is the log. 2021-03-22T122025.00129.pid1.log

VaporMontey avatar Mar 22 '21 12:03 VaporMontey

Seems like openvidu-server is not able to properly parse type "list" for the options parameter of the Stream.applyFilter method. It is likely a bug in openvdu-server source code.

pabloFuente avatar Mar 22 '21 14:03 pabloFuente