Skip to content

sysmon: fix a crash on qt 6.11 when the dash opens - #4466

Closed
Conava wants to merge 1 commit into
duxlabs-dev:masterfrom
Conava:sysmon-polish-without-window
Closed

Conava wants to merge 1 commit into
duxlabs-dev:masterfrom
Conava:sysmon-polish-without-window

Conversation

@Conava

@Conava Conava commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Description

Fix a crash on Qt 6.11 when opening the dash with a system monitor card on it. The card measured its contents while it wasn't in a window, which Qt 6.11 doesn't handle. This came in with #4460 and #4461.

I'm on Qt 6.12, which doesn't crash here, so I asked the reporter on Discord to confirm the fix on 6.11.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Screenshots / video

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dux-docs to document any new behaviors: https://github.com/duxlabs-dev/dux-docs

The system monitor card polishes all of its items to measure them.
Polishing a Shape that is not in a window dereferences a null window
in Qt 6.11. Since the card keeps its rows while paused, this ran while
the dash card had no window and crashed the shell when the dash opened.

Skip the measuring while the card has no window and measure again once
it gets one.
@github-actions github-actions Bot added fix ui Quickshell UI under quickshell/ labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found.
Checked: the Window.window guard in settle() and the re-settle on window attach in MonitorContent.qml, covering the existing settle/resetZoom triggers, the deferred Qt.callLater coalescing, the attached Window usage against the repo convention, and idle cost (no new timers or connections). Model: claude-opus-5-5.

@Conava

Conava commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

Closed with 30d4357

@Conava Conava closed this Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant