Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions source/isaaclab/changelog.d/pv-log-kit-version.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Added
^^^^^

* Added Kit version, kernel version, and git hash logging to :class:`~isaaclab.app.AppLauncher` startup.
19 changes: 19 additions & 0 deletions source/isaaclab/isaaclab/app/app_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,9 @@ def __init__(self, launcher_args: argparse.Namespace | dict | None = None, **kwa
# use __stderr__ which is never suppressed.
print("[ISAACLAB] AppLauncher initialization complete", file=sys.__stderr__, flush=True)

# Log Kit/runtime version information for diagnostics.
self._log_kit_version_info()

# Ensure SimulationApp.close() is called on normal process exit so Kit
# shuts down cleanly instead of relying on __del__ (which logs a warning
# and can leave GPU resources in a bad state for the next test).
Expand Down Expand Up @@ -1374,6 +1377,22 @@ def _hide_play_button(self, flag):
play_button_group._play_button.visible = not flag # type: ignore
play_button_group._play_button.enabled = not flag # type: ignore

def _log_kit_version_info(self):
"""Log Kit and runtime version information."""
import carb
import omni.kit.app

app = omni.kit.app.get_app()
tokens = carb.tokens.get_tokens_interface()

kit_version = app.get_kit_version()
kernel_version = app.get_kernel_version()
kit_git_hash = tokens.resolve("${kit_git_hash}") or "unknown"

print(f"[ISAACLAB] Kit version: {kit_version}", file=sys.__stderr__, flush=True)
print(f"[ISAACLAB] Kit kernel: {kernel_version}", file=sys.__stderr__, flush=True)
print(f"[ISAACLAB] Kit hash: {kit_git_hash}", file=sys.__stderr__, flush=True)

def _abort_signal_handle_callback(self, signal, frame):
"""Handle the abort/segmentation/kill signals."""
# close the app
Expand Down
Loading