Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#33412 - [redshift] gtk ui segmentation fault

Attached to Project: Community Packages
Opened by Andrew S. Grigorev (eigrad) - Wednesday, 16 January 2013, 06:10 GMT
Last edited by Lukas Fleischer (lfleischer) - Monday, 03 June 2013, 21:27 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

$ redshift

(process:5477): GLib-GObject-CRITICAL **: g_type_instance_get_private: assertion `instance != NULL && instance->g_class != NULL' failed
[1] 5477 segmentation fault (core dumped) redshift
$ pacman -Q redshift pygtk librsvg python2-xdg
redshift 1.7-5
pygtk 2.24.0-3
librsvg 2.36.4-1
python2-xdg 0.25-1
This task depends upon

Closed by  Lukas Fleischer (lfleischer)
Monday, 03 June 2013, 21:27 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 1.7-6.
Comment by Vlad Seghete (vlsd) - Monday, 21 January 2013, 23:14 GMT
Running into exact same problem. No issue when using command line, as long as the location is set manually. Trying to set the location to geoclue fails with the above segfault. Note I am not running gnome so the first error is expected (just showing that it doesn't always segfault).

$ redshift -l gnome-clock
Cannot list GNOME panel applets.
Initialization of gnome-clock failed.

$ redshift -l geoclue
(process:17784): GLib-GObject-CRITICAL **: g_type_instance_get_private: assertion `instance != NULL && instance->g_class != NULL' failed
[1] 17784 segmentation fault (core dumped) redshift -l geoclue

$ pacman -Q geoclue
geoclue 0.12.0-5
Comment by Alexander F. Rødseth (xyproto) - Friday, 01 February 2013, 17:26 GMT
As a workaround, have you tried using redshift with redshiftgui? (https://aur.archlinux.org/packages/redshiftgui/)
Comment by bluephoenix47 (bluephoenix47) - Monday, 27 May 2013, 23:45 GMT
I'd been having the same problem. After a while of Googling, I found two things:

1) The seg fault has been fixed in the trunk of redshift (https://bugs.launchpad.net/redshift/+bug/806364).
2) The following command (via https://bugs.launchpad.net/redshift/+bug/808006) makes redshift+geoclue work for me (after I ensured hostip.info could figure out my location)
$ redshift -l geoclue:name=org.freedesktop.Geoclue.Providers.Hostip:path=/org/freedesktop/Geoclue/Providers/Hostip

Loading...