yarpserver stuck on Windows Command prompt
traversaro opened this issue · comments
Describe the bug
I do not have a precise way of reproduce this, but lately on Windows (19042.1202) I am experiencing the following problem:
- I launch the yarpserver in a command prompt
- Then I launch something that open port (for example, a iCub simulation in Gazebo)
- The spawn of the model hangs, as the yarpserver does not reply
- If I go to the command prompt in which I launched the yarpserver and I type a button, yarpserver is unblocked and everything starts working again
I still need to investigate this, but it seems like yarpserver goes in "hibernation" or some kind of similar state.
To Reproduce
I am still work in a way to reproduce the problem.
Expected behavior
I would expect the yarpserver never to get stuck.
Screenshots
Still working on it.
Configuration (please complete the following information):
- OS: Windows 10 19042.1202
- yarp version: v3.4.6
- compiler: Conda binaries, so no compiler was used.
Environment (
conda list
):
$ conda list
(robotology) C:\Users\STraversaro>conda list
# packages in environment at C:\Users\STraversaro\AppData\Local\mambaforge\envs\robotology:
#
# Name Version Build Channel
ace 7.0.3 h0e60522_0 conda-forge
boost-cpp 1.74.0 h5b4e17d_4 conda-forge
bzip2 1.0.8 h8ffe710_4 conda-forge
ca-certificates 2021.5.30 h5b45459_0 conda-forge
cairo 1.16.0 hb19e0ff_1008 conda-forge
cfitsio 3.470 h0af3d06_7 conda-forge
console_bridge 1.0.1 h5362a0b_0 conda-forge
cppzmq 4.7.1 h4324990_2 conda-forge
curl 7.78.0 h789b8ee_0 conda-forge
dirent 1.21 0 conda-forge
dlfcn-win32 1.3.0 h0e60522_0 conda-forge
eigen 3.4.0 h2d74725_0 conda-forge
expat 2.4.1 h39d44d4_0 conda-forge
ffmpeg 4.3.1 ha925a31_0 conda-forge
fontconfig 2.13.1 h1989441_1005 conda-forge
freeglut 3.2.1 h0e60522_2 conda-forge
freeimage 3.18.0 hfcb8cd7_7 conda-forge
freetype 2.10.4 h546665d_1 conda-forge
freexl 1.0.6 ha8e266a_0 conda-forge
gazebo 11.8.1 h2e5bf29_0 conda-forge
gazebo-yarp-plugins 3.6.2 ha8c339a_24 robotology
geos 3.9.1 h39d44d4_2 conda-forge
geotiff 1.6.0 ha8a8a2d_6 conda-forge
gettext 0.19.8.1 h1a89ca6_1005 conda-forge
gsl 2.6 hdfb1a43_2 conda-forge
gts 0.7.6 h7c369d9_2 conda-forge
hdf4 4.2.15 h0e5069d_3 conda-forge
hdf5 1.10.6 nompi_h5268f04_1114 conda-forge
icu 68.1 h0e60522_0 conda-forge
icub-firmware-shared 1.21.0 h0e60522_24 robotology
icub-main 1.21.0 h0241954_24 robotology
icub-models 1.21.0 h0e60522_24 robotology
idyntree 3.3.0 py39h488d34f_16 robotology
ilmbase 2.5.5 h12d4b20_0 conda-forge
intel-openmp 2021.3.0 h57928b3_3372 conda-forge
ipopt 3.14.2 hf6be2e5_0 conda-forge
irrlicht 1.8.4 h739eaf8_1 conda-forge
jasper 2.0.14 h77af90b_2 conda-forge
jbig 2.1 h8d14728_2003 conda-forge
jpeg 9d h8ffe710_0 conda-forge
jsoncpp 1.9.4 h2d74725_3 conda-forge
jxrlib 1.1 h8ffe710_2 conda-forge
kealib 1.4.14 h96bfa42_2 conda-forge
krb5 1.19.2 hbae68bd_0 conda-forge
lcms2 2.12 h2a16943_0 conda-forge
lerc 2.2.1 h0e60522_0 conda-forge
libblas 3.9.0 8_mkl conda-forge
libcblas 3.9.0 8_mkl conda-forge
libclang 11.1.0 default_h5c34c98_1 conda-forge
libcurl 7.78.0 h789b8ee_0 conda-forge
libdeflate 1.7 h8ffe710_5 conda-forge
libffi 3.3 h0e60522_2 conda-forge
libflang 5.0.0 h6538335_20180525 conda-forge
libgdal 3.3.1 h7e75cf7_2 conda-forge
libglib 2.68.4 h1e62bf3_0 conda-forge
libiconv 1.16 he774522_0 conda-forge
libignition-cmake2 2.9.0 h0e60522_0 conda-forge
libignition-common3 3.13.2 h9bd54ec_1 conda-forge
libignition-fuel-tools4 4.4.0 hf705ca2_1 conda-forge
libignition-math6 6.8.0 h0e60522_0 conda-forge
libignition-msgs5 5.3.0 h6ea2ca8_8 conda-forge
libignition-tools1 1.2.0 h0e60522_1 conda-forge
libignition-transport8 8.1.0 h4c42346_7 conda-forge
libjpeg-turbo 2.1.0 h8ffe710_0 conda-forge
libkml 1.3.0 h9859afa_1014 conda-forge
liblapack 3.9.0 8_mkl conda-forge
liblapacke 3.9.0 8_mkl conda-forge
libnetcdf 4.8.1 nompi_hf689e7d_100 conda-forge
libode 0.16.2 h415ef7b_6 conda-forge
libopenblas 0.3.17 pthreads_hc469a61_1 conda-forge
libopencv 4.5.2 py36ha04fe1b_1 conda-forge
libosqp 0.6.2 h0e60522_3 conda-forge
libpng 1.6.37 h1d00b33_2 conda-forge
libpq 13.3 hfcc5ef8_0 conda-forge
libprotobuf 3.16.0 h7755175_0 conda-forge
libraw 0.20.2 hee1bdec_1 conda-forge
librttopo 1.1.0 hb340de5_6 conda-forge
libsdformat 9.3.0 h0e60522_5 conda-forge
libsodium 1.0.18 h8d14728_1 conda-forge
libspatialite 5.0.1 h762a7f4_5 conda-forge
libssh2 1.10.0 h680486a_0 conda-forge
libtiff 4.3.0 h0c97f57_1 conda-forge
libusb 1.0.24 h8ffe710_4 conda-forge
libwebp-base 1.2.1 h8ffe710_0 conda-forge
libxml2 2.9.12 hf5bbc77_0 conda-forge
libzip 1.8.0 hfed4ece_0 conda-forge
llvm-meta 5.0.0 0 conda-forge
lz4-c 1.9.3 h8ffe710_1 conda-forge
metis 5.1.0 h0e60522_1006 conda-forge
mkl 2020.4 hb70f87d_311 conda-forge
mumps-seq 5.2.1 hb3f9cae_10 conda-forge
numpy 1.21.2 py39h6635163_0 conda-forge
ogre 1.10.12 hadbb816_7 conda-forge
openal-soft 1.20.1 h1ad3211_0 conda-forge
openblas 0.3.17 pthreads_h543f93c_1 conda-forge
openexr 2.5.5 hab3b255_0 conda-forge
openjpeg 2.4.0 hb211442_1 conda-forge
openmp 5.0.0 vc14_1 conda-forge
openssl 1.1.1l h8ffe710_0 conda-forge
osqp-eigen 0.6.4 h0e60522_1 conda-forge
pcre 8.45 h0e60522_0 conda-forge
pip 21.2.4 pyhd8ed1ab_0 conda-forge
pixman 0.40.0 h8ffe710_0 conda-forge
poppler 21.03.0 h9ff6ed8_0 conda-forge
poppler-data 0.4.10 0 conda-forge
postgresql 13.3 h1c22c4f_0 conda-forge
proj 8.0.1 h1cfcee9_0 conda-forge
pugixml 1.11.4 h0e60522_0 conda-forge
python 3.9.7 h7840368_0_cpython conda-forge
python_abi 3.9 2_cp39 conda-forge
qt 5.12.9 h5909a2a_4 conda-forge
qwt 6.2.0 h552f0f6_0 conda-forge
robot-testing-framework 2.0.1 h0e60522_13 robotology
ruby 2.7.2 h8b1b97a_3 conda-forge
sdl 1.2.15 h13ae965_1 conda-forge
sdl2 2.0.12 h0e60522_1 conda-forge
setuptools 57.4.0 py39hcbf5309_0 conda-forge
simbody 3.7 hade3207_2 conda-forge
sqlite 3.36.0 h8ffe710_0 conda-forge
tbb 2020.2 h2d74725_4 conda-forge
tbb-devel 2020.2 h2d74725_4 conda-forge
tiledb 2.3.4 h78dabda_0 conda-forge
tiny-process-library 2.0.4 h0e60522_0 conda-forge
tinyxml 2.6.2 h2d74725_2 conda-forge
tinyxml2 9.0.0 h39d44d4_1 conda-forge
tk 8.6.11 h8ffe710_1 conda-forge
tzdata 2021a he74cb21_1 conda-forge
ucrt 10.0.20348.0 h57928b3_0 conda-forge
urdfdom 2.3.5 h2d74725_0 conda-forge
urdfdom_headers 1.0.5 h5362a0b_2 conda-forge
vc 14.2 hb210afc_5 conda-forge
vs2015_runtime 14.29.30037 h902a5da_5 conda-forge
wheel 0.37.0 pyhd8ed1ab_1 conda-forge
xerces-c 3.2.3 h0e60522_2 conda-forge
xz 5.2.5 h62dcd97_1 conda-forge
yaml 0.2.5 he774522_0 conda-forge
yarp 3.4.6 py39h0df3cf8_24 robotology
ycm-cmake-modules 0.12.2 h0e60522_13 robotology
zeromq 4.3.4 h0e60522_1 conda-forge
zlib 1.2.11 h62dcd97_1010 conda-forge
zstd 1.5.0 h6255e5f_0 conda-forge
zziplib 0.13.69 h1d00b33_1 conda-forge
Additional context
I want to try to reproduce this with YARP 3.5 between trying to understand better the problem.
Are you sure this is not the windows cmd prompt that is frozen? IIRC, when you select some text with the mouse, the windows cmd freezes the running application...
Are you sure this is not the windows cmd prompt that is frozen? IIRC, when you select some text with the mouse, the windows cmd freezes the running application...
The Gazebo simulation hangs while waiting for the YARP ports to be registered (this can be seen in the Gazebo windows as the model is not spawned and the simulation is not going forward), so I think that also the other functionalities of the yarpserver (not only the print on the command prompt) are affected.
If that's the issue, the whole application is frozen, not just the print...
If that's the issue, the whole application is frozen, not just the print...
Exactly!
Sorry, that was probably not a good explanation... I mean that if you select some text on a windows cmd, the application is frozen until you unselect the text, which would explain the behaviour that you are seeing
Sorry, that was probably not a good explanation... I mean that if you select some text on a windows cmd, the application is frozen until you unselect the text, which would explain the behaviour that you are seeing
I am not sure I was selecting anything, but I will double check again.
The explanation provided by @drdanz is probably the correct one, let's close the issue, I can re-open it if I have more data.