Skip to content

fix: show the export output when a TensorRT export fails - #134

Open
gh-underfoot581 wants to merge 1 commit into
ack00gar:mainfrom
gh-underfoot581:fix/tensorrt-export-error-output
Open

fix: show the export output when a TensorRT export fails#134
gh-underfoot581 wants to merge 1 commit into
ack00gar:mainfrom
gh-underfoot581:fix/tensorrt-export-error-output

Conversation

@gh-underfoot581

Copy link
Copy Markdown

A failed TensorRT export reports Export failed: with nothing after it. _run_export_subprocess starts the subprocess with stderr=subprocess.STDOUT (line 526), so the stderr it hands back is always empty.

  • Report stdout, which carries the merged output, on a non-zero exit
  • Append the traceback the export script already writes into its JSON result, which was never read

This came out of chasing an export that kept failing with an empty message on Windows with an NVIDIA GPU. Seeing the actual error is what made the underlying problem findable.

The export subprocess is started with stderr=subprocess.STDOUT, so the
stderr handed back is always empty and every failure surfaces as
"Export failed:" with nothing after it. Report stdout instead, which
carries the merged output.

The JSON branch gets the same treatment: the export script already puts
a traceback in its result, it was just never read.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant