Repository navigation
Create the ROS 2 TF listeners on activate to stop lifecycle test hangs - #323
Merged
Merged
Conversation
cuda_voxel_mapping's lifecycle_configuration_test still hangs in ConfiguresWithoutAllocatingGpuRuntime after #321 serialized the tests, so the hang is in the node, not in test interference. configure() built a tf2_ros::TransformListener with its own spin thread and the test's cleanup() destroyed it immediately; destroying a just-created listener can cancel its executor before the thread starts spinning, after which the join never returns. The voxel mapper and KISS-ICP nodes only look up transforms while active, so they now create the buffer and listener on activate and release them on deactivate (and still on cleanup/shutdown/error). The systems-paper stack contract hash for the voxel node is refreshed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ALg7o339S7Rpi9hd751Cbt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cuda_voxel_mapping'slifecycle_configuration_teststill hangs inConfiguresWithoutAllocatingGpuRuntimeand times out after 60 s. It hung again on #322 after #321 serialized the tests, with the other packages passing, so the cause is in the node rather than in test interference.on_configure()created atf2_ros::TransformListenerwith its own spin thread, and the test'scleanup()destroyed it immediately. If the listener is destroyed right after it is created, its executor can be cancelled before the thread starts spinning; the thread then spins forever and the destructor's join never returns.on_activateand release them inon_deactivate.release_runtime()still resets them on cleanup, shutdown and error.cuda_voxel_mapper_node.cppin the systems-paperstack_source_contractis refreshed.Test plan
test_cudanav_contract.py,validate_paper_artifacts.py,test_systems_paper_bundle.pyandtest_cudanav_real_gpu_stack.pypass locally.compilejob passes, and passes again on re-runs, since the hang was intermittent.🤖 Generated with Claude Code
https://claude.ai/code/session_01ALg7o339S7Rpi9hd751Cbt