Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macos: fix crash when 'Open Patch' is used #4108

Merged

Conversation

black-sliver
Copy link
Member

What is this fixing or adding?

On macos, when kivy handles the GUI of the process, trying to instantiate tk will crash.
This spawns tk in multiprocessing for open_filename and open_directory if tk is required.

Fixes [Launcher] Open Patch button crashing (MacOS).

Note: even if we had plyer, there are edge cases that are not handled well by it, so the tk code is likely gonna stay. More on that in the linked discord thread.

How was this tested?

https://discord.com/channels/731205301247803413/1277050370756972596/1300051092603797619

@black-sliver black-sliver added the is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. label Oct 27, 2024
@github-actions github-actions bot added affects: core Issues/PRs that touch core and may need additional validation. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels Oct 27, 2024
@black-sliver black-sliver merged commit 382a5df into ArchipelagoMW:main Oct 28, 2024
18 checks passed
@black-sliver black-sliver deleted the fix/macos-kivy-tk-dialog-crash branch October 28, 2024 07:41
AustinSumigray pushed a commit to AustinSumigray/Archipelago that referenced this pull request Jan 4, 2025
* macos: fix crash when 'Open Patch' is used

* Utils: fix error message in open_directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: core Issues/PRs that touch core and may need additional validation. is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants