You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 31, 2025. It is now read-only.
In python 2.7 there is a subtle bug with unpickling custom exceptions; this was fixed in 3.3, see https://bugs.python.org/issue1692335. As a workaround for 2.7 we can re-define these exceptions as below.
classROSBagException(Exception):
""" Base class for exceptions in rosbag. """passclassROSBagFormatException(ROSBagException):
""" Exceptions for errors relating to the bag file format. """passclassROSBagUnindexedException(ROSBagException):
""" Exception for unindexed bags. """def__init__(self, *args):
ROSBagException.__init__(self, 'Unindexed bag')
For context, I came across this issue when a ROSBagUnindexedException was raised in a multiprocessing.Pool.map thread. It throws the __init__ exception and hangs, as described here: https://lists.gt.net/python/bugs/1025933
In python 2.7 there is a subtle bug with unpickling custom exceptions; this was fixed in 3.3, see https://bugs.python.org/issue1692335. As a workaround for 2.7 we can re-define these exceptions as below.
For context, I came across this issue when a
ROSBagUnindexedExceptionwas raised in amultiprocessing.Pool.mapthread. It throws the__init__exception and hangs, as described here: https://lists.gt.net/python/bugs/1025933