! 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 !
NULL value passed to builder_add_value() generates warning
Status:
RESOLVED: FIXED
Product:
Xfce4-session
Component:
General

Comments

Description Theo Linkspfeifer editbugs 2019-07-20 12:10:48 CEST
When opening xfce4-session-settings I get the following log output (includes my own debug lines):

(xfce4-session:2241): xfce4-session-WARNING **: 11:24:11.061: xfsm_client.c:builder_add_value: name = Program
(xfce4-session:2241): xfce4-session-WARNING **: 11:24:11.061: xfsm_client.c:builder_add_value: value = "pulseaudio"

(xfce4-session:2241): xfce4-session-WARNING **: 11:24:11.061: xfsm_client.c:builder_add_value: name = RestartStyleHint
(xfce4-session:2241): GLib-GObject-CRITICAL **: 11:24:11.061: g_strdup_value_contents: assertion 'G_IS_VALUE (value)' failed
(xfce4-session:2241): xfce4-session-WARNING **: 11:24:11.061: xfsm_client.c:builder_add_value: value = (null)
(xfce4-session:2241): xfce4-session-WARNING **: 11:24:11.061: xfsm_client.c:builder_add_value: Value type not supported

(xfce4-session:2241): xfce4-session-WARNING **: 11:24:11.061: xfsm_client.c:builder_add_value: name = ProcessID
(xfce4-session:2241): GLib-GObject-CRITICAL **: 11:24:11.061: g_strdup_value_contents: assertion 'G_IS_VALUE (value)' failed
(xfce4-session:2241): xfce4-session-WARNING **: 11:24:11.061: xfsm_client.c:builder_add_value: value = (null)
(xfce4-session:2241): xfce4-session-WARNING **: 11:24:11.061: xfsm_client.c:builder_add_value: Value type not supported

(xfce4-session:2241): xfce4-session-WARNING **: 11:24:11.061: xfsm_client.c:builder_add_value: name = _GSM_Priority
(xfce4-session:2241): GLib-GObject-CRITICAL **: 11:24:11.061: g_strdup_value_contents: assertion 'G_IS_VALUE (value)' failed
(xfce4-session:2241): xfce4-session-WARNING **: 11:24:11.061: xfsm_client.c:builder_add_value: value = (null)
(xfce4-session:2241): xfce4-session-WARNING **: 11:24:11.061: xfsm_client.c:builder_add_value: Value type not supported

(xfce4-session:2241): xfce4-session-WARNING **: 11:24:11.061: xfsm_client.c:builder_add_value: name = _GSM_DesktopFile
(xfce4-session:2241): GLib-GObject-CRITICAL **: 11:24:11.061: g_strdup_value_contents: assertion 'G_IS_VALUE (value)' failed
(xfce4-session:2241): xfce4-session-WARNING **: 11:24:11.061: xfsm_client.c:builder_add_value: value = (null)
(xfce4-session:2241): xfce4-session-WARNING **: 11:24:11.061: xfsm_client.c:builder_add_value: Value type not supported
Comment 1 Theo Linkspfeifer editbugs 2019-08-11 00:18:11 CEST
Created attachment 8863 
diff

I guess adding a simple check does the job.
Comment 2 Skunnyk editbugs 2019-08-18 22:26:41 CEST
I can reproduce the warning " Value type not supported", but your patch didn't silence it
Comment 3 Theo Linkspfeifer editbugs 2020-03-31 22:02:12 CEST
Created attachment 9661 
patch

Skunnyk has confirmed that the fix worked after restarting xfce4-session.
Comment 4 Git Bot editbugs 2020-05-01 11:41:27 CEST
Theo Linkspfeifer referenced this bugreport in commit ec016b693d824a4c752d7c5bb84132ec9eaf88f1

Silence runtime warning (Bug #15731)

https://gitlab.xfce.org/xfce/xfce4-session/commit/ec016b693d824a4c752d7c5bb84132ec9eaf88f1
Comment 5 Skunnyk editbugs 2020-05-01 11:51:43 CEST
Thank you !f
Comment 6 Git Bot editbugs 2020-05-01 12:04:10 CEST
Theo Linkspfeifer referenced this bugreport in commit 2fca52d8b7e1b80f95dc0f0cf12020475bd7de4a

Silence runtime warning (Bug #15731)

https://gitlab.xfce.org/xfce/xfce4-session/commit/2fca52d8b7e1b80f95dc0f0cf12020475bd7de4a

Bug #15731

Reported by:
Theo Linkspfeifer
Reported on: 2019-07-20
Last modified on: 2020-05-01

People

Assignee:
Xfce Bug Triage
CC List:
1 user

Version

Version:
4.13.3

Attachments

diff (619 bytes, patch)
2019-08-11 00:18 CEST , Theo Linkspfeifer
no flags
patch (940 bytes, patch)
2020-03-31 22:02 CEST , Theo Linkspfeifer
no flags

Additional information