Skip to content

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

@sezanzeb

Description

@sezanzeb
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions