There is a race when multiple camnodes try to register at once and the port increment counter in mainbrain gets confused.
trace from camnode:
Traceback (most recent call last):
File "/home/strawlab/ros-flydra.electric.boost1.46/bin/flydra_camera_node", line 9, in
load_entry_point('flydra==0.4.69-git', 'console_scripts', 'flydra_camera_node')()
File "/home/strawlab/flydra.git/flydra/camnode.py", line 2870, in main
parse_args_and_run()
File "/home/strawlab/flydra.git/flydra/camnode.py", line 2953, in parse_args_and_run
benchmark=benchmark,
File "/home/strawlab/flydra.git/flydra/camnode.py", line 2315, in init
camnode_ros_name = rospy.get_name())
File "/usr/lib/pymodules/python2.7/Pyro/core.py", line 381, in call
return self.send(self.name, args, kwargs)
File "/usr/lib/pymodules/python2.7/Pyro/core.py", line 456, in _invokePYRO
return self.adapter.remoteInvocation(name, Pyro.constants.RIF_VarargsAndKeywords, vargs, kargs)
File "/usr/lib/pymodules/python2.7/Pyro/protocol.py", line 457, in remoteInvocation
return self._remoteInvocation(method, flags, *args)
File "/usr/lib/pymodules/python2.7/Pyro/protocol.py", line 532, in _remoteInvocation
answer.raiseEx()
File "/usr/lib/pymodules/python2.7/Pyro/errors.py", line 72, in raiseEx
raise self.excObj
socket.error: [Errno 98] Address already in use
trace from mainbrain
REGISTER NEW CAMERA Basler_21029386 on noise.flycave @ ros node /flydra_camera_node_noise
Exception in thread CoordinateProcessor thread:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File "/home/strawlab/flydra.git/flydra/MainBrain.py", line 884, in run
predicted_framenumber = n_frames_skipped + self.last_framenumbers_skip[cam_idx] + 1
IndexError: list index out of range
There is a race when multiple camnodes try to register at once and the port increment counter in mainbrain gets confused.
trace from camnode: Traceback (most recent call last): File "/home/strawlab/ros-flydra.electric.boost1.46/bin/flydra_camera_node", line 9, in
load_entry_point('flydra==0.4.69-git', 'console_scripts', 'flydra_camera_node')()
File "/home/strawlab/flydra.git/flydra/camnode.py", line 2870, in main
parse_args_and_run()
File "/home/strawlab/flydra.git/flydra/camnode.py", line 2953, in parse_args_and_run
benchmark=benchmark,
File "/home/strawlab/flydra.git/flydra/camnode.py", line 2315, in init
camnode_ros_name = rospy.get_name())
File "/usr/lib/pymodules/python2.7/Pyro/core.py", line 381, in call
return self.send(self.name, args, kwargs)
File "/usr/lib/pymodules/python2.7/Pyro/core.py", line 456, in _invokePYRO
return self.adapter.remoteInvocation(name, Pyro.constants.RIF_VarargsAndKeywords, vargs, kargs)
File "/usr/lib/pymodules/python2.7/Pyro/protocol.py", line 457, in remoteInvocation
return self._remoteInvocation(method, flags, *args)
File "/usr/lib/pymodules/python2.7/Pyro/protocol.py", line 532, in _remoteInvocation
answer.raiseEx()
File "/usr/lib/pymodules/python2.7/Pyro/errors.py", line 72, in raiseEx
raise self.excObj
socket.error: [Errno 98] Address already in use
trace from mainbrain REGISTER NEW CAMERA Basler_21029386 on noise.flycave @ ros node /flydra_camera_node_noise Exception in thread CoordinateProcessor thread: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run() File "/home/strawlab/flydra.git/flydra/MainBrain.py", line 884, in run predicted_framenumber = n_frames_skipped + self.last_framenumbers_skip[cam_idx] + 1 IndexError: list index out of range