gst-shark icon indicating copy to clipboard operation
gst-shark copied to clipboard

gstshark-plot: error: plot_interlatency: A(I,J,...) = X: dimensions mismatch

Open chehefen opened this issue 7 years ago • 4 comments

I ran into this error when I try to plot the interlatency of a gstreamer pipeline that ran for a bit more than one minute: pi@raspberrypi:~/workspace/gst-shark/scripts/graphics$ ./gstshark-plot gstshark_2018-02-14_06:05:38/ Loading proctime events... Loading interlatency events... Loading scheduling events... Loading cpuusage events... Loading framerate events... octave: X11 DISPLAY environment variable not set octave: disabling GUI features Processing proctime... Processing interlatency... error: plot_interlatency: A(I,J,...) = X: dimensions mismatch error: called from plot_interlatency at line 89 column 60 ./gstshark-plot.m at line 35 column 13

Any pointers on how can I fix this? Thanks

chehefen avatar Feb 14 '18 06:02 chehefen

I have the same problem, also with other event types (framerate and proctime [or should i write proc_time?]). This bug makes the plotting currently unusable. One has to look in the Octave code...

micha137 avatar Aug 17 '18 10:08 micha137

I have also the same issue. @chehefen, Did you solve this issue?

Commit number

commit ec94e54aa541bc5e51c1d0784ada39734f05882f
Merge: 046b6b1 5799605
Author: Michael Gruner <[email protected]>
Date:   Fri Nov 16 14:06:24 2018 -0600

How to reproduce


invain@mymate:/work/taos/gst-shark/scripts/graphics$ GST_DEBUG="GST_TRACER:7" GST_TRACERS="framerate" gst-launch-1.0 videotestsrc num-buffers=1800 ! tee name=tee0 ! queue ! videorate  ! video/x-raw,framerate=60/1 ! fakesink sync=true tee0. ! queue ! videorate  ! video/x-raw,framerate=30/1 ! fakesink sync=true tee0. ! queue ! videorate  ! video/x-raw,framerate=15/1 ! fakesink sync=true

invain@mymate:/work/taos/gst-shark/scripts/graphics$ ./gstshark-plot ./gstshark_2018-11-20_19\:26\:44/
Loading proctime events...
Loading interlatency events...
Loading scheduling events...
Loading cpuusage events...
Loading framerate events...
Processing proctime...
Processing interlatency...
Processing framerate...
error: framerate_process: A(I,J,...) = X: dimensions mismatch
error: called from
    framerate_process at line 70 column 40
    ./gstshark-plot.m at line 29 column 13
invain@mymate:/work/taos/gst-shark/scripts/graphics$

Development environment

invain@mymate:/work/taos/gst-shark/scripts/graphics$
invain@mymate:/work/taos/gst-shark/scripts/graphics$ uname -a
Linux mymate 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
invain@mymate:/work/taos/gst-shark/scripts/graphics$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS"

invain@mymate:/work/taos/nnstreamer/tools/tracing$ octave --version
GNU Octave, version 4.0.0
Copyright (C) 2015 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.

Octave was configured for "x86_64-pc-linux-gnu".
Additional information about Octave is available at http://www.octave.org.
Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html
Read http://www.octave.org/bugs.html to learn how to submit bug reports.

Debugging

$ ./gstshark-plot ./gstshark_2018-11-20_19:47:46/ -s pdf -p -l extern image

Analysis

It seems that value_mat gets the mismatched dimension values when creating matrix to store the data. image

leemgs avatar Nov 20 '18 10:11 leemgs

@mleivaf, @michaelgruner PTAL, Could you give us a hint to fix this issue?

leemgs avatar Nov 20 '18 11:11 leemgs

Hi all,

Sorry for the delay in our answers. We updated Gst-Shark (v0.5.5) some days ago, could you please give it a try an see if the issue still appears? Changes were mainly focused on the plotting functionality

rrcarlosrodriguez avatar Dec 14 '18 22:12 rrcarlosrodriguez