Skip to content

Fix threading issues in iOS and macOS printing plugin#1921

Open
jcarvalho-ptech wants to merge 7 commits into
DavBfr:masterfrom
ptech:mac-ios-fix-thread-issues
Open

Fix threading issues in iOS and macOS printing plugin#1921
jcarvalho-ptech wants to merge 7 commits into
DavBfr:masterfrom
ptech:mac-ios-fix-thread-issues

Conversation

@jcarvalho-ptech

@jcarvalho-ptech jcarvalho-ptech commented Mar 19, 2026

Copy link
Copy Markdown

We did experience some issues while printing on different platforms, including deadlocks on MacOS/iOS, and crashes on Windows while accessing the printing properties.

This PR resolves those issues:

  • Ensure the printing logic runs on the main thread and utilising a RunLoop to drain the queue, to prevent the UI from freezing (the "beachball" on macOS) while waiting for the Dart layer to provide PDF data.

  • Ensure pdf extension doesn't get duplicated as as UIPrintInteractionController appends it automatically

Please review and consider if it's a viable contribution.

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.

2 participants