Skip to content

Fixes freeze on certain systems with incorrect font configuration (#1… - #11848

Merged
kryksyh merged 1 commit into
audacity:release-3.7.9from
kryksyh:fix_freeze_on_start_on_zh_cn_locale
Sep 1, 2026
Merged

kryksyh merged 1 commit into
audacity:release-3.7.9from
kryksyh:fix_freeze_on_start_on_zh_cn_locale

Conversation

@kryksyh

@kryksyh kryksyh commented Aug 31, 2026

Copy link
Copy Markdown
Member

Resolves: #11623

Fixes freeze on certain systems with incorrect font configuration.

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

QA:

  • Testflow test cases have been run

@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: c6795cf0-0bb0-46bc-8601-267f4ad4131c

📥 Commits

Reviewing files that changed from the base of the PR and between 140d55b and 019f35e0d318bd23b97a6652323bbc9f501c1bf0.

📒 Files selected for processing (1)
  • src/widgets/NumericTextCtrl.cpp

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

NumericTextCtrl::ComputeSizing now enforces a minimum digit font size of 4 points. The shrinking loop stops at this limit, and the final decrement is clamped to prevent smaller values.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: ⚪ Minimal · up to 019f3

The change prevents freezes caused by invalid font sizing while keeping the adjustment localized to numeric control sizing. No actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the primary change: fixing a freeze caused by incorrect font configuration.
Description check ✅ Passed The description includes the linked issue, change motivation, required checklist, and QA section. Testflow execution is explicitly marked as not completed, but the description is otherwise complete.
Linked Issues check ✅ Passed The change directly addresses issue #11623 by bounding NumericTextCtrl::ComputeSizing() at a minimum font size. This prevents the unbounded sizing loop and supports normal startup under restrictive fo…
Out of Scope Changes check ✅ Passed The changes are limited to NumericTextCtrl font-sizing behavior and are directly related to issue #11623. No unrelated changes are present.
Full details: Linked Issues check

Explanation

The change directly addresses issue #11623 by bounding NumericTextCtrl::ComputeSizing() at a minimum font size. This prevents the unbounded sizing loop and supports normal startup under restrictive font configurations.

Warning

Linked repositories: Public OSS repositories can only analyze public repositories installed in this organization. No linked repositories were analyzed; skipped musescore/musescore.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@kryksyh
kryksyh force-pushed the fix_freeze_on_start_on_zh_cn_locale branch from 019f35e to c306b1c Compare September 1, 2026 11:22
@kryksyh
kryksyh merged commit 3a33fda into audacity:release-3.7.9 Sep 1, 2026
0 of 8 checks passed
@kryksyh
kryksyh deleted the fix_freeze_on_start_on_zh_cn_locale branch September 1, 2026 11:22
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.

[Linux] Audacity hangs at startup under zh_CN.UTF-8 locale

2 participants