Commit ba1ab30
Bump zenoh to 1.8.0 - 2nd attempt (#964)
* chore(zenoh_cpp_vendor): bump to latest zenoh-c and zenoh-cpp
- zenoh-c main: 102df1a3 (2026-04-10)
- zenoh-c ROS/rust-1.75: 0193595c (2026-04-07)
- zenoh-cpp main: af381b42 (2026-04-10)
* fix: close session explicitly in shutdown() to prevent hang on Windows
zenoh commit e5db0ce changed session.close() to call wait_callbacks(),
which blocks until all in-flight callbacks finish. With the older
teardown order, session_.reset() was called while node-level entities
(publishers, subscriptions, etc.) still held shared_ptr<Session> refs,
so the session wasn't actually destroyed until ~Data() called
nodes_.clear() — at which point wait_callbacks() would deadlock against
callbacks being concurrently destroyed on Windows.
Fix: call session_->close() explicitly in shutdown() before
session_.reset(). At shutdown time the spin loop has already exited,
so no callbacks are in-flight and wait_callbacks() returns immediately.
The session is then marked closed; when the shared_ptr refcount
eventually drops to zero during normal rcl teardown, the session
destructor finds is_closed()==true and skips the blocking close().
* chore(zenoh_cpp_vendor): restore get_cargo_version.cmake from #945
Extract cargo version detection into a reusable CMake function instead
of inlining execute_process, matching the approach from PR #945.
* fix: disable ANSI color codes in Zenoh log output (#951)
Set RUST_LOG_STYLE=never before initializing the Zenoh logger so that
color escape sequences do not leak into captured command output. This
fixes YAML parsing failures in ros2param tests where the ESC character
was treated as an unacceptable character.
The env var is set with overwrite=0 so callers can still override it.
* Use zenoh-c commits for Zenoh 1.8.0 + #2493
* Fix synchronization due to changes in undeclare in zenoh 1.8.0
This commit re-applies changes made in #935 , while keeping the explicit call to session_.close() added in rmw_context_impl_s::shutdown()
* Use zenoh 2687c5135
eclipse-zenoh/zenoh@2687c51
from branch https://github.com/eclipse-zenoh/zenoh/tree/suppress-admin-err-message-on-session-close
based on 1.8.0 plus few fixes, including removal of a error log at closure causing failure of a ros2cli test
* revert disable ANSI color codes in Zenoh log output
---------
Co-authored-by: Julien Enoch <julien.e@zettascale.tech>1 parent 0c8fec6 commit ba1ab30
9 files changed
Lines changed: 284 additions & 265 deletions
File tree
- rmw_zenoh_cpp/src/detail
- zenoh_cpp_vendor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | 213 | | |
215 | 214 | | |
216 | 215 | | |
217 | 216 | | |
218 | 217 | | |
219 | 218 | | |
220 | | - | |
221 | 219 | | |
222 | 220 | | |
223 | 221 | | |
224 | | - | |
| 222 | + | |
225 | 223 | | |
226 | 224 | | |
227 | 225 | | |
| |||
233 | 231 | | |
234 | 232 | | |
235 | 233 | | |
236 | | - | |
| 234 | + | |
237 | 235 | | |
238 | 236 | | |
239 | 237 | | |
| |||
265 | 263 | | |
266 | 264 | | |
267 | 265 | | |
268 | | - | |
| 266 | + | |
269 | 267 | | |
270 | 268 | | |
271 | | - | |
| 269 | + | |
272 | 270 | | |
273 | 271 | | |
274 | 272 | | |
| |||
342 | 340 | | |
343 | 341 | | |
344 | 342 | | |
345 | | - | |
346 | | - | |
| 343 | + | |
| 344 | + | |
347 | 345 | | |
348 | 346 | | |
349 | 347 | | |
| |||
482 | 480 | | |
483 | 481 | | |
484 | 482 | | |
485 | | - | |
| 483 | + | |
486 | 484 | | |
487 | 485 | | |
488 | 486 | | |
489 | 487 | | |
490 | 488 | | |
491 | 489 | | |
492 | 490 | | |
493 | | - | |
| 491 | + | |
494 | 492 | | |
495 | 493 | | |
496 | 494 | | |
| |||
502 | 500 | | |
503 | 501 | | |
504 | 502 | | |
505 | | - | |
| 503 | + | |
506 | 504 | | |
507 | 505 | | |
508 | 506 | | |
| |||
511 | 509 | | |
512 | 510 | | |
513 | 511 | | |
514 | | - | |
515 | | - | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | 539 | | |
543 | 540 | | |
544 | 541 | | |
545 | 542 | | |
546 | 543 | | |
547 | 544 | | |
548 | | - | |
549 | | - | |
| 545 | + | |
550 | 546 | | |
551 | 547 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | 97 | | |
100 | 98 | | |
101 | 99 | | |
| |||
115 | 113 | | |
116 | 114 | | |
117 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
118 | 119 | | |
119 | | - | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
146 | | - | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
0 commit comments