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

Hangs forever within multiprocessing.Process when also importing Gtk #97

Open
sezanzeb opened this issue Mar 6, 2021 · 0 comments
Open

Comments

@sezanzeb
Copy link

sezanzeb commented Mar 6, 2021

import multiprocessing
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
from pydbus import SystemBus

def bus():
    print('SystemBus()...') 
    bus = SystemBus()
    print(bus)

multiprocessing.Process(target=bus).start()

Expected output:

SystemBus()...
<pydbus.bus.Bus object at 0x7f77996700a0>

Actual output:

SystemBus()...

It works either without multiprocessing.Process or without importing Gtk

python-pydbus 0.6.0-7
python-gobject 3.38.0-3
Python 3.9.1
manjaro

@sezanzeb sezanzeb changed the title hangs forever within multiprocessing.process when also importing gtk hangs forever within multiprocessing.Process when also importing Gtk Mar 6, 2021
@sezanzeb sezanzeb changed the title hangs forever within multiprocessing.Process when also importing Gtk Hangs forever within multiprocessing.Process when also importing Gtk Mar 6, 2021
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

1 participant