fix: generate Context inside a thread - #10734
Merged
Merged
Conversation
Contributor
Package Changes Through 0b6658cThere are 5 changes which include tauri-utils with prerelease, tauri-cli with prerelease, @tauri-apps/cli with prerelease, tauri-build with prerelease, tauri-runtime-wry with prerelease Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
lucasfernog
approved these changes
Aug 23, 2024
xtfer
added a commit
to velvet-tiger/automatic
that referenced
this pull request
Mar 1, 2026
tauri::generate_context!() expands to a large block of code that overflows the Windows main-thread stack (1MB). Generate the context on a temporary thread with an 8MB stack, then run the app on the main thread as required by macOS and WebView2. Mirrors the fix Tauri merged in tauri-apps/tauri#10734.
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.
fix #9882
this is a workaround for #9882 due to windows having a small stack size for the main thread (1MiB) versus other platforms which have 8MiB. the true fix would be to lower the generated code stack size, but with lots a plugins, there are lots of ACL configurations.