fix(qt_display): map channel_id to label index and wait for UI ready - #109
Open
Czhazha wants to merge 1 commit into
Open
fix(qt_display): map channel_id to label index and wait for UI ready#109Czhazha wants to merge 1 commit into
Czhazha wants to merge 1 commit into
Conversation
Fix segfault when channel_id is not a contiguous index (e.g. 2, 3, 20, 30). Wait for Qt widgets to be created before displaying frames. Also fix osd.json class_names_file path in yolox_bytetrack_osd_qt sample.
Czhazha
force-pushed
the
fix/qt-display-channel-mapping
branch
from
June 8, 2026 02:53
a352d93 to
78f10fe
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
qt_displaywhenchannel_idis not a contiguous index (e.g. 2, 3, 20, 30)class_names_filepath inyolox_bytetrack_osd_qtsampleosd.jsonProblem
Running
run_hdmi_show.shcausedSegmentation faultbecauselabel_vec[channel_id]was out of bounds.After adding bounds check, warnings like
label index X exceeds label count 0appeared due to UI init race.Test plan
libqt_display.soon SoC platformsudo ./run_hdmi_show.shwith 4 video channels