PoonLab / OpenRDP

An open-source re-implementation of the RDP4 recombination detection program
GNU General Public License v3.0
45 stars 9 forks source link

Strange gdk error messages in interactive mode #31

Closed ArtPoon closed 1 year ago

ArtPoon commented 2 years ago
In [1]: from openrdp.main import openrdp
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused

(ipython3:73710): Gdk-CRITICAL **: 21:15:01.446: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
ArtPoon commented 2 years ago

Run under verbose mode to get more information:

art@orolo:~/git/OpenRDP$ python3 -v -c 'from openrdp.main import openrdp'
...
import 'gi.overrides.Gio' # <_frozen_importlib_external.SourceFileLoader object at 0x7f05e3105cc0>
# destroy gi.repository.GModule
# destroy gi.repository.GdkPixbuf
# /usr/lib/python3/dist-packages/gi/overrides/__pycache__/Gdk.cpython-36.pyc matches /usr/lib/python3/dist-packages/gi/overrides/Gdk.py
# code object from '/usr/lib/python3/dist-packages/gi/overrides/__pycache__/Gdk.cpython-36.pyc'
# destroy gi.repository.GdkX11
Unable to init server: Could not connect: Connection refused
import 'gi.overrides.Gdk' # <_frozen_importlib_external.SourceFileLoader object at 0x7f05e310c080>
# destroy gi.repository.Atk
# /usr/lib/python3/dist-packages/gi/overrides/__pycache__/Gtk.cpython-36.pyc matches /usr/lib/python3/dist-packages/gi/overrides/Gtk.py
# code object from '/usr/lib/python3/dist-packages/gi/overrides/__pycache__/Gtk.cpython-36.pyc'
Unable to init server: Could not connect: Connection refused
import 'gi.overrides.Gtk' # <_frozen_importlib_external.SourceFileLoader object at 0x7f05e329a128>

(-c:74114): Gdk-CRITICAL **: 21:18:18.159: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
# destroy matplotlib.backends.backend_gtk3
ArtPoon commented 2 years ago

It looks like the module is attempting to launch an X Window system. Might be associated with loading matplotlib and running this remotely.

ArtPoon commented 1 year ago

was not able to reproduce this on orolo (Ubuntu 20.04.5, Python 3.8.10), closing for now