Skip to content

Improve error messages in video loader with file name in the message #5910

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

Merged
merged 2 commits into from
May 6, 2025

Conversation

JanuszL
Copy link
Contributor

@JanuszL JanuszL commented May 6, 2025

  • adds filename information to error messages in video_loader.cc to make debugging
    easier by by extending DALI_FAIL and DALI_ENFORCE error messages in the video loader

Category:

Other (e.g. Documentation, Tests, Configuration)

Description:

  • adds filename information to error messages in video_loader.cc to make debugging
    easier by by extending DALI_FAIL and DALI_ENFORCE error messages in the video loader

Additional information:

Affected modules and functionalities:

  • video loader

Key points relevant for the review:

  • NA

Tests:

  • Existing tests apply
  • New tests added
    • Python tests
    • GTests
    • Benchmark
    • Other
  • N/A

Checklist

Documentation

  • Existing documentation applies
  • Documentation updated
    • Docstring
    • Doxygen
    • RST
    • Jupyter
    • Other
  • N/A

DALI team only

Requirements

  • Implements new requirements
  • Affects existing requirements
  • N/A

REQ IDs: N/A

JIRA TASK: N/A

@JanuszL JanuszL force-pushed the improve_video_reader_loging branch from 3e60fd5 to d5c5c6a Compare May 6, 2025 05:47
@JanuszL
Copy link
Contributor Author

JanuszL commented May 6, 2025

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [27993386]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [27993386]: BUILD PASSED

}
auto stream = file.fmt_ctx_->streams[file.vid_stream_idx_];
req.frame_base = file.frame_base_;

if (vid_decoder_) {
vid_decoder_->push_req(req);
} else {
DALI_FAIL("No video decoder even after opening a file");
DALI_FAIL(make_string("No video decoder even after opening a file for file: ", req.filename));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
DALI_FAIL(make_string("No video decoder even after opening a file for file: ", req.filename));
DALI_FAIL(make_string("No video decoder even after opening a file: ", req.filename));

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

JanuszL added 2 commits May 6, 2025 16:22
- adds filename information to error messages in video_loader.cc to make debugging
  easier by by extending DALI_FAIL and DALI_ENFORCE error messages in the video loader

Signed-off-by: Janusz Lisiecki <[email protected]>
Signed-off-by: Janusz Lisiecki <[email protected]>
@JanuszL JanuszL force-pushed the improve_video_reader_loging branch from d5c5c6a to d6958f6 Compare May 6, 2025 14:23
@JanuszL
Copy link
Contributor Author

JanuszL commented May 6, 2025

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [28014855]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [28014855]: BUILD FAILED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [28014855]: BUILD PASSED

@JanuszL JanuszL merged commit b16b750 into NVIDIA:main May 6, 2025
7 checks passed
@JanuszL JanuszL deleted the improve_video_reader_loging branch May 6, 2025 18:01
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.

4 participants