Repository navigation
core: raise the qml js stack limit - #4194
Merged
bbedward merged 1 commit intoNov 7, 2026
Merged
Conversation
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.
dux-ci Bot
pushed a commit
that referenced
this pull request
Nov 7, 2026
port 2.1 (cherry picked from commit 5f5dd74)
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.
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:
The code was written with Claude Code but it was reviewed, understood and modified by me.
Type of change
Related issues
Fixes #4175
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings