! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-color-settings doesn't display any profiles
Status:
RESOLVED: FIXED
Product:
Xfce4-settings
Component:
Color Settings

Comments

Description Goran 2019-08-23 11:46:51 CEST
Created attachment 8944 
Example of color settings not showing any profiles

How to (possibly) reproduce:

Run xfce4-color-settings from a shell. 
On my device, it says "No profiles for the selected device".
Click "+" to add a color profile. Close the current dialog (either by pressing Esc or clicking on X) without doing any changes.
Click on "+" again. The following shows up on stderr:

(xfce4-color-settings:344): GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'XfceHeading'
(xfce4-color-settings:344): GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'GtkWidget'
(xfce4-color-settings:344): Gtk-CRITICAL **: gtk_widget_queue_resize: assertion 'GTK_IS_WIDGET (widget)' failed
(xfce4-color-settings:344): Gtk-CRITICAL **: gtk_container_foreach: assertion 'GTK_IS_CONTAINER (container)' failed

The profile list doesn't show up anymore (see attachment). When the above is done repeatedly, the program sometimes segfaults altogether, or aborts for various reasons such as:

free(): invalid size

or

corrupted size vs. prev_size

or

munmap_chunk(): invalid pointer

or

double free or corruption (out)

or even

free(): invalid pointer

Temporary workaround:
Exit the "Add color profile to monitor" dialog exclusively by clicking on the "Cancel" button
Comment 1 Simon Steinbeiss editbugs 2019-08-23 12:13:28 CEST
I can confirm the issue, I'll look into a fix.
Comment 2 Git Bot editbugs 2019-08-23 17:55:22 CEST
Simon Steinbeiss referenced this bugreport in commit ef0715288c36181bbb7061ebcee815fd14ed8708

color: Fix crash in add-profiles dialog (Bug #15876)

https://git.xfce.org/xfce/xfce4-settings/commit?id=ef0715288c36181bbb7061ebcee815fd14ed8708
Comment 3 Simon Steinbeiss editbugs 2019-08-23 17:55:47 CEST
I've pushed a fix to master. Please re-open if you see any more trouble.
Comment 4 Git Bot editbugs 2019-08-23 17:56:29 CEST
Simon Steinbeiss referenced this bugreport in commit 6d286c0ed8dd3964f21d8e3d48f15f1dbf465787

color: Fix crash in add-profiles dialog (Bug #15876)

https://git.xfce.org/xfce/xfce4-settings/commit?id=6d286c0ed8dd3964f21d8e3d48f15f1dbf465787

Bug #15876

Reported by:
Goran
Reported on: 2019-08-23
Last modified on: 2019-08-23

People

Assignee:
Simon Steinbeiss
CC List:
0 users

Version

Version:
4.14.0

Attachments

Additional information