Skip to content

Isaac Sim 6.2 Kit fast_importer selects mixed charset_normalizer Python/native modules, causing 41 extension startup failures #929

Open

Description

@ZiqiChai

Description

[Bug] Isaac Sim 6.2 Kit fast_importer selects mixed charset_normalizer Python/native modules, causing 41 extension startup failures

Summary

On Linux with the pip distribution of Isaac Sim 6.2.0.0, Kit's fast importer can select a .py implementation instead of the corresponding native extension when both are present in the same directory. The selection depends on directory enumeration order.

In this installation, bundled charset_normalizer 3.5.1 is loaded as md.py plus cd.cpython-312-x86_64-linux-gnu.so. The mixed implementations produce binary-layout exceptions and cascade into 41 extension startup failures. A newly created independent Conda environment reproduces the same failure without custom application code or a dependency preload hook.

A local importer-only patch that honors native-extension precedence within a directory resolves the failure in both environments. This is a proposed diagnosis and candidate fix for upstream review, not an upstream-approved patch.

Environment

  • Isaac Sim pip packages: 6.2.0.0; Full application, all,extscache installation.
  • OS: Ubuntu 22.04.5 LTS, kernel 6.8.0-138-generic, x86_64.
  • Python: 3.12.13 in the newly created Conda environment.
  • GPU: NVIDIA GeForce RTX 5090; NVIDIA driver 580.178.04; Vulkan.
  • Bundled extension: omni.services.pip_archive-0.18.15+110.4.0.lx64.cp312.
  • Bundled charset_normalizer: 3.5.1. Separately installed environment distribution: 3.3.2. The failing traceback points to the bundled package, not the environment-level package.
  • Complete package versions are attached in clean_packages.json and requirements_versions.txt.
  • The fresh environment was installed using official Isaac Sim wheels and dependency downloads, including a mirror for some downloads; the 143-package final installation transaction was checked against official PyPI/NVIDIA hashes. This was not a clone of the original environment.

Expected behavior

Within the same search directory, module resolution should prefer the appropriate native extension over .py, matching CPython's FileFinder precedence, independent of directory enumeration order. Earlier search directories should still take precedence over later directories.

Isaac Sim's bundled dependencies should load consistently and allow the dependent extensions to start.

Actual behavior

The clean-environment baseline console log contains:

RuntimeWarning: charset_normalizer.md.CharInfo size changed, may indicate binary incompatibility. Expected 144 from C header, got 240 from PyObject
ValueError: charset_normalizer.md.MessDetectorPlugin size changed, may indicate binary incompatibility. Expected 24 from C header, got 16 from PyObject

The first affected import chain includes:

isaacsim.core.experimental.prims
  -> scipy.spatial.transform / scipy.sparse
  -> scipy._lib.array_api_compat.numpy
  -> numpy.f2py
  -> charset_normalizer
  -> charset_normalizer.cd (native extension)
  -> incompatible charset_normalizer.md types

Measured in clean_environment_before_fix_console.log: 1,473 Kit [Error] lines, 34 Kit [Warning] lines, and 41 extension startup failures. These are console-log counts, not counts from the more verbose Kit file. The application still emits app ready; that message alone does not establish a healthy environment.

Reproduction

Full application

Use an unpatched Isaac Sim 6.2.0.0 pip installation with Python 3.12 on Linux. Ensure charset_normalizer has not been preloaded before Kit startup. A fresh installation reproduced this locally, but the failure is sensitive to directory enumeration order and may not appear on every filesystem/installation.

A normalized equivalent of the baseline launch is below. Activate the environment first, extract the attachment, and run from the extracted directory. This uses the attached diagnostic script and no custom scene. The local Conda activation wrapper and absolute paths have been omitted for portability.

unset PYTHONPATH PYTHONHOME
export PYTHONNOUSERSITE=1
export ROS_DISTRO=humble
export RMW_IMPLEMENTATION=rmw_fastrtps_cpp
export ROS_DOMAIN_ID=172
# Accept the Isaac Sim EULA according to your organization's policy before use.
export OMNI_KIT_ACCEPT_EULA=YES
export LD_LIBRARY_PATH="$CONDA_PREFIX/lib/python3.12/site-packages/isaacsim/exts/isaacsim.ros2.core/humble/lib"
export ISAAC_AUDIT_RESULT="$PWD/baseline_verification_new.json"
isaacsim --no-window \
  --portable-root "$PWD/repro_portable" \
  --/app/settings/loadUserConfig=false \
  --/app/file/ignoreUnsavedOnExit=true \
  --exec "$PWD/verify_environment.py" > baseline_new.log 2>&1

Use a new portable directory for the reproduction. The supplied logs were captured before the patch. Both local environments are now patched; simply rerunning on those patched environments is not an unmodified-baseline reproduction.

Observed directory order in the bundled charset_normalizer directory:

md.py
md.cpython-312-x86_64-linux-gnu.so
cd.cpython-312-x86_64-linux-gnu.so
cd.py

Deterministic importer regression test (no GPU startup)

