Skip to content

Conversation

@richiware
Copy link
Member

Due to listeners are objects created directly on Python. Python manages them and it could delete them while they are been used internally by Fast DDS.
This PR fixes this increasing the internal Python references counter when the listeners are set to be used by Fast DDS, and decreasing them when Fast DDS leaves to use them.

This PR depends on be rebased over:

Copy link
Member

@MiguelCompany MiguelCompany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from my comments below, I miss a test_listener_ownership test on test_publisher.py and test_subscriber.py

@MiguelCompany MiguelCompany changed the title Fix ownership problem with listeners [14149] Fix ownership problem with listeners Apr 13, 2022
richiware and others added 5 commits April 16, 2022 12:37
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
… suggested return code check.

Signed-off-by: Javier Santiago <javiersantiago@eprosima.com>
@jsan-rt jsan-rt force-pushed the bugfix/listener-ownwership branch from ce91a32 to 814805f Compare April 21, 2022 07:00
Copy link
Member

@MiguelCompany MiguelCompany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MiguelCompany MiguelCompany merged commit 12da6cb into main Apr 21, 2022
@MiguelCompany MiguelCompany deleted the bugfix/listener-ownwership branch April 21, 2022 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants