Public bug reported:

[ Impact ]

On Resolute, the UKUI system service in ukui-control-center 4.20.0.1-0ubuntu2
can crash repeatedly at boot when an affected DDC/CI monitor is connected.
This disrupts brightness control and other functions that rely on the service.

With libddcutil5 2.2.5-1, the service can abort when it calls the deprecated
ddca_create_display_ref() during display detection. The patch opens the
display using the reference already returned by enumeration.

[ Test Plan ]

1. On a Resolute test system running UKUI with ukui-control-center
   4.20.0.1-0ubuntu2 and libddcutil5 2.2.5-1, connect an affected monitor with
   DDC/CI enabled. Reboot and log in. Check the crash records for this boot
   and confirm that the UKUI system service backtrace contains both
   ddca_create_display_ref and liblaunchSysDbus.so.

2. Install ukui-control-center and libukcc3 from resolute-proposed. If
   libukcc-dev is installed, upgrade it to the same version. Record the
   installed versions and their APT source. Reboot with the same monitor
   connected and log in to UKUI.

3. Confirm that the UKUI system service instance loading liblaunchSysDbus.so
   starts and stays running. Check that the same crash does not recur during
   this boot.

[ Where problems could occur ]

If the reference returned by enumeration is invalid, the service could fail
to open the DDC handle or abort during initialization. Step 3 checks for a
crash or restart with the affected monitor connected.

[ Other Info ]

The fix shipped in ukui-control-center 4.20.0.2-0ubuntu1 in Stonking and
Tenacious.
Upstream commit d38318b9f3842df5a8d444452659c05704614a27.
https://gitee.com/openkylin/ukui-control-center/commit/d38318b9f3842df5a8d444452659c05704614a27

Debian #1144619 reports the same crash in ukui-control-center 4.20.0.1-1.
https://bugs.debian.org/1144619
https://www.mail-archive.com/[email protected]/msg2116874.html

** Affects: ukui-control-center (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2173724

Title:
  [SRU] UKUI system service crashes at boot while detecting DDC/CI
  monitors

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ukui-control-center/+bug/2173724/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to