The attached test_import_priority.py loads the actual Kit importer and controls directory enumeration in a temporary directory. It compares the selected module origin against CPython FileFinder for all 24 permutations of .py and the three Linux native-extension suffixes. The placeholder native files are used only for resolution tests, not executed as binaries.

With the target Conda environment activated, run:

kit_path="$CONDA_PREFIX/lib/python3.12/site-packages/isaacsim/kit"
PYTHONPATH="$kit_path/kernel/py" LD_LIBRARY_PATH="$kit_path" \
  python test_import_priority.py

The unmodified importer fails 26 subcases across the suite. The candidate patch passes all five tests, including cross-directory precedence, source-only execution, package paths, and invalidation of an old cached selection. Before/after test output is attached.

Root-cause evidence

Affected file: kit/kernel/py/omni/ext/_impl/fast_importer.py.

The original cache population accepts the first encountered file for a module name. Merely reordering MODULES_EXTS is insufficient because .py can still be encountered first. This allows the pure-Python md.py to coexist with native cd.so, whose compiled type expectations differ.

The relevant original importer and bundled charset_normalizer files match between the original environment and independently installed environment, and critical files were compared with official wheel contents. Evidence is included in root_cause_evidence.json and critical_official_wheel_comparison.json. These checks support an importer-resolution defect rather than local file corruption for this incident.

Original importer SHA256:

cdaa2d6299abc5df78bfcce2da5421c8c59426725e0ee0b1cf608a6a19eee7cd

Candidate fix and validation

See fast_importer_priority.patch. The local patch:

  1. Honors CPython native-extension suffix priority when candidates are in the same directory.
  2. Preserves precedence between distinct search directories.
  3. Stops suffix processing after a duplicate module match, preventing ABI suffixes from being reinterpreted as additional module names via the generic .so suffix.
  4. Increments the importer cache version from 1 to 2 so persisted incorrect selections are rebuilt.

No dependency upgrades/downgrades were made for this patch. No preload hook was active during the final validation.

Results in both the original and new environments:

  • Full --no-window startup: 0 Kit [Error] lines, 0 failed extensions, seven environment checks pass.
  • Runtime uses bundled charset_normalizer 3.5.1 with both md.so and cd.so.
  • 180-step falling-cube physics smoke test passes: initial z=2.0, final z≈0.25.
  • CUDA numerical smoke test passes on the RTX 5090.
  • pip check reports no broken requirements.

A previous workaround, importing environment-level charset_normalizer before starting Kit, also suppressed the failure. The final importer patch does not require that workaround.

Remaining warnings and scope

After the patch, each Full console log still has 25 Kit Warning lines. These include HOOPS path checks, animation registration messages, deprecations/interface warnings, and missing crash-reporter notices. Raw Protobuf duplicate-registration stderr messages also remain and are not included in the Kit [Error] counts. These are reported for context, not attributed to this importer defect.

HOOPS native libraries and six animation nodes were confirmed loaded/registered, but actual CAD conversion and complete animation workflows were not tested. Visible GUI interaction, external ROS communication, hardware/VRC integration, and the full upstream test suite were not part of this validation.

Attachments

Attach isaacsim62-fast-importer-public-evidence.zip to this issue. It contains:

  • Complete original-environment pre-fix console log.
  • Complete clean-environment pre-fix console log and native Kit log.
  • Complete after-fix console logs for both environments.
  • Package versions, module-path evidence, verification JSON, candidate patch, and regression tests/results.
  • SHA256SUMS.txt for the included files.

Public log copies retain the complete diagnostic content but mask the local home username, telemetry identifier/UUIDs, shortened GPU UUID, and email-like URL credentials. They are explicitly sanitized copies, not byte-identical originals. Byte-identical original logs and their source SHA256 manifest are retained separately by the reporter.

Could the Kit team confirm the intended native-module precedence, review the candidate fix/cache invalidation, and advise which upstream release will include a supported fix?

Isaac Sim version

6.2.0

Operating System (OS)

Ubuntu 22.04

GPU Name

RTX 5090

GPU Driver and CUDA versions

Driver Version: 580.178.04 CUDA Version: 13.0

Logs

isaacsim62-fast-importer-public-evidence.zip

Additional information

No response

Activity

  1. self-assigned this
    on Nov 5, 2026
  2. jkriegshauser commented on Nov 5, 2026

    @jkriegshauser

    Tracked internally as NVBug 6889706

  3. vick-yu commented on Nov 5, 2026

    @vick-yu

    @ZiqiChai Thank you for the thorough write-up and the regression test – they made this quick to verify. This is now tracked internally and the Kit team has it. We will provide updates on this issue as they become available.

  4. republic1m commented on Nov 8, 2026

    @republic1m

    I'm experiencing the same issue in my environment as well.

    Environment: Ubuntu 24.04, Isaac Sim 6.2.0, Isaac Lab 3.0. RTX 5070Ti,Driver Version: 595.99.02 CUDA Version: 13.0

  5. vick-yu commented on Dec 1, 2026

    @vick-yu

    The issue has been resolved internally, but I am still confirming whether the upcoming version 6.3.0 will include the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions