Open GiulioRomualdi opened 1 year ago
in iRonCub we encountered the same problem on the robot laptop, which is Ubuntu 22.04.
We tried to install the visualizer via conda
. in particular, this is the outcome of mamba list
for the environment we created:
but we got the following error:
robot-log-visualizer
You can open the visualizer by visiting the following URL:
http://127.0.0.1:7001/static/
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
/home/ironcub/code/robotology-superbuild/build/install/lib/python3/dist-packages/robot_log_visualizer/plotter/matplotlib_viewer_canvas.py:47: UserWarning: frames=None which we can infer the length of, did not pass an explicit *save_count* and passed cache_frame_data=True. To avoid a possibly unbounded cache, frame data caching has been disabled. To suppress this warning either pass `cache_frame_data=False` or `save_count=MAX_FRAMES`.
self.vertical_line_anim = animation.FuncAnimation(
GStreamer; Unable to pause - "file:///home/ironcub/robot_logger_device_2023_10_06_12_35_58_logitech2_rgb.mp4"
GStreamer; Unable to pause - "file:///home/ironcub/robot_logger_device_2023_10_06_12_35_58_logitech2_rgb_old.mp4"
GStreamer; Unable to pause - "file:///home/ironcub/robot_logger_device_2023_10_06_12_35_58_logitech_rgb.mp4"
Warning: "No decoder available for type 'video/quicktime, variant=(string)iso'."
Warning: "No decoder available for type 'video/quicktime, variant=(string)iso'."
Warning: "No decoder available for type 'video/quicktime, variant=(string)iso'."
Error: "Your GStreamer installation is missing a plug-in."
Error: "Your GStreamer installation is missing a plug-in."
Error: "Your GStreamer installation is missing a plug-in."
For conda, I think this is the problem in https://github.com/ami-iit/robot-log-visualizer/issues/67 . For Ubuntu 22.04, can you try if it improves to run:
sudo apt install gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly
Thank you @traversaro ❤️
Thank you @traversaro ❤️
That solved the problem?
That solved the problem?
if testing o the solution is still required, we can test also this solution tomorrow on the experiment PC.
if testing o the solution is still required, we can test also this solution tomorrow on the experiment PC.
did not work in our case, the packages were already installed
I don't know what changed, but yesterday the robot-log-visualizer
was continuously crashing when loading .mp4
videos. Loading only the .mat
file without videos was working correctly.
After a lot of debugging I have managed to restore the original behavior of the visualizer on Ubuntu 22.04 (the one described in the front comment). The reason seems related to this warning message about the graphics protocol I was using:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
/home/ironcub/code/robotology-superbuild/build/install/lib/python3/dist-packages/robot_log_visualizer/plotter/matplotlib_viewer_canvas.py:47: UserWarning: frames=None which we can infer the length of, did not pass an explicit *save_count* and passed cache_frame_data=True. To avoid a possibly unbounded cache, frame data caching has been disabled. To suppress this warning either pass `cache_frame_data=False` or `save_count=MAX_FRAMES`.
I fixed the warning following the instructions in https://stackoverflow.com/questions/69828508/warning-ignoring-xdg-session-type-wayland-on-gnome-use-qt-qpa-platform-wayland:
1.Disabled Wayland by uncommenting WaylandEnable=false in the /etc/gdm3/custom.conf
Check whether you are on Wayland or Xorg using:
echo $XDG_SESSION_TYPE
this did NOT fixed the original problem, but at least now the interface does not crash anymore when I try to load a .mp4 file.
Thank you @traversaro ❤️
That solved the problem?
Unfortunately no. The strange thing is that this is happening only the robot pc.
The strange thing is that this is happening only the robot pc.
If you have two Ubuntu 22.04 machines, one in which it is working, and one in which it is not working, it would be interesting to collect:
env
(sanified from possible confidential info) here I am. So the visualizer is installed with the superbuild + apt
this is the trace of gdb when it crashes
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
--Type <RET> for more, q to quit, c to continue without paging--
Core was generated by `/usr/bin/python3.10 /usr/local/src/robot/robotology-superbuild/build/install/li'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fbb99445571 in wl_proxy_marshal_array_flags () from /lib/x86_64-linux-gnu/libwayland-client.so.0
[Current thread is 1 (Thread 0x7fba03fef640 (LWP 49247))]
(gdb) where
#0 0x00007fbb99445571 in wl_proxy_marshal_array_flags () at /lib/x86_64-linux-gnu/libwayland-client.so.0
#1 0x00007fbb99445c7f in wl_proxy_marshal_flags () at /lib/x86_64-linux-gnu/libwayland-client.so.0
#2 0x00007fba4a097181 in () at /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvaapi.so
#3 0x00007fba4a06e879 in () at /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvaapi.so
#4 0x00007fba4a0328c4 in () at /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvaapi.so
#5 0x00007fbb6471423d in () at /lib/x86_64-linux-gnu/libQt5MultimediaGstTools.so.5
#6 0x00007fbb647144ef in () at /lib/x86_64-linux-gnu/libQt5MultimediaGstTools.so.5
#7 0x00007fbb64703777 in () at /lib/x86_64-linux-gnu/libQt5MultimediaGstTools.so.5
#8 0x00007fbb40300862 in gst_bus_post () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#9 0x00007fbb403165ea in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#10 0x00007fbb402f1d20 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#11 0x00007fbb403163b2 in gst_element_post_message () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#12 0x00007fbb402e7cbc in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#13 0x00007fbb40300862 in gst_bus_post () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#14 0x00007fbb403165ea in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#15 0x00007fbb402f1d20 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#16 0x00007fbb403163b2 in gst_element_post_message () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#17 0x00007fbb402e7cbc in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#18 0x00007fbb40300862 in gst_bus_post () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#19 0x00007fbb403165ea in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#20 0x00007fbb402f1d20 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#21 0x00007fbb403163b2 in gst_element_post_message () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#22 0x00007fbb402e7cbc in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#23 0x00007fbb40300862 in gst_bus_post () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#24 0x00007fbb403165ea in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#25 0x00007fbb402f1d20 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#26 0x00007fbb403163b2 in gst_element_post_message () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#27 0x00007fbb402e7cbc in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#28 0x00007fbb40300862 in gst_bus_post () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#29 0x00007fbb403165ea in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#30 0x00007fbb403163b2 in gst_element_post_message () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#31 0x00007fba4a03d51e in () at /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvaapi.so
#32 0x00007fba683b82c2 in () at /lib/x86_64-linux-gnu/libgstbase-1.0.so.0
#33 0x00007fba4a03b619 in () at /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvaapi.so
#34 0x00007fba683b3432 in () at /lib/x86_64-linux-gnu/libgstbase-1.0.so.0
#35 0x00007fbb40338dcc in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#36 0x00007fbb4033944e in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#37 0x00007fbb40339908 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#38 0x00007fbb4032f7b0 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#39 0x00007fbb4033c9da in gst_pad_push_event () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#40 0x00007fba683cbb18 in () at /lib/x86_64-linux-gnu/libgstbase-1.0.so.0
#41 0x00007fba683cbe1a in () at /lib/x86_64-linux-gnu/libgstbase-1.0.so.0
#42 0x00007fbb40338dcc in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#43 0x00007fbb4033944e in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#44 0x00007fbb40339908 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#45 0x00007fbb4032f7b0 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#46 0x00007fbb4033c9da in gst_pad_push_event () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#47 0x00007fbb4033cf81 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#48 0x00007fbb403369fe in gst_pad_forward () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#49 0x00007fbb40336b45 in gst_pad_event_default () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#50 0x00007fbb40338dcc in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#51 0x00007fbb4033944e in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
--Type <RET> for more, q to quit, c to continue without paging--
#52 0x00007fbb40339908 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#53 0x00007fbb4032f7b0 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#54 0x00007fbb4033c9da in gst_pad_push_event () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#55 0x00007fbb4033cf81 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#56 0x00007fbb403369fe in gst_pad_forward () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#57 0x00007fbb40336b45 in gst_pad_event_default () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#58 0x00007fbb40338dcc in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#59 0x00007fbb4033944e in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#60 0x00007fbb40339908 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#61 0x00007fbb4032f7b0 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#62 0x00007fbb4033c9da in gst_pad_push_event () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#63 0x00007fba683cbb18 in () at /lib/x86_64-linux-gnu/libgstbase-1.0.so.0
#64 0x00007fba683cbe1a in () at /lib/x86_64-linux-gnu/libgstbase-1.0.so.0
#65 0x00007fbb40338dcc in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#66 0x00007fbb4033944e in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#67 0x00007fbb40339908 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#68 0x00007fbb4032f7b0 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#69 0x00007fbb4033c9da in gst_pad_push_event () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#70 0x00007fba683cbb18 in () at /lib/x86_64-linux-gnu/libgstbase-1.0.so.0
#71 0x00007fba683cbe1a in () at /lib/x86_64-linux-gnu/libgstbase-1.0.so.0
#72 0x00007fbb40338dcc in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#73 0x00007fbb4033944e in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#74 0x00007fbb40339908 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#75 0x00007fbb4032f7b0 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#76 0x00007fbb4033c9da in gst_pad_push_event () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#77 0x00007fbb4033cf81 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#78 0x00007fbb403369fe in gst_pad_forward () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#79 0x00007fbb40336b45 in gst_pad_event_default () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#80 0x00007fba4a1b6c6a in () at /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstplayback.so
#81 0x00007fbb40338dcc in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#82 0x00007fbb4033944e in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#83 0x00007fbb40339908 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#84 0x00007fbb4032f7b0 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#85 0x00007fbb4033c9da in gst_pad_push_event () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#86 0x00007fba4a127c5c in () at /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstcoreelements.so
#87 0x00007fbb40362127 in () at /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#88 0x00007fbbb574d6b4 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#89 0x00007fbbb574aa51 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#90 0x00007fbbb7c94ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#91 0x00007fbbb7d26a40 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Following https://askubuntu.com/questions/1441953/ubuntu-22-04-1-lts-totem-video-player-crashes-on-launch we removed gstreamer1.0-vaapi
with
sudo apt purge gstreamer1.0-vaapi
Now everything is working
Cool, if he problem was vaapi
it is possible that the route cause was a graphic card driver problem or similar.
cool, we'll test it also on the iRonCub PC during the next experimental campaign!
I am facing the same issue. I can load the robot and the data but the video window remains black,
UserWarning: frames=None which we can infer the leng
th of, did not pass an explicit *save_count* and passed cache_frame_data=True. To avoid a possibly unbounded cache, frame data caching has been disabled. To suppress this warni
ng either pass `cache_frame_data=False` or `save_count=MAX_FRAMES`.
self.vertical_line_anim = animation.FuncAnimation(
GStreamer; Unable to pause - "file:///home/git/element_codesign-for-walking-and-jumping/src/ergoCub_sim/drake_sim/data/cartesian_tracking/robot_logger_device_2
023_08_29_12_35_39_jabra.mp4"
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
Warning: "Could not open audio device for playback."
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
Warning: "No decoder available for type 'video/mpeg, mpegversion=(int)4, systemstream=(boolean)false, profile=(string)simple, level=(string)1, codec_data=(buffer)000001b001000001b58913000001000000012000c48d8800f528045a1463000001b24c61766335382e35342e313030, width=(int)1280, height=(int)720, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1'."
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
Error: "Your GStreamer installation is missing a plug-in."
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
js: _meshfile is deprecated. Please use _meshfile_geometry for geometries and _meshfile_object for objects with geometry and material
I have everything installed (https://github.com/ami-iit/robot-log-visualizer/issues/56#issuecomment-1752109790). Also, https://github.com/ami-iit/robot-log-visualizer/issues/56#issuecomment-1792189063 does not help.
Im on Ubuntu 22.04, installed the library via mamba. I will look into, https://github.com/ami-iit/robot-log-visualizer/issues/56#issuecomment-1792373795, if possible.
@akhilsathuluri if you are using mamba, you should try in your environment:
mamba install gst-plugins-good gst-plugins-bad
as the relevant errors in your log is:
GStreamer; Unable to pause - "file:///home/git/element_codesign-for-walking-and-jumping/src/ergoCub_sim/drake_sim/data/cartesian_tracking/robot_logger_device_2
023_08_29_12_35_39_jabra.mp4"
Warning: "Could not open audio device for playback."
Warning: "No decoder available for type 'video/mpeg, mpegversion=(int)4, systemstream=(boolean)false, profile=(string)simple, level=(string)1, codec_data=(buffer)000001b001000001b58913000001000000012000c48d8800f528045a1463000001b24c61766335382e35342e313030, width=(int)1280, height=(int)720, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1'."
Error: "Your GStreamer installation is missing a plug-in."
See https://github.com/ami-iit/robot-log-visualizer/issues/67#issuecomment-1752102250 .
mamba install gst-plugins-good gst-plugins-bad
Thanks, I can confirm that this works now!
Installing via apt
was not helpful then.
@STaliani writing:
Following https://askubuntu.com/questions/1441953/ubuntu-22-04-1-lts-totem-video-player-crashes-on-launch we removed
gstreamer1.0-vaapi
withsudo apt purge gstreamer1.0-vaapi
Now everything is working
@FabioBergonti did it on ironlogger PC and now the robot-log-visualizer works
cc @gabrielenava
Perhaps an alternative if you wont or can't uninstall gstreamer vaapi could be to set the LIBVA_DRIVER_NAME
to fakedriver
? See https://fhackts.wordpress.com/2018/04/16/temporarily-skipping-vaapi-decoders-in-decodebin/ .
@giotherobot did an extensive investigation on a similar problem on its computer, and for him the video player started to work (on Ubuntu 22.04 with conda) after he installed sudo apt install ubuntu-restricted-extras
. Probably some libvaapi driver was missing or something similar. For debug, a useful command he used is:
GST_DEBUG=4 gst-play-1.0 '/home/giovannif/Documents/dataset/2024_05_29-01/robot_logger_device_2024_05_29_16_09_18_jabra_rgb.mp4'
If anyone is still experiencing this problem, please report the output of https://github.com/ami-iit/log-installed-software and the output of GST_DEBUG=4 gst-play-1.0
, thanks!
When I load a dataset on Ubuntu 22.04 commit: https://github.com/ami-iit/robot-log-visualizer/commit/dc5e8fdba199743aa9358f26150a9478b69a0442
I got the following error while trying to play the video that's remain black.
That's pretty similar to: https://ubuntuforums.org/showthread.php?t=2481167