Skip to content

core: raise the qml js stack limit - #4194

Merged
bbedward merged 1 commit into
duxlabs-dev:masterfrom
cmleon51:fix/keyboard_focus_in_search
Nov 7, 2026
Merged

bbedward merged 1 commit into
duxlabs-dev:masterfrom
cmleon51:fix/keyboard_focus_in_search

Conversation

@cmleon51

@cmleon51 cmleon51 commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Description

In Qt older than 6.10 the system raises multiple RangeException since it usses more the 4MB JS stack limit. Through this commit we increase that stack limit to 16MB and fix issues like #4175 caused by this stack limit.

The issue was reproduced through a VM where multiple qt versions were tested.

Cause: on Qt versions older than 6.10 qml reserved the JS stack up front and from commit dd95bf5 the stack grew bigger than the default limit of 4MiB causing JS handlers to not even start

Fix: increase the JS stack to 16MiB

Known Issues:

  • apps started from the launcher keep the 16MiB JS stack change but I don't believe that to be an issue

The code was written with Claude Code but it was reviewed, understood and modified by me.

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

Fixes #4175

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

In Qt older than 6.10 the system raises multiple RangeException since it
usses more the 4MiB JS stack limit. Through this commit we increase that
stack limit to 16MiB and fix issues like duxlabs-dev#4175 caused by this stack
limit.
@github-actions github-actions Bot added core Go daemon and CLI under core/ fix labels Nov 7, 2026
@bbedward
bbedward merged commit 5f5dd74 into duxlabs-dev:master Nov 7, 2026
6 checks passed
dux-ci Bot pushed a commit that referenced this pull request Nov 7, 2026
port 2.1

(cherry picked from commit 5f5dd74)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Go daemon and CLI under core/ fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keyboard not recognized in search

2 participants