{"action":"opened","issue":{"url":"https://api.github.com/repos/robotology/poeticon/issues/147","labels_url":"https://api.github.com/repos/robotology/poeticon/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/robotology/poeticon/issues/147/comments","events_url":"https://api.github.com/repos/robotology/poeticon/issues/147/events","html_url":"https://github.com/robotology/poeticon/issues/147","id":92399463,"number":147,"title":"activeParticleTrack not closing gracefully","user":{"login":"gsaponaro","id":6716962,"avatar_url":"https://avatars.githubusercontent.com/u/6716962?v=3","gravatar_id":"","url":"https://api.github.com/users/gsaponaro","html_url":"https://github.com/gsaponaro","followers_url":"https://api.github.com/users/gsaponaro/followers","following_url":"https://api.github.com/users/gsaponaro/following{/other_user}","gists_url":"https://api.github.com/users/gsaponaro/gists{/gist_id}","starred_url":"https://api.github.com/users/gsaponaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsaponaro/subscriptions","organizations_url":"https://api.github.com/users/gsaponaro/orgs","repos_url":"https://api.github.com/users/gsaponaro/repos","events_url":"https://api.github.com/users/gsaponaro/events{/privacy}","received_events_url":"https://api.github.com/users/gsaponaro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/robotology/poeticon/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-01T14:30:01Z","updated_at":"2015-07-01T14:30:01Z","closed_at":null,"body":"Hi @vtikha, we noticed that **activeParticleTrack** does not exit properly on ctrl+c, at least when it is tracking more than 1 objects. For now we are just killing and restarting the module as a workaround.\r\n\r\nSteps to reproduce:\r\n\r\n* launch tracker, connect an image to the image:i port\r\n* initialize a couple of (valid) fixations, for example\r\n```\r\n$ yarp rpc /activeParticleTrack/rpc:i \r\n>>track 100.0 100.0\r\nResponse: 0\r\n>>track 120.0 120.0\r\nResponse: 1\r\n```\r\n* try to quit the module with ctrl+c, here is what happens:\r\n```\r\nstarting the shutdown procedure\r\ncleaning up...\r\nattempting to interrupt ports\r\nfinished interrupt ports\r\nnow closing ports...\r\nGoing to stop 2 Threads\r\n[TRACKER HANGS HERE]\r\n^C[try 2 of 3] Trying to shut down\r\n^C[try 3 of 3] Trying to shut down\r\n^CAborting (calling abort())...\r\n^CAborted (core dumped)\r\n```"}}