fix(macOS): resolve EXC_BAD_ACCESS crash during drag-and-drop on Sequoia#28
Open
jezip wants to merge 1 commit into
Open
fix(macOS): resolve EXC_BAD_ACCESS crash during drag-and-drop on Sequoia#28jezip wants to merge 1 commit into
jezip wants to merge 1 commit into
Conversation
Exorsky
added a commit
to Exorsky/splicerr
that referenced
this pull request
Jun 6, 2026
On macOS the webview's built-in drag-drop handler conflicts with the native drag session started by tauri-plugin-drag: the drag either does nothing (no file dropped into Finder/DAW) or crashes with EXC_BAD_ACCESS in AppKit's NSViewAlignRect. Disabling the webview handler is the documented requirement for the native drag plugin, and the app doesn't consume inbound native drops anyway. Windows was unaffected. Skips the unrelated `tao = "0.30"` change from upstream PR Robert-K#28: tauri already pins the newer tao 0.34.3, and that pin would only add a second, older tao to the tree without changing the one actually used. Also adds a build-macos-test workflow that produces an arm64 .dmg as a downloadable artifact (no release) for testing on Apple Silicon. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Issue Description
The application crashes immediately on launch or during the first drag-and-drop interaction on macOS 26 (Sequoia) with Apple Silicon (M1) hardware.
Crash Log Highlights:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)Exception Subtype: KERN_INVALID_ADDRESSTriggered by Thread: 0 maindrag::platform_impl::platform::start_dragAppKit->NSViewAlignRectCode Type: X86-64 (Translated)indicates Rosetta fallback.error.mov
Root Cause & Fix
This crash is a known incompatibility between older Tauri windowing libraries (
tao) and the strict memory alignment / Pointer Authentication rules introduced in macOS 15/16 and refined in 26.taoto version0.30. This version includes upstream fixes forNSViewalignment crashes on Apple Silicon.dragDropEnabled: falseintauri.conf.json. This resolves a race condition where the native macOS drag handler conflicts with the webview's HTML5 drag handler, leading to an invalid memory access attempt.Changes
taodependency to0.30insrc-tauri/Cargo.toml."dragDropEnabled": falseto the window configuration insrc-tauri/tauri.conf.json.work.1.mov