Skip to content

Fix console crash on macOS - #183

Merged
tmontaigu merged 1 commit into
tmontaigu:masterfrom
rjanvier:fix_console_crash_macos
Sep 22, 2026
Merged

tmontaigu merged 1 commit into
tmontaigu:masterfrom
rjanvier:fix_console_crash_macos

Conversation

@rjanvier

@rjanvier rjanvier commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Fix CloudCompare/CloudCompare#2357
ConsoleWrapper constructor move the lambda. As as result it's unsafe to capture 'this' because the instance of this is eventually destroyed when it goes out of scope (it's a "temporary").

Don't know why it went unnoticed on Linux/Windows.

The PR removes also a usesless member and fixes a constructor (QColor passed but not used to init the Brush)

ConsoleWrapper constructor move the lambda. As as result it's unsafe to
capture 'this' because the instance of this is eventually destroyed when
it goes out of scope (it's a "temporary").

Don't know why it was unotticed on Linux/Windows.

The PR removes also a usesless member and fixes a constructor (QColor
passed but not used tho init the brush)
@tmontaigu
tmontaigu merged commit 772efa6 into tmontaigu:master Sep 22, 2026
7 of 8 checks passed
@rjanvier
rjanvier deleted the fix_console_crash_macos branch September 22, 2026 21:10
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.

PythonRuntime crashes CloudCompare on macOS when writing to stdout/stderr

2 participants