Skip to content

fix(qt_display): map channel_id to label index and wait for UI ready - #109

Open
Czhazha wants to merge 1 commit into
sophgo:masterfrom
Czhazha:fix/qt-display-channel-mapping
Open

fix(qt_display): map channel_id to label index and wait for UI ready#109
Czhazha wants to merge 1 commit into
sophgo:masterfrom
Czhazha:fix/qt-display-channel-mapping

Conversation

@Czhazha

@Czhazha Czhazha commented Jun 5, 2026

Copy link
Copy Markdown

Summary

  • Fix segfault in qt_display when channel_id is not a contiguous index (e.g. 2, 3, 20, 30)
  • Wait for Qt widgets to be fully created before displaying frames, avoiding race-condition warnings
  • Fix class_names_file path in yolox_bytetrack_osd_qt sample osd.json

Problem

Running run_hdmi_show.sh caused Segmentation fault because label_vec[channel_id] was out of bounds.
After adding bounds check, warnings like label index X exceeds label count 0 appeared due to UI init race.

Test plan

  • Rebuilt libqt_display.so on SoC platform
  • Ran sudo ./run_hdmi_show.sh with 4 video channels
  • No segfault, no label index warnings, video displays correctly

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.
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