Closed jieye-ericx closed 2 years ago
@jieye-ericx Sorry this was not seen, I seem to understand the problem.
:display:egldisplay(error): Failed to find or initialize a suitable EGL display connection.
:ShowBase(warning): Unable to open 'offscreen' window.
It looks like the machine you are using does not have window rendering available. It would either need an X11 dummy or:
It could be possible to add the following after the above lines similar to the fix that will be going in shortly in #1185:
loadPrcFileData("", "aux-display p3tinydisplay")
Alternatively, it is possible to use docker to get around this issue: https://github.com/huawei-noah/SMARTS#using-docker
grateful! It should be the reason why I used an ubuntu server without a display, and the test can be passed using the XQuartz of the Mac to connect!
BUG REPORT
High Level Description During make sanity-test,test_smarts_doesnt_leak_tasks_after_reset return FAILED, 2 errors occur:
pip install -e .[camera-obs]
at the source directory. smarts/core/tests/test_smarts.py:84: RendererExceptionSMARTS version 0.5.1
Previous associated issues https://github.com/huawei-noah/SMARTS/issues/1153
Steps to reproduce the bug I followed the README step by step, then I ran make sanity-test and got this error
Error logs and screenshots
System information
pip freeze
] absl-py==1.0.0 aiohttp==3.8.1 aiohttp-cors==0.7.0 aioredis==2.0.1 aiosignal==1.2.0 anyio==3.5.0 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 astunparse==1.6.3 async-timeout==4.0.2 asynctest==0.13.0 atari-py==0.2.9 attrs==21.4.0 Automat==20.2.0 backcall==0.2.0 beautifulsoup4==4.10.0 bleach==4.1.0 blessings==1.7 cached-property==1.5.2 cachetools==5.0.0 certifi==2021.10.8 cffi==1.15.0 charset-normalizer==2.0.10 click==8.0.3 cloudpickle==1.3.0 colorama==0.4.4 colorful==0.5.4 commonmark==0.9.1 commonroad-io==2020.3 constantly==15.1.0 coverage==6.3 cycler==0.11.0 debugpy==1.5.1 decorator==5.1.1 defusedxml==0.7.1 dm-tree==0.1.6 entrypoints==0.3 execnet==1.9.0 filelock==3.4.2 flatbuffers==2.0 fonttools==4.29.0 frozenlist==1.3.0 future==0.18.2 gast==0.4.0 gitdb==4.0.9 GitPython==3.1.26 google==3.0.0 google-api-core==2.4.0 google-auth==2.5.0 google-auth-oauthlib==0.4.6 google-pasta==0.2.0 googleapis-common-protos==1.54.0 gpustat==0.6.0 grpcio==1.32.0 gym==0.18.3 h5py==3.6.0 hyperlink==21.0.0 idna==3.3 ijson==3.1.4 imageio==2.9.0 importlib-metadata==4.10.1 importlib-resources==5.4.0 incremental==21.3.0 iniconfig==1.1.1 ipykernel==6.7.0 ipython==7.31.1 ipython-genutils==0.2.0 iso3166==2.0.2 jedi==0.18.1 Jinja2==3.0.3 joblib==1.1.0 jsonpatch==1.32 jsonpointer==2.2 jsonschema==4.4.0 jupyter-client==6.1.12 jupyter-core==4.9.1 jupyter-server==1.13.4 jupyter-server-mathjax==0.2.3 jupyterlab-pygments==0.1.2 keras==2.7.0 Keras-Preprocessing==1.1.2 kiwisolver==1.3.2 libclang==12.0.0 libsumo==1.12.0.post0 libtraci==1.12.0.post0 lxml==4.7.1 lz4==3.1.10 Markdown==3.3.6 MarkupSafe==2.0.1 matplotlib==3.5.1 matplotlib-inline==0.1.3 mistune==0.8.4 msgpack==1.0.3 multidict==6.0.2 nbclient==0.5.10 nbconvert==6.4.0 nbdime==3.1.1 nbformat==5.1.3 nest-asyncio==1.5.4 networkx==2.6.3 numpy==1.21.5 nvidia-ml-py3==7.352.0 oauthlib==3.1.1 opencensus==0.8.0 opencensus-context==0.1.2 opencv-python==4.5.5.62 opencv-python-headless==4.2.0.34 opendrive2lanelet==1.2.1 opt-einsum==3.3.0 packaging==21.3 Panda3D==1.10.9 panda3d-gltf==0.13 panda3d-simplepbr==0.9 pandas==1.3.5 pandocfilters==1.5.0 parso==0.8.3 pexpect==4.8.0 pickleshare==0.7.5 Pillow==8.2.0 pluggy==1.0.0 prometheus-client==0.13.0 prompt-toolkit==3.0.24 protobuf==3.19.3 psutil==5.9.0 ptyprocess==0.7.0 py==1.11.0 py-cpuinfo==8.0.0 py-spy==0.3.11 pyasn1==0.4.8 pyasn1-modules==0.2.8 pybullet==3.0.6 pycparser==2.21 pyglet==1.5.15 Pygments==2.11.2 pyparsing==3.0.7 pyproj==3.2.1 pyrsistent==0.18.1 pytest==6.2.5 pytest-benchmark==3.4.1 pytest-cov==3.0.0 pytest-forked==1.4.0 pytest-xdist==2.5.0 pytest_notebook==0.7.0 python-dateutil==2.8.2 pytz==2021.3 PyWavelets==1.2.0 PyYAML==6.0 pyzmq==22.3.0 ray==1.0.1.post1 redis==3.4.1 requests==2.27.1 requests-oauthlib==1.3.0 rich==11.0.0 rsa==4.8 Rtree==0.9.7 scikit-image==0.19.1 scikit-learn==1.0.2 scipy==1.4.1 Send2Trash==1.8.0 sh==1.14.2 Shapely==1.8.0 six==1.16.0Editable install with no version control (smarts==0.5.1)
-e /home/hao/pycharm/SMARTS smmap==5.0.0 sniffio==1.2.0 soupsieve==2.3.1 sumolib==1.12.0.post0 tableprint==0.9.1 tabulate==0.8.9 tensorboard==2.8.0 tensorboard-data-server==0.6.1 tensorboard-plugin-wit==1.8.1 tensorboardX==2.4.1 tensorflow==2.7.0 tensorflow-estimator==2.7.0 tensorflow-io-gcs-filesystem==0.23.1 termcolor==1.1.0 terminado==0.12.1 testpath==0.5.0 tf-estimator-nightly==2.8.0.dev2021122109 threadpoolctl==3.0.0 tifffile==2021.11.2 toml==0.10.2 tomli==2.0.0 torch==1.4.0 torchfile==0.1.0 torchvision==0.5.0 tornado==6.1 traci==1.12.0.post0 traitlets==5.1.1 trimesh==3.9.29 Twisted==21.7.0 typing_extensions==4.0.1 urllib3==1.26.8 visdom==0.1.8.9 wcwidth==0.2.5 webencodings==0.5.1 websocket-client==1.2.3 Werkzeug==2.0.2 wrapt==1.13.3 yarl==1.7.2 yattag==1.14.0 zipp==3.7.0 zope.interface==5.4.0