eoyilmaz / displaycal-py3

DisplayCAL Modernization Project
https://eoyilmaz.github.io/displaycal-py3/
GNU General Public License v3.0
774 stars 56 forks source link

Crash towards the end of the process #396

Open Kakupakat opened 3 weeks ago

Kakupakat commented 3 weeks ago

Versions (please complete the following information):

Describe the bug The program crashes after reading all the patches. While creating the profiles, I guess.

To Reproduce Start the calibration, all patches are read, wait a short moment, crash.

Expected behavior Start the calibration, all patches are read, wait a short moment, the profile is ready.

Screenshots DisplayCAL

Additional context

TypeError: TypeError('cannot use a string pattern on a bytes-like object')
TypeError: TypeError('cannot use a string pattern on a bytes-like object')
TypeError: TypeError('cannot use a string pattern on a bytes-like object')
TypeError: TypeError('cannot use a string pattern on a bytes-like object')
TypeError: TypeError('cannot use a string pattern on a bytes-like object')
--------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.11/site-packages/wx/lib/delayedresult.py", line 267, in wrapper
    result = workerFn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/DisplayCAL/worker.py", line 1842, in __call__
    result = self.producer(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/DisplayCAL/worker.py", line 11602, in create_profile
    result = self.update_profile(
             ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/DisplayCAL/worker.py", line 12276, in update_profile
    device_id = self.get_device_id(quirk=False, query=True)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/DisplayCAL/worker.py", line 8748, in get_device_id
    device_ids = colord.get_display_device_ids()
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/DisplayCAL/colord.py", line 266, in get_display_device_ids
    display.properties.get("DeviceId") for display in get_display_devices()
                                                      ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/DisplayCAL/colord.py", line 259, in get_display_devices
    return get_devices_by_kind("display")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/DisplayCAL/colord.py", line 254, in get_devices_by_kind
    for object_path in Colord.get_devices_by_kind(kind)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/DisplayCAL/util_dbus.py", line 67, in __call__
    return getattr(self._iface, self._method_name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/gi/overrides/Gio.py", line 349, in __call__
    result = self.dbus_proxy.call_sync(self.method_name, arg_variant,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gi.repository.GLib.GError: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable (2)

DisplayCAL: Uninhibited org.freedesktop.ScreenSaver
DisplayCAL: Uninhibited org.freedesktop.PowerManagement.Inhibit