Control: clone -1 -2 Control: reassign -2 libupower-glib3 0.99.4-3 Control: severity -2 critical Control: block -1 by -2
¡Hola! El 2016-06-17 a las 08:17 +0200, Krzysztof Słychań escribió:
Package: cinnamon Version: 3.0.4-1 Severity: normal
cinnamon-settings throws a segmentation fault whenever I try to open the power settings, be it from the panel applet or the settings window.
Steps to reproduce:1. open "cinnamon-settings" in terminal 2. enter the power settings 3. EXPECTED: you have the power settings applet HAPPENS: window closes, you get segmentation fault:
$ cinnamon-settings [0] 16-06-17 8:01 Loading Power module [1] (PID) segmentation fault cinnamon-settings
(tested on a clean boot, with the same result) Power management was working about a month ago or so - possibly a regression.I'm using systemd 230-2 and upower 0.99.4-3.
This is caused by a change in the libupower-glib3 0.99.4-3, installing the 0.99.4-2 version fixes the issue.
I'm cloning the bug to notify the upower maintainers about it. Currently the cs_power module uses the gir interface doing: import gi gi.require_version('UPowerGlib', '1.0') from gi.repository import UPowerGlib up_client = UPowerGlib.Client() has_lid = up_client.get_lid_is_present() ------------With the new version that snippet segfaults. I'm not well versed in the gi internals but it seems to me that UPowerGlib.Client() is not creating a new instance, probably related to the fact that it used to be a singleton, I'm not sure.
Using the similar version: import gi gi.require_version('UPowerGlib', '1.0') from gi.repository import UPowerGlib up_client = UPowerGlib.Client.new() has_lid = up_client.get_lid_is_present() -------------Works as expected in both versions, so I'll probably patch this in the next upload if it's not fixed in upower by then.
Happy hacking, -- "Fighting patents one by one will never eliminate the danger of software patents, any more than swatting mosquitoes will eliminate malaria." -- Richard M. Stallman Saludos /\/\ /\ >< `/
signature.asc
Description: Digital signature