NVlabs / PoseRBPF

A Rao-Blackwellized Particle Filter for 6D Object Pose Tracking
Other
135 stars 31 forks source link

Error: subprocess.CalledProcessError: Command '['build/query_devices']' died with <Signals.SIGSEGV: 11>. #5

Open fubowen1229 opened 3 years ago

fubowen1229 commented 3 years ago

Error

When running python ycb_renderer.py, the following error occurs. Though I can built CppYCBRenderer successfully, there seems to be some mistakes in it.

Traceback (most recent call last):
  File "ycb_renderer.py", line 702, in <module>
    renderer = YCBRenderer(w, h, render_marker=False)
  File "ycb_renderer.py", line 80, in __init__
    self.r = CppYCBRenderer.CppYCBRenderer(width, height, get_available_devices()[gpu_id])
  File "/data2/fbw/PoseRBPF/ycb_render/get_available_devices.py", line 7, in get_available_devices
    num_devices = int(subprocess.check_output(["{}/query_devices".format(executable_path)]))
  File "/home/fbw/anaconda3/envs/pose_rbpf_env/lib/python3.6/subprocess.py", line 356, in check_output
    **kwargs).stdout
  File "/home/fbw/anaconda3/envs/pose_rbpf_env/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/data2/fbw/PoseRBPF/ycb_render/build/query_devices']' died with <Signals.SIGSEGV: 11>.

When running get_available_devices.py, a similar error occurs.

Traceback (most recent call last):
  File "get_available_devices.py", line 26, in <module>
    print(get_available_devices())
  File "get_available_devices.py", line 7, in get_available_devices
    num_devices = int(subprocess.check_output(["{}/query_devices".format(executable_path)]))
  File "/home/fbw/anaconda3/envs/pose_rbpf_env/lib/python3.6/subprocess.py", line 356, in check_output
    **kwargs).stdout
  File "/home/fbw/anaconda3/envs/pose_rbpf_env/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['build/query_devices']' died with <Signals.SIGSEGV: 11>.

It seems that there is something wrong during cmake.

Environment

Ubuntu 16.04 cuda 10.0 python 3.6 (using pose_rbpf_env) cmake 3.5.1 gcc 7.1.0

lizolson commented 3 years ago

Were you able to fix this?

fubowen1229 commented 3 years ago

Were you able to fix this?

No. However, I tried on another server with gcc 5.4.0 & cmake 3.18.4, and this problem didn't emerge.

hajungong007 commented 1 year ago

Were you able to fix this?

self.r = CppYCBRenderer.CppYCBRenderer(width, height, 0)