Skip to content

fix: SG-44910: defer HDPI resize workaround until after window is shown - #1392

Merged
bernie-laberge merged 1 commit into
AcademySoftwareFoundation:mainfrom
bernie-laberge:fix_linux_seg_fault
Aug 25, 2026
Merged

fix: SG-44910: defer HDPI resize workaround until after window is shown#1392
bernie-laberge merged 1 commit into
AcademySoftwareFoundation:mainfrom
bernie-laberge:fix_linux_seg_fault

Conversation

@bernie-laberge

Copy link
Copy Markdown
Contributor

fix: SG-44910: defer HDPI resize workaround until after window is shown

Linked issues

NA

Describe the reason for the change.

  • Fixes intermittent Linux startup segfault in QQmlData::isSignalConnected triggered from RvDocument constructor HDPI resize

Summarize your change.

  • The Qt6 HDPI resize trick was scheduled from the RvDocument constructor, which could race with QML-backed UI startup and crash in QQmlData on Linux. Run it from showEvent instead, and only when HDPI scaling is active.
  • Moves the resize workaround to the first showEvent, matching the original intent (Feature/Qt6 - Fix hdpi issue that magically fixes itself when resizing the main window #709) that it run after the view is shown
  • Runs only on macOS or when devicePixelRatio() > 1.0

Describe what you have tested and on which operating system.

Successfully tested on Rocky Linux 9

Add a list of changes, and note any that might need special attention during the review.

If possible, provide screenshots.

The Qt6 HDPI resize trick was scheduled from the RvDocument constructor,
which could race with QML-backed UI startup and crash in QQmlData on Linux.
Run it from showEvent instead, and only when HDPI scaling is active.

Signed-off-by: Bernard Laberge <bernard.laberge@autodesk.com>
@bernie-laberge
bernie-laberge marked this pull request as ready for review August 25, 2026 15:30
@bernie-laberge
bernie-laberge merged commit 09930b8 into AcademySoftwareFoundation:main Aug 25, 2026
16 checks passed
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.

3 participants