fix: suppress fromIccProfile Qt warning flood on startup#554
Merged
Conversation
Qt's ICC parser can't read the description tag of the macOS display colour profile and re-parses it for every native window, flooding the log with "fromIccProfile: Failed to parse description" on startup. Add the message to QT_LOG_NOISE_PATTERNS so the Qt log handler drops it, matching the existing treatment of other harmless Qt rendering noise.
azfoo
approved these changes
Jul 20, 2026
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.
Problem
On macOS, running TiLiA floods the log with hundreds of:
They appear at startup, before any file or user content is loaded.
Root cause
The message comes from QtGui's ICC parser (category
qt.gui.icc), notfrom any TiLiA asset — all bundled icons are SVG and carry no ICC profile.
Qt reads the display colour profile that macOS provides and fails to
parse its
desc(description) tag. The parse is repeated once per nativewindow/widget, so a single
QMainWindowalready yields ~17 lines; TiLiA'smain window plus its dock widgets and toolbars turn that into a flood.
Isolated on a real cocoa display:
fromIccProfilelinesQApplicationQIcon.fromTheme('tilia')QApplication+QMainWindow.show()QWebEngineViewThe warning is purely cosmetic — the images render correctly. There is
nothing to strip: the profile belongs to the user's monitor, not to a file
TiLiA ships or loads.
Fix
Add the message to
QT_LOG_NOISE_PATTERNSinboot.py, so the existing Qtlog handler drops it — the same treatment already applied to other harmless
Qt rendering noise (
QFont::setPixelSize,GetGlyphRunOutline). Filteringis by message substring, so it is source-agnostic.
Tests
Added
"fromIccProfile: Failed to parse description"to the parametrizedtest_known_noise_warning_is_suppressedcase.TestHandleQtLogMessagepasses (14 tests); ruff + black clean.
🤖 Generated with Claude Code