Skip to content

fix(macOS): panic when loading multiple dylibs (fix #1675) - #1677

Merged
pewsheen merged 3 commits into
tauri-apps:devfrom
russellmcc:dylib-support
Feb 27, 2026
Merged

fix(macOS): panic when loading multiple dylibs (fix #1675)#1677
pewsheen merged 3 commits into
tauri-apps:devfrom
russellmcc:dylib-support

Conversation

@russellmcc

Copy link
Copy Markdown
Contributor

closes #1675

This fixes the panic by using the new "auto-generating" name feature of define_class! objc2 - the name of the objective C class for the delegates will include the wry version number so will not be unsound to have multiple in the process.

I also added a unique name to the custom protocol handler, as this was causing issues even after the fix above.

I tested this with a local build of a few audio plug-ins using wry loaded into the same process

@russellmcc
russellmcc requested a review from a team as a code owner February 27, 2026 03:09
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedobjc2@​0.6.0 ⏵ 0.6.479 -110093100100

View full report

@pewsheen

Copy link
Copy Markdown
Contributor

Thank you! Do you have a minimum reproducible demo or repo so we can have a quick test for it.

@russellmcc

Copy link
Copy Markdown
Contributor Author

Thank you! Do you have a minimum reproducible demo or repo so we can have a quick test for it.

I can put something together!

@russellmcc

Copy link
Copy Markdown
Contributor Author

Here's a repro of both issues:

  • The crash
  • Protocol incorrectly sharing between unrelated dylibs

https://github.com/russellmcc/wry-dylib-repro

@pewsheen pewsheen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good! Your repro is clean and very helpful!

@github-actions

Copy link
Copy Markdown
Contributor

Package Changes Through f3f9b27

There are 1 changes which include wry 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
wry 0.54.2 0.54.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

@pewsheen
pewsheen merged commit 40a7032 into tauri-apps:dev Feb 27, 2026
21 checks passed
chriscraws pushed a commit to chriscraws/wry that referenced this pull request May 13, 2026
…auri-apps#1677)

* update to objc2 0.6.4

* fix custom protocol name

* add changelog
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.

macOS crash when loading wry from multiple dylibs in the same process

2 participants