huawei-noah / SMARTS

Scalable Multi-Agent RL Training School for Autonomous Driving
MIT License
952 stars 190 forks source link

sanity-test test_smarts_doesnt_leak_tasks_after_reset ERROR! #1303

Closed jieye-ericx closed 2 years ago

jieye-ericx commented 2 years ago

BUG REPORT

High Level Description During make sanity-test,test_smarts_doesnt_leak_tasks_after_reset return FAILED, 2 errors occur:

  1. AttributeError: 'NoneType' object has no attribute '_showbase_instance' smarts/core/tests/test_smarts.py:81: AttributeError
  2. smarts.core.vehicle.RendererException: A renderer is required to test smarts_doesnt_leak_tasks_after_reset. You may not have installed the [camera-obs] dependencies required to render the camera sensor observations. Install them first using the command pip install -e .[camera-obs] at the source directory. smarts/core/tests/test_smarts.py:84: RendererException

SMARTS 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

~/pycharm/SMARTS$ make sanity-test
scl scenario build-all scenarios
build-scenario scenarios/cloverleaf
build-scenario scenarios/od_merge
build-scenario scenarios/loop
build-scenario scenarios/straight
build-scenario scenarios/zoo_intersection
build-scenario scenarios/figure_eight
build-scenario scenarios/od_newmarket
build-scenario scenarios/tests/same_location
build-scenario scenarios/tests/multi_agents_loop
build-scenario scenarios/minicity
build-scenario scenarios/od_4lane
build-scenario scenarios/intersections/2lane
build-scenario scenarios/intersections/6lane
build-scenario scenarios/intersections/4lane
build-scenario scenarios/intersections/4lane_t
Waiting on scenarios/cloverleaf ...
build-scenario scenarios/intersections/2lane_circle
WARNING:OpenDriveRoadNetwork:OpenDrive road networks do not yet support the 'shift_to_origin' option.
WARNING:OpenDriveRoadNetwork:OpenDrive road networks do not yet support the 'shift_to_origin' option.
WARNING:OpenDriveRoadNetwork:OpenDrive road networks do not yet support the 'shift_to_origin' option.
Waiting on scenarios/od_merge ...
Waiting on scenarios/loop ...
Waiting on scenarios/straight ...
Waiting on scenarios/zoo_intersection ...
Waiting on scenarios/figure_eight ...
Waiting on scenarios/od_newmarket ...
Waiting on scenarios/tests/same_location ...
Waiting on scenarios/tests/multi_agents_loop ...
Waiting on scenarios/minicity ...
Waiting on scenarios/od_4lane ...
Waiting on scenarios/intersections/2lane ...
Waiting on scenarios/intersections/6lane ...
Waiting on scenarios/intersections/4lane ...
Waiting on scenarios/intersections/4lane_t ...
Waiting on scenarios/intersections/2lane_circle ...
./tests/test_setup.py
PYTHONHASHSEED=42 pytest -v \
        --doctest-modules \
        --forked \
        --dist=loadscope \
        --junitxml="sanity_test_result.xml" \
        -n `expr \( \`nproc\` \/ 2 \& \`nproc\` \> 3 \) \| 2` \
        ./smarts/core/tests/test_python_version.py::test_python_version \
        ./smarts/core/tests/test_sumo_version.py::test_sumo_version \
        ./smarts/core/tests/test_dynamics_backend.py::test_set_pose \
        ./smarts/core/tests/test_sensors.py::test_waypoints_sensor \
        ./smarts/core/tests/test_smarts.py::test_smarts_doesnt_leak_tasks_after_reset \
        ./examples/tests/test_examples.py::test_examples[multi_agent] \
        ./smarts/env/tests/test_social_agent.py::test_social_agents
/home/hao/anaconda3/envs/smarts/lib/python3.7/site-packages/pytest_benchmark/logger.py:46: PytestBenchmarkWarning: Benchmarks are automatically disabled because xdist plugin is active.Benchmarks cannot be performed reliably in a parallelized environment.
  warner(PytestBenchmarkWarning(text))
============================================================================ test session starts ============================================================================
platform linux -- Python 3.7.11, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 -- /home/hao/anaconda3/envs/smarts/bin/python
cachedir: .pytest_cache
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/hao/pycharm/SMARTS
plugins: cov-3.0.0, benchmark-3.4.1, xdist-2.5.0, pytest_notebook-0.7.0, forked-1.4.0, anyio-3.5.0
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I / gw8 I / gw9 I / gw10 I / gw11 I / gw12 I / gw13 I / gw14 I / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I / gw2[gw0] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                       
gw0 C / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I / gw8 I / gw9 I / gw10 I / gw11 I / gw12 I / gw13 I / gw14 I / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I / gw2[gw1] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                       
gw0 C / gw1 C / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I / gw8 I / gw9 I / gw10 I / gw11 I / gw12 I / gw13 I / gw14 I / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I / gw2[gw2] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                       
gw0 C / gw1 C / gw2 C / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I / gw8 I / gw9 I / gw10 I / gw11 I / gw12 I / gw13 I / gw14 I / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I / gw2[gw3] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                       
gw0 C / gw1 C / gw2 C / gw3 C / gw4 I / gw5 I / gw6 I / gw7 I / gw8 I / gw9 I / gw10 I / gw11 I / gw12 I / gw13 I / gw14 I / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I / gw2[gw4] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                       
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 I / gw6 I / gw7 I / gw8 I / gw9 I / gw10 I / gw11 I / gw12 I / gw13 I / gw14 I / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I / gw2[gw5] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                       
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 I / gw7 I / gw8 I / gw9 I / gw10 I / gw11 I / gw12 I / gw13 I / gw14 I / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I / gw2[gw6] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                       
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 I / gw8 I / gw9 I / gw10 I / gw11 I / gw12 I / gw13 I / gw14 I / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I / gw2[gw7] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                       
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 I / gw9 I / gw10 I / gw11 I / gw12 I / gw13 I / gw14 I / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I / gw2[gw8] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                       
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 I / gw10 I / gw11 I / gw12 I / gw13 I / gw14 I / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I / gw2[gw9] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                       
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 I / gw11 I / gw12 I / gw13 I / gw14 I / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I / gw2[gw10] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 I / gw12 I / gw13 I / gw14 I / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I / gw2[gw11] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 I / gw13 I / gw14 I / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I / gw2[gw12] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 I / gw14 I / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I / gw2[gw13] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 I / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I / gw2[gw14] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I / gw2[gw15] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 I / gw17 I / gw18 I / gw19 I / gw2[gw16] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 I / gw18 I / gw19 I / gw2[gw17] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 I / gw19 I / gw2[gw18] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 I / gw2[gw19] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C / gw2[gw20] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C / gw2[gw21] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C / gw2[gw22] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C / gw2[gw23] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C / gw2[gw24] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C / gw2[gw25] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C / gw2[gw26] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C / gw2[gw27] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C / gw2[gw28] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C / gw2[gw29] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C / gw2[gw30] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C / gw2[gw31] linux Python 3.7.11 cwd: /home/hao/pycharm/SMARTS                                                                                                                                                                                                                      
gw0 C / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C / gw2[gw0] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                               
gw0 ok / gw1 C / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C / gw[gw1] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                
gw0 ok / gw1 ok / gw2 C / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C / g[gw2] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                 
gw0 ok / gw1 ok / gw2 ok / gw3 C / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C / [gw3] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                  
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 C / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C /[gw4] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                   
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 C / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C [gw5] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                    
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 C / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 C[gw6] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                     
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 C / gw8 C / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19 [gw8] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                      
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 C / gw8 ok / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw19[gw7] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                       
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 C / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw1[gw9] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                        
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 C / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / gw[gw10] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                        
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 C / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / g[gw11] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                         
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 C / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C / [gw12] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                          
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 C / gw14 C / gw15 C / gw16 C / gw17 C / gw18 C /[gw15] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                           
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 C / gw14 C / gw15 ok / gw16 C / gw17 C / gw18 C [gw13] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                            
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 C / gw15 ok / gw16 C / gw17 C / gw18 C[gw14] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                             
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 C / gw17 C / gw18 [gw16] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                              
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 C / gw18[gw17] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                               
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok / gw1[gw19] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                                
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok / gw1[gw18] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                                 
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok / gw1[gw20] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                                  
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok / gw1[gw21] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                                   
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok / gw1[gw23] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                                    
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok / gw1[gw22] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                                     
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok / gw1[gw24] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                                      
gw0 ok / gw1 ok / gw2 ok / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok / gw1gw0 ok / gw1 ok / gw2 [7] / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok / gw[gw25] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                                        
gw0 ok / gw1 ok / gw2 [7] / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok / gw[gw26] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                                         
gw0 ok / gw1 ok / gw2 [7] / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok / gw[gw28] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                                          
gw0 ok / gw1 ok / gw2 [7] / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok / gwgw0 [7] / gw1 ok / gw2 [7] / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok / g[gw27] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                                            
gw0 [7] / gw1 ok / gw2 [7] / gw3 ok / gw4 ok / gw5 ok / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok / ggw0 [7] / gw1 ok / gw2 [7] / gw3 ok / gw4 ok / gw5 [7] / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok / gw0 [7] / gw1 ok / gw2 [7] / gw3 ok / gw4 [7] / gw5 [7] / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok /gw0 [7] / gw1 [7] / gw2 [7] / gw3 ok / gw4 [7] / gw5 [7] / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok [gw31] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                                                
gw0 [7] / gw1 [7] / gw2 [7] / gw3 ok / gw4 [7] / gw5 [7] / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok [gw29] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                                                 
gw0 [7] / gw1 [7] / gw2 [7] / gw3 ok / gw4 [7] / gw5 [7] / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ok[gw30] Python 3.7.11 (default, Jul 27 2021, 14:32:16)  -- [GCC 7.5.0]                                                                                                                                                                                                                                                   
gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 ok / gw7 ok / gw8 ok / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 okgw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 ok / gw7 ok / gw8 [7] / gw9 ok / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 ogw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 ok / gw7 ok / gw8 [7] / gw9 [7] / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17 gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 ok / gw7 [7] / gw8 [7] / gw9 [7] / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw17gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 ok / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gw1gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 ok / gw16 ok / gwgw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 ok / gw12 ok / gw13 ok / gw14 ok / gw15 [7] / gw16 ok / ggw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 ok / gw13 ok / gw14 ok / gw15 [7] / gw16 ok / gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 ok / gw13 [7] / gw14 ok / gw15 [7] / gw16 ok /gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 [7] / gw13 [7] / gw14 ok / gw15 [7] / gw16 ok gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 [7] / gw13 [7] / gw14 [7] / gw15 [7] / gw16 okgw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 [7] / gw13 [7] / gw14 [7] / gw15 [7] / gw16 okgw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 [7] / gw13 [7] / gw14 [7] / gw15 [7] / gw16 okgw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 [7] / gw13 [7] / gw14 [7] / gw15 [7] / gw16 okgw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 [7] / gw13 [7] / gw14 [7] / gw15 [7] / gw16 [7gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 [7] / gw13 [7] / gw14 [7] / gw15 [7] / gw16 [7gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 [7] / gw13 [7] / gw14 [7] / gw15 [7] / gw16 [7gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 [7] / gw13 [7] / gw14 [7] / gw15 [7] / gw16 [7gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 [7] / gw13 [7] / gw14 [7] / gw15 [7] / gw16 [7gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 [7] / gw13 [7] / gw14 [7] / gw15 [7] / gw16 [7gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 [7] / gw13 [7] / gw14 [7] / gw15 [7] / gw16 [7gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 [7] / gw13 [7] / gw14 [7] / gw15 [7] / gw16 [7gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 [7] / gw13 [7] / gw14 [7] / gw15 [7] / gw16 [7gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 [7] / gw13 [7] / gw14 [7] / gw15 [7] / gw16 [7gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 [7] / gw13 [7] / gw14 [7] / gw15 [7] / gw16 [7gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 [7] / gw13 [7] / gw14 [7] / gw15 [7] / gw16 [7gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] / gw8 [7] / gw9 [7] / gw10 [7] / gw11 [7] / gw12 [7] / gw13 [7] / gw14 [7] / gw15 [7] / gw16 [7] / gw17 [7] / gw18 [7] / gw19 [7] / gw20 [7] / gw21 [7] / gw22 [7] / gw23 [7] / gw24 [7] / gw25 [7] / gw26 [7] / gw27 [7] / gw28 [7] / gw29 [7] / gw30 [7] / gw31 [7]
scheduling tests via LoadScopeScheduling

smarts/core/tests/test_python_version.py::test_python_version 
smarts/core/tests/test_sumo_version.py::test_sumo_version 
smarts/core/tests/test_dynamics_backend.py::test_set_pose 
smarts/core/tests/test_sensors.py::test_waypoints_sensor 
smarts/env/tests/test_social_agent.py::test_social_agents 
smarts/core/tests/test_smarts.py::test_smarts_doesnt_leak_tasks_after_reset 
examples/tests/test_examples.py::test_examples[multi_agent] 
[gw0] [ 14%] PASSED smarts/core/tests/test_python_version.py::test_python_version 
[gw2] [ 28%] PASSED smarts/core/tests/test_dynamics_backend.py::test_set_pose 
[gw1] [ 42%] PASSED smarts/core/tests/test_sumo_version.py::test_sumo_version 
[gw4] [ 57%] FAILED smarts/core/tests/test_smarts.py::test_smarts_doesnt_leak_tasks_after_reset 
[gw3] [ 71%] PASSED smarts/core/tests/test_sensors.py::test_waypoints_sensor 
[gw6] [ 85%] PASSED smarts/env/tests/test_social_agent.py::test_social_agents 
[gw5] [100%] PASSED examples/tests/test_examples.py::test_examples[multi_agent] 

================================================================================= FAILURES ==================================================================================
_________________________________________________________________ test_smarts_doesnt_leak_tasks_after_reset _________________________________________________________________
[gw4] linux -- Python 3.7.11 /home/hao/anaconda3/envs/smarts/bin/python
smarts = <smarts.core.smarts.SMARTS object at 0x7f7f35f6d550>
scenarios = <itertools.cycle object at 0x7f7f304190f0>

    def test_smarts_doesnt_leak_tasks_after_reset(smarts, scenarios):
        """We have had issues in the past where we would forget to clean up tasks between episodes
        resulting in a gradual decay in performance, this test gives us a bit of a smoke screen
        against this class of regressions.

        See #237 for details
        """
        try:
            num_tasks_before_reset = len(
>               smarts.renderer._showbase_instance.taskMgr.mgr.getTasks()
            )
E           AttributeError: 'NoneType' object has no attribute '_showbase_instance'

smarts/core/tests/test_smarts.py:81: AttributeError

During handling of the above exception, another exception occurred:

smarts = <smarts.core.smarts.SMARTS object at 0x7f7f35f6d550>
scenarios = <itertools.cycle object at 0x7f7f304190f0>

    def test_smarts_doesnt_leak_tasks_after_reset(smarts, scenarios):
        """We have had issues in the past where we would forget to clean up tasks between episodes
        resulting in a gradual decay in performance, this test gives us a bit of a smoke screen
        against this class of regressions.

        See #237 for details
        """
        try:
            num_tasks_before_reset = len(
                smarts.renderer._showbase_instance.taskMgr.mgr.getTasks()
            )
        except Exception as e:
>           raise RendererException.required_to("test smarts_doesnt_leak_tasks_after_reset")
E           smarts.core.vehicle.RendererException: A renderer is required to test smarts_doesnt_leak_tasks_after_reset. You may not have installed the [camera-obs] dependencies required to render the camera sensor observations. Install them first using the command `pip install -e .[camera-obs]` at the source directory.

smarts/core/tests/test_smarts.py:84: RendererException
--------------------------------------------------------------------------- Captured stderr call ----------------------------------------------------------------------------
:display:egldisplay(error): Failed to find or initialize a suitable EGL display connection.
:ShowBase(warning): Unable to open 'offscreen' window.
----------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------
WARNING  SMARTS:smarts.py:754 unable to create Renderer:  Exception('Could not open window.')
============================================================================= warnings summary ==============================================================================
../../anaconda3/envs/smarts/lib/python3.7/site-packages/scipy/fft/__init__.py:97: 32 warnings
  /home/hao/anaconda3/envs/smarts/lib/python3.7/site-packages/scipy/fft/__init__.py:97: DeprecationWarning: The module numpy.dual is deprecated.  Instead of using dual, use the functions directly from numpy or scipy.
    from numpy.dual import register_func

../../anaconda3/envs/smarts/lib/python3.7/site-packages/scipy/sparse/sputils.py:17: 480 warnings
  /home/hao/anaconda3/envs/smarts/lib/python3.7/site-packages/scipy/sparse/sputils.py:17: DeprecationWarning: `np.typeDict` is a deprecated alias for `np.sctypeDict`.
    supported_dtypes = [np.typeDict[x] for x in supported_dtypes]

../../anaconda3/envs/smarts/lib/python3.7/site-packages/scipy/special/orthogonal.py:81: 64 warnings
  /home/hao/anaconda3/envs/smarts/lib/python3.7/site-packages/scipy/special/orthogonal.py:81: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
  Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    from numpy import (exp, inf, pi, sqrt, floor, sin, cos, around, int,

-- Docs: https://docs.pytest.org/en/stable/warnings.html
------------------------------------------------- generated xml file: /home/hao/pycharm/SMARTS/sanity_test_result.xml --------------------------------------------------
========================================================================== short test summary info ==========================================================================
FAILED smarts/core/tests/test_smarts.py::test_smarts_doesnt_leak_tasks_after_reset
================================================================ 1 failed, 6 passed, 576 warnings in 12.94s =================================================================
Makefile:23: recipe for target 'sanity-test' failed
make: *** [sanity-test] Error 1

System information

Gamenot commented 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:

https://github.com/huawei-noah/SMARTS/blob/c6a623d4a0c69ad9e3e16575a46da3ba2dfaea06/smarts/core/renderer.py#L58-L59

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

jieye-ericx commented 2 years ago

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!