Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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