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

Closing command line Wine application causes all other Wine sessions to freeze #41

Open
KamilaBorowska opened this issue Jan 6, 2023 · 6 comments

Comments

@KamilaBorowska
Copy link

KamilaBorowska commented Jan 6, 2023

If you have a graphical Wine applications open, closing a text application will cause Wine applications to freeze.

For instance, you can run winecfg, followed by cmd, and then exit cmd by typing exit, and then winecfg will freeze.

@KamilaBorowska KamilaBorowska changed the title Closing Wine application causes all other Wine sessions to freeze Closing command line Wine application causes all other Wine sessions to freeze Jan 6, 2023
@fastrizwaan
Copy link

flatpak kill org.winehq.Wine would help to close all instances.

@xalt7x
Copy link

xalt7x commented Mar 7, 2023

Sounds similar to bottlesdevs/Bottles#2759

@foresto
Copy link

foresto commented Jun 29, 2023

Reproducible with two instances of winecfg:

  1. From terminal A, flatpak run --command=winecfg org.winehq.Wine
  2. From terminal B, flatpak run --command=winecfg org.winehq.Wine
  3. Close the second instance of winecfg

Both terminal A and B have now returned to their shell prompts. The first winecfg window is still present, but is now frozen.

@charlesthobe
Copy link
Contributor

charlesthobe commented Aug 10, 2023

Might also be related to this: bottlesdevs/Bottles#2372
albeit sudo flatpak override --allow=per-app-dev-shm org.winehq.Wine doesn't fix it.

@charlesthobe
Copy link
Contributor

Thing is if you run flatpak run --command=sh org.winehq.Wine then run winecfg & and then wine notepad & etc, the bug doesn't happen, so I think the bug has something to do with creating multiple bwrap instances.

@charlesthobe
Copy link
Contributor

charlesthobe commented Dec 3, 2023

The process space of one instance doesn't get exposed to another, this is most likely what causes the issue because of problems with IPC.
IDK if it's possible to create an intermediary executable that detects if an instance of the application is already running to launch the new command inside that instance, but if it's possible then it's probably the solution.
flatpak/flatpak#1963

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

No branches or pull requests

5 participants