Repository navigation
v3.4.0
Release Artifacts
- π Docker container: tag
v3.4.0-dgpuandv3.4.0-igpu - π Python wheel:
pip install holoscan==3.4.0 - π¦οΈ Debian packages:
3.4.0.2-1 - π Documentation
See supported platforms for compatibility.
Release Notes
New Features and Improvements
Core
-
The C++
holoscan::AsynchronousEventStateenum now uses k-prefix naming convention (e.g.kReady) to match the style of other Holoscan C++ API enums. The previously used UPPER_CASE enum values are still present for backwards compatibility, but should be considered deprecated. -
(Experimental) Pose Tree: A new Pose Tree feature (
holoscan::pose_tree) has been introduced to store and query relative coordinate system transformations over time.- It includes a math library for 2D/3D poses and rotations, built on the Eigen library.
- The API is available in C++ (
holoscan::pose_tree) and Python (holoscan.pose_tree). - A new
holoscan::PoseTreeManagerresource is also available to manage and share aPoseTreeinstance within a fragment (see Fragment Service below). - This feature is considered experimental. The API may change in future releases, including a planned migration from Eigen to the MatX library.
- Example: pose_tree_basic. Simulates the orbital mechanics of the Sun, Earth, and Moon to showcase how to manage and query dynamic coordinate frame transformations over time.
-
(Experimental) Fragment Service: To support features like Pose Tree, a new Fragment Service has been introduced. It provides a standardized mechanism for sharing objects (e.g.,
holoscan::Resourceinstances) among components within the same fragment.holoscan::Fragmentnow includesregister_service()andservice()methods. Operators can use theservice()method to access these shared objects.- The API is available in both C++ and Python.
- This feature is considered experimental, and the API may change in future releases.
- Examples:
- fragment_service_basic. Demonstrates the fundamental usage: creating, registering, and retrieving a simple service.
- fragment_service_with_resource. Shows advanced patterns, such as registering a
Resourcedirectly as a service and creating custom classes that act as both aResourceand aFragmentService.
-
A new
DataLoggerabstract interface has been introduced for adding custom logging based on the contents of the messages. This interface is applied during thereceiveoperation on input ports and during theemitoperation for output ports. This interface is functional now, but the exact API should be considered experimental/unstable (we may make backwards incompatible changes to the interface in the next couple of releases).DataLoggerclasses can be developed as separate shared libraries outside of the SDK in the same manner as operators.-
For C++ the convention is to use namespace
holoscan::data_loggers::in the same way thatholoscan::ops::is used for Operators. -
As with operators, any data loggers are not automatically included via the top-level
#include <holoscan/holoscan.hpp>but must be explicitly included like:#include "holoscan/holoscan.hpp" #include "holoscan/data_loggers/basic_console_logger/basic_console_logger.hpp"
and explicitly linked in the application's
CMakeLists.txttarget_link_libraries(my_application PRIVATE holoscan::core holoscan::data_loggers::basic_console_logger )
-
-
A new
DataLoggerResourceinterface is defined for creating new native HoloscanResourceclasses that implement theDataLoggerinterface.- Any
DataLoggerResourcecan be initialized in the usual way (viaFragment::make_resourcein C++ or via direct object construction in Python). - A logging resource can be added to an Application via
Application::add_data_logger(logger)(C++) /Application.add_data_logger(logger)(Python). - Any
DataLoggerimplementations added to an application will result in live logging of messages via corresponding APIs (e.g.DataLogger::log_data) at application runtime. This capability should help with debugging of the message types sent between operators. - In this release we provide only a single concrete implementation of a
DataLoggerResource:BasicConsoleLogger(described below).
- Any
Operators/Resources/Conditions
- A new
holoscan::data_loggers::BaseConsoleLogger(C++) /holoscan.data_loggers.BaseConsoleLogger(Python) resource is provided for live logging of text to the console based on the contents of messages sent and/or received. This can be useful in debugging applications.- This resource implements the new
DataLoggerinterface. As with the interface itself, this resource should currently be considered experimental/unstable for this release (e.g. the format of the output or available parameters may change). - There is also a supporting resource type:
holoscan::data_loggers::BaseConsoleLogger(C++) /holoscan.data_loggers.SimpleTextSerializer(Python) that can be used to control some aspects of the text serialization.- Currently this serializer resource has options to truncate vector and/or metadata messages to a user-specified number of entries in the console output.
- The Python implementation also provides a flag controlling whether the
__repr__will be printed for Python objects (printing the__repr__requires acquiring Python's GIL, so will have some overhead).
- This resource implements the new
Operators
HolovizOpnow supports reading back the depth buffer (by settingenable_depth_buffer_outputto true to enable its output on adepth_buffer_outputport). Reading back the color buffer already had been supported.
Breaking Changes
-
The static
holoscan::Operator::register_codec<T>()method (used to support serialization of custom C++ types between fragments of distributed applications) has been moved to a new location:holoscan::gxf::GXFExecutor::register_codec<T>(). This was done to remove GXF-specific code from the top-levelOperatorclass. The method is related to the GXF UCX extension and is specific to GXF'sComponentSerializerAPI. The existingholoscan::Operator::register_codec<T>()method is now marked as deprecated and will raise a warning at compile time when used. Please update any existing code that was using it to instead callholoscan::gxf::GXFExecutor::register_codec<T>(). -
The
holoscan::CodecRegistryclass has been moved to namespaceholoscan::gxf::CodecRegistryand the header is now underholoscan/core/gxf/codec_registry.hpp. This class was intended for internal use to support theregister_codec<T>()method described, so we expect this change is unlikely to affect user applications. However, any code that was directly using that class would need to be updated to import fromholoscan/core/gxf/codec_registry.hppinstead and use it from theholoscan::gxfnamespace. -
The
holoscan::Endpointclass is now abstract. The concrete implementation used to supportregister_codec<T>()was moved to subclassholoscan::gxf::Endpoint. This change is unlikely to affect application authors as the user-facing APIs for adding a new codec for a custom type,Tis unchanged (Theserializeanddeserializemethods defined on a customcodec<T>class have the same signature as before).
Bug fixes
| Issue | Description |
|---|---|
| 5052065 | Python V4L2 camera applications (e.g., v4l2_camera_usb_webcam, v4l2_camera_hdmi_in) no longer show "GXF_ENTITY_COMPONENT_NOT_FOUND" errors. These errors, which occurred even when video streams were functioning correctly, were caused by internal error logging when handling non-Tensor data types and have now been suppressed. |
Known Issues
This section describes unresolved issues identified during development and QA for this release.
| Issue | Description |
|---|---|
| 4339399 | High CPU usage observed with video_replayer_distributed application. While the high CPU usage associated with the GXF UCX extension has been fixed since v1.0, distributed applications using the MultiThreadScheduler (with the check_recession_period_ms parameter set to 0 by default) may still experience high CPU usage. Setting the HOLOSCAN_CHECK_RECESSION_PERIOD_MS environment variable to a value greater than 0 (e.g. 1.5) can help reduce CPU usage. However, this may result in increased latency for the application until the MultiThreadScheduler switches to an event-based multithreaded scheduler. |
| 4318442 | UCX cuda_ipc protocol doesn't work in Docker containers on x86_64. As a workaround, we are currently disabling the UCX cuda_ipc protocol on all platforms via the UCX_TLS environment variable. |
| 4384348 | UCX termination (either ctrl+c , press 'Esc' or clicking close button) is not smooth and can show multiple error messages. |
| 4481171 | Running the driver for a distributed applications on IGX Orin devkits fails when connected to other systems through eth1. A workaround is to use eth0 port to connect to other systems for distributed workloads. |
| 4458192 | In scenarios where distributed applications have both the driver and workers running on the same host, either within a Docker container or directly on the host, there's a possibility of encountering "Address already in use" errors. A potential solution is to assign a different port number to the HOLOSCAN_HEALTH_CHECK_PORT environment variable (default: 8777), for example, by using export HOLOSCAN_HEALTH_CHECK_PORT=8780. |
| 4768945 | Distributed applications crash when the engine file is unavailable/generating engine file. |
| 4753994 | Debugging Python application may lead to segfault when expanding an operator variable. |
| Wayland: holoscan::viz::Init() with existing GLFW window fails. | |
| 4394306 | When Python bindings are created for a C++ Operator, it is not always guaranteed that the destructor will be called prior to termination of the Python application. As a workaround to this issue, it is recommended that any resource cleanup should happen in an operator's stop() method rather than in the destructor. |
| 4909073 | V4L2 and AJA applications in x86 container report Wayland XDG_RUNTIME_DIR not set error |
| 5211869 | Error "Failed to start server on 0.0.0.0:10002" in VScode Debug Distributed Endoscopy Tool Tracking application |
| 5180229 | std::bad_alloc exception with Isaac Sim due to loading Holoscan Python module with RTDL_GLOBAL flag |
| 5162855 | Dual-GPU Configuration fails Holoscan application |
| 5144233 | python-api-tracing-profile failure on Ubuntu 24.04 / Python 3.12 |
| 5098866 | Segmentation Fault in Python on second .run() call |
| 5061275 | Ping distributed multi-nodes failed to create path between two nodes |
| 5014059 | VScode Debug Distributed Endoscopy Tool Tracking application on an IGX w/dGPU, does not hit the expected debug points. |
| 4953020 | The HOLOINFER_TEST is failing, or a segmentation fault occurs during the parseFromFile() call. |
| 4808248 | FormatConverterOp: GXF VideoBuffer with format GXF_VIDEO_FORMAT_NV12 is processed in wrong colorspace |
| 4789382 | InferenceOp with libtorch backend reports undefined symbols |