Skip to content

v3.4.0

Choose a tag to compare

@wyli wyli released this 01 Jul 20:24
· 19 commits to main since this release
9c5b3c3

Release Artifacts

See supported platforms for compatibility.

Release Notes

New Features and Improvements

Core
  • The C++ holoscan::AsynchronousEventState enum 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::PoseTreeManager resource is also available to manage and share a PoseTree instance 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::Resource instances) among components within the same fragment.

    • holoscan::Fragment now includes register_service() and service() methods. Operators can use the service() 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 Resource directly as a service and creating custom classes that act as both a Resource and a FragmentService.
  • A new DataLogger abstract interface has been introduced for adding custom logging based on the contents of the messages. This interface is applied during the receive operation on input ports and during the emit operation 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).

    • DataLogger classes 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 that holoscan::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.txt

        target_link_libraries(my_application
          PRIVATE
          holoscan::core
          holoscan::data_loggers::basic_console_logger
        )
  • A new DataLoggerResource interface is defined for creating new native Holoscan Resource classes that implement the DataLogger interface.

    • Any DataLoggerResource can be initialized in the usual way (via Fragment::make_resource in 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 DataLogger implementations 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).
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 DataLogger interface. 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).
Operators
  • HolovizOp now supports reading back the depth buffer (by setting enable_depth_buffer_output to true to enable its output on a depth_buffer_output port). 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-level Operator class. The method is related to the GXF UCX extension and is specific to GXF's ComponentSerializer API. The existing holoscan::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 call holoscan::gxf::GXFExecutor::register_codec<T>().

  • The holoscan::CodecRegistry class has been moved to namespace holoscan::gxf::CodecRegistry and the header is now under holoscan/core/gxf/codec_registry.hpp. This class was intended for internal use to support the register_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 from holoscan/core/gxf/codec_registry.hpp instead and use it from the holoscan::gxf namespace.

  • The holoscan::Endpoint class is now abstract. The concrete implementation used to support register_codec<T>() was moved to subclass holoscan::gxf::Endpoint. This change is unlikely to affect application authors as the user-facing APIs for adding a new codec for a custom type, T is unchanged (The serialize and deserialize methods defined on a custom codec<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