Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(autoware_tensorrt_common): invalid engine model file #10309

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ralwing
Copy link
Contributor

@ralwing ralwing commented Mar 19, 2025

Signed-off-by: Grzegorz Głowacki gglowacki@autonomous-systems.pl

Description

After a CUDA update and the creation of a new .engine model, the module can print an error like this:

Error code: 1, Description: IRuntime::deserializeCudaEngine: Error Code 1: Serialization (Serialization assertion stdVersionRead == kSERIALIZATION_VERSION failed. Version tag does not match. Note: Current Version: 237, Serialized Engine Version: 236)

This error stops the node from loading, and it doesn't resolve itself. This PR fixes this by deleting the incompatible .engine file. The file will then be automatically regenerated when the node starts again. This makes software updates easier for production."

Effects on system behavior

Removes the incompatible engine model.

Signed-off-by: Grzegorz Głowacki <gglowacki@autonomous-systems.pl>
@github-actions github-actions bot added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Mar 19, 2025
Copy link

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

Copy link
Contributor

@amadeuszsz amadeuszsz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ralwing,

Thanks for your contribution!

I think it would be better to handle mismatch of TensorRT version used to build engine. This higher level mismatch would also fall into exception. Can you check if this PR does work for you?

If not, we can proceed with your PR. However, your code looks like a copy of someone else work, licensed under GPLv3. If this is the case, I think it is not a problem, but you might need to provide source of copied code and change the license of package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:perception Advanced sensor data processing and environment understanding. (auto-assigned)
Projects
Status: To Triage
Development

Successfully merging this pull request may close these issues.

2 participants