Skip to content

fix: fs::Scope event deadlocks - #15474

Merged
Legend-Master merged 3 commits into
tauri-apps:devfrom
Legend-Master:scope-listener-dead-lock
Jun 8, 2026
Merged

fix: fs::Scope event deadlocks#15474
Legend-Master merged 3 commits into
tauri-apps:devfrom
Legend-Master:scope-listener-dead-lock

Conversation

@Legend-Master

@Legend-Master Legend-Master commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Fixes #15468
Closes #15469

Uses the same mechanism we use for the other event listeners, queue the pending actions when running an emit (listeners)

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Package Changes Through 38c3ac7

There are 5 changes which include tauri-utils with patch, tauri with patch, tauri-bundler with patch, tauri-cli with patch, @tauri-apps/cli with patch

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.9.2 2.9.3
tauri-bundler 2.9.2 2.9.3
tauri-runtime 2.11.2 2.11.3
tauri-runtime-wry 2.11.2 2.11.3
tauri-codegen 2.6.2 2.6.3
tauri-macros 2.6.2 2.6.3
tauri-plugin 2.6.2 2.6.3
tauri-build 2.6.2 2.6.3
tauri 2.11.2 2.11.3
@tauri-apps/cli 2.11.2 2.11.3
tauri-cli 2.11.2 2.11.3

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@Legend-Master
Legend-Master marked this pull request as ready for review June 4, 2026 10:29
@Legend-Master
Legend-Master requested a review from a team as a code owner June 4, 2026 10:29

@FabianLars FabianLars left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

untested

@Legend-Master
Legend-Master merged commit 7af245c into tauri-apps:dev Jun 8, 2026
19 checks passed
@Legend-Master
Legend-Master deleted the scope-listener-dead-lock branch June 8, 2026 11:10
Proksima pushed a commit to Proksima/tauri that referenced this pull request Aug 5, 2026
* fix: `fs::Scope` event deadlocks

* Unlisten first and add unit test

* Add change file
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] Re-entrant deadlock in fs::Scope: once() always deadlocks (emit() invokes listeners while holding the event_listeners mutex)

2 participants