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

"commit" crashes the camera calibrator #1056

Open
rursprung opened this issue Dec 4, 2024 · 0 comments
Open

"commit" crashes the camera calibrator #1056

rursprung opened this issue Dec 4, 2024 · 0 comments
Labels

Comments

@rursprung
Copy link
Contributor

it seems that in the camera calibrator the "commit" button is broken: when i do a calibration and click "calibrate", then "save" these two work. if i follow that with "commit" it crashes every time:

Traceback (most recent call last):
  File ".../ros_ws/install/camera_calibration/lib/camera_calibration/cameracalibrator", line 33, in <module>
    sys.exit(load_entry_point('camera-calibration==5.0.5', 'console_scripts', 'cameracalibrator')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../ros_ws/install/camera_calibration/lib/python3.12/site-packages/camera_calibration/nodes/cameracalibrator.py", line 227, in main
    rclpy.shutdown()
  File "/opt/ros/jazzy/lib/python3.12/site-packages/rclpy/__init__.py", line 134, in shutdown
    _shutdown(context=context)
  File "/opt/ros/jazzy/lib/python3.12/site-packages/rclpy/utilities.py", line 82, in shutdown
    context.shutdown()
  File "/opt/ros/jazzy/lib/python3.12/site-packages/rclpy/context.py", line 127, in shutdown
    raise RuntimeError('Context must be initialized before it can be shutdown')
RuntimeError: Context must be initialized before it can be shutdown
[ros2run]: Process exited with failure 1

tested on ROS jazzy with a local copy of this repo in my ROS workspace with 5.0.5 + a cherry-pick of my fix #1046 (i.e. for the bug reported here it's identical to 5.0.5).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants