Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] traffic_histories_to_observations.py crashes #2005

Closed
qianyi-sun opened this issue May 1, 2023 · 0 comments · Fixed by #2006
Closed

[Bug Report] traffic_histories_to_observations.py crashes #2005

qianyi-sun opened this issue May 1, 2023 · 0 comments · Fixed by #2006
Assignees
Labels
bug Something isn't working

Comments

@qianyi-sun
Copy link
Contributor

High Level Description

python smarts/dataset/traffic_histories_to_observations.py ~/driving-smarts-2.competition-scenarios/t3/test/0202affc-cf2b-451e-a170-3ededd46e88f_agents_1/ -o ~/driving-smarts-2.competition-scenarios/t3/test/0202affc-cf2b-451e-a170-3ededd46e88f_agents_1/ -v 59981
WARNING:Client:Connection to Envision failed with: [Errno 111] Connection refused.  Try using `--headless` if not using Envision server.
Using configuration from: /home/kyber/SMARTS/smarts/engine.ini
Traceback (most recent call last):
  File "smarts/dataset/traffic_histories_to_observations.py", line 432, in <module>
    recorder.collect(args.vehicles_with_sensors, headless=args.headless)
  File "smarts/dataset/traffic_histories_to_observations.py", line 263, in collect
    self._record_data(
  File "smarts/dataset/traffic_histories_to_observations.py", line 340, in _record_data
    obs, _ = self._smarts.observe_from(list(valid_vehicles), self.agent_interface)
  File "/home/kyber/SMARTS/smarts/core/smarts.py", line 964, in observe_from
    return self.sensor_manager.observe_batch(
  File "/home/kyber/SMARTS/smarts/core/sensor_manager.py", line 145, in observe_batch
    ) = Sensors.observe_vehicle(
  File "/home/kyber/SMARTS/smarts/core/sensors/__init__.py", line 494, in observe_vehicle
    safe_obs, dones, updated_safe_sensors = cls.process_serialization_safe_sensors(
  File "/home/kyber/SMARTS/smarts/core/sensors/__init__.py", line 426, in process_serialization_safe_sensors
    done, events = Sensors._is_done_with_events(
  File "/home/kyber/SMARTS/smarts/core/sensors/__init__.py", line 575, in _is_done_with_events
    done_criteria = interface.done_criteria
AttributeError: 'NoneType' object has no attribute 'done_criteria'
Exception ignored in: <function BulletClient.__del__ at 0x7f232c1c90d0>
Traceback (most recent call last):
  File "/home/kyber/SMARTS/examples/rl/platoon/.venv/lib/python3.8/site-packages/pybullet_utils/bullet_client.py", line 38, in __del__
TypeError: catching classes that do not inherit from BaseException is not allowed

Version

latest master branch

Steps to reproduce the bug

No response

System info

No response

Error logs and screenshots

No response

Impact (If known)

No response

@qianyi-sun qianyi-sun added the bug Something isn't working label May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants