Skip to content

OverflowError in liveviewer.py #1

Description

@tom-f-oconnell

Encountered when running some test experiment (I believe one that had one fly per chamber, though might have been before / after we had the test flies loaded) for ejhonglab/nagel_laminar, with the lab account on the computer choice. Not sure whether it was the cv2.circlecall or the inline int call that triggered this error, as I haven't been able to reproduce yet today.

[ERROR] [1608675751.140693]: bad callback: <bound method LiveViewer.image_callback of <__main__.     LiveViewer instance at 0x7f1ba1698ef0>>
Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/topics.py", line 750, in _invoke_callback
    cb(msg)
  File "/home/lab/catkin/src/multi_tracker/nodes/liveviewer.py", line 342, in image_callback
    trajec.color, 2)
OverflowError: signed integer is greater than maximum

The full offending line, for convenience:

cv2.circle(self.imgOutput, trajec_center, int(trajec.covariances[-1]), \
                        trajec.color, 2)

Though I couldn't yet reproduce, trajec.convariances[-1] was very big in some testing I was doing today (at least 285246631.586).

The multi_tracker version I was using when I encountered this error was quite old (86746c028da), but the relevant portion of code doesn't seem to have changed.

Should decide how to handle the data, display, and perhaps additional warnings in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions