Subscribing to '/rosout' creates thousands of threads

asked 2019-04-10 12:12:05 -0500

cody.littley gravatar image

I subscribe to '/rosout' using the following code:

self._subscriber = rospy.Subscriber('/rosout', Log, self.callback)

Running this simple code causes the python process to start THOUSANDS of threads, and the number keeps increasing until the parent process crashes due to the number of threads. When I started writing this there were 7200 threads, by the time I got to this sentence there are 7410 threads!

Am I committing a sin by subscribing to '/rosout', or is does this have to do with a deeper problem with rospy?

edit retag flag offensive close merge delete