Skip to content

fix: generate Context inside a thread - #10734

Merged
lucasfernog merged 2 commits into
devfrom
feat/generate-context-in-thread-workaround
Aug 23, 2024
Merged

fix: generate Context inside a thread#10734
lucasfernog merged 2 commits into
devfrom
feat/generate-context-in-thread-workaround

Conversation

@chippers

Copy link
Copy Markdown
Member

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.

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.
@chippers chippers self-assigned this Aug 22, 2024
@chippers
chippers requested a review from a team as a code owner August 22, 2024 07:29
@github-actions

Copy link
Copy Markdown
Contributor

Package Changes Through 0b6658c

There 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 Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tauri-utils 2.0.0-rc.5 2.0.0-rc.6
tauri-bundler 2.0.1-rc.4 2.0.1-rc.5
tauri-runtime 2.0.0-rc.5 2.0.0-rc.6
tauri-runtime-wry 2.0.0-rc.5 2.0.0-rc.6
tauri-codegen 2.0.0-rc.5 2.0.0-rc.6
tauri-macros 2.0.0-rc.5 2.0.0-rc.6
tauri-plugin 2.0.0-rc.5 2.0.0-rc.6
tauri-build 2.0.0-rc.5 2.0.0-rc.6
tauri 2.0.0-rc.5 2.0.0-rc.6
@tauri-apps/cli 2.0.0-rc.6 2.0.0-rc.7
tauri-cli 2.0.0-rc.6 2.0.0-rc.7

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
lucasfernog merged commit 88bc357 into dev Aug 23, 2024
@lucasfernog
lucasfernog deleted the feat/generate-context-in-thread-workaround branch August 23, 2024 11:46
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.
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.

[bug] thread 'main' has overflowed its stack (Windows 11 Tauri v2 beta)

2 participants