[PR #34] fix: import tensorrt before nvvfx to prevent dynamic library conflicts #41

Open
opened 2026-10-26 22:28:20 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Comfy-Org/ComfyUI_Nvidia_VFX_Nodes/pull/34
Author: @reaperhammer
Created: 7/17/2026
Status: 🔄 Open

Base: main ← Head: fix-import-order-tensorrt


📝 Commits (1)

  • 42088c2 fix: import tensorrt before nvvfx to prevent dynamic library conflicts

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 __init__.py (+4 -0)

📄 Description

nvvfx bundles its own older version of the TensorRT runtime library (libnvinfer.so.10 / version 10.9.0) but does not include companion builder resources. If nvvfx is imported first, the dynamic linker loads the 10.9.0 shared library. When other custom nodes (such as RIFE TensorRT) attempt to call tensorrt.Builder (which expects 10.12 in the environment), the builder references the preloaded 10.9.0 library, tries to search for the nonexistent libnvinfer_builder_resource.so.10.9.0, and fails to initialize (TypeError: pybind11::init(): factory function returned nullptr). Preloading tensorrt before nvvfx at startup solves this conflict by ensuring the environment's correct 10.12 shared libraries are loaded first.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Comfy-Org/ComfyUI_Nvidia_VFX_Nodes/pull/34 **Author:** [@reaperhammer](https://github.com/reaperhammer) **Created:** 7/17/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix-import-order-tensorrt` --- ### 📝 Commits (1) - [`42088c2`](https://github.com/Comfy-Org/ComfyUI_Nvidia_VFX_Nodes/commit/42088c23ec3046d957d650582f19cba88352802b) fix: import tensorrt before nvvfx to prevent dynamic library conflicts ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `__init__.py` (+4 -0) </details> ### 📄 Description nvvfx bundles its own older version of the TensorRT runtime library (libnvinfer.so.10 / version 10.9.0) but does not include companion builder resources. If nvvfx is imported first, the dynamic linker loads the 10.9.0 shared library. When other custom nodes (such as RIFE TensorRT) attempt to call tensorrt.Builder (which expects 10.12 in the environment), the builder references the preloaded 10.9.0 library, tries to search for the nonexistent libnvinfer_builder_resource.so.10.9.0, and fails to initialize (TypeError: pybind11::init(): factory function returned nullptr). Preloading tensorrt before nvvfx at startup solves this conflict by ensuring the environment's correct 10.12 shared libraries are loaded first. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/ComfyUI_Nvidia_VFX_Nodes#41
No description provided.