Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1686367 - Useless warnings and errors on the console [NEEDINFO]
Summary: Useless warnings and errors on the console
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: spice-gtk
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Marc-Andre Lureau
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-07 10:48 UTC by Christophe de Dinechin
Modified: 2019-04-15 11:11 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
marcandre.lureau: needinfo? (dinechin)


Attachments (Terms of Use)

Description Christophe de Dinechin 2019-03-07 10:48:20 UTC
Description of problem:

When using virt-viewer under normal conditions, a large number of rather annoying warnings are emitted, ranging from information about connections to failed assertions.

Version-Release number of selected component (if applicable):
virt-viewer.x86_64                      7.0-1.fc29                       @fedora
spice-glib.x86_64                        0.35-3.fc29                    @fedora 
spice-gtk3.x86_64                        0.35-3.fc29                    @fedora 
spice-protocol.noarch                    0.12.15-1.fc29                 @updates
spice-server.x86_64                      0.14.1-2.fc29                  @updates
spice-vdagent.x86_64                     0.18.0-2.fc29                  @fedora 

How reproducible: Always


Steps to Reproduce:
1. Run virt-viewer on a guest
2. Look at the console
3. There is no step 3

Actual results:

A spew of messages, e.g.:

(virt-viewer:6229): GSpice-WARNING **: 10:45:34.323: PulseAudio context failed Connection refused

(virt-viewer:6229): GSpice-WARNING **: 10:45:34.323: pa_context_connect() failed: Connection refused
AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': Connection refused
AL lib: (WW) alcSetError: Error generated on device (nil), code 0xa005

(virt-viewer:6229): GLib-GObject-CRITICAL **: 10:45:35.801: g_object_get: assertion 'G_IS_OBJECT (object)' failed

(virt-viewer:6229): GLib-GObject-CRITICAL **: 10:45:35.801: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': Connection refused
AL lib: (WW) alcSetError: Error generated on device (nil), code 0xa005

(virt-viewer:6229): GLib-GObject-CRITICAL **: 10:45:36.393: g_object_get: assertion 'G_IS_OBJECT (object)' failed

(virt-viewer:6229): GLib-GObject-CRITICAL **: 10:45:36.393: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': Connection refused
AL lib: (WW) alcSetError: Error generated on device (nil), code 0xa005
AL lib: (EE) ALCcaptureAlsa_open: Could not open capture device 'default': Connection refused
AL lib: (WW) alcSetError: Error generated on device (nil), code 0xa004

(virt-viewer:6229): GLib-GObject-CRITICAL **: 10:45:36.599: g_object_set: assertion 'G_IS_OBJECT (object)' failed

(virt-viewer:6229): GLib-GObject-CRITICAL **: 10:45:36.599: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(virt-viewer:6229): GLib-GObject-CRITICAL **: 10:45:36.600: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(virt-viewer:6229): GSpice-WARNING **: 10:45:36.600: gst lacks volume capabilities on src

(virt-viewer:6229): GLib-GObject-CRITICAL **: 10:45:36.600: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(virt-viewer:6229): GSpice-WARNING **: 10:45:36.600: gst lacks mute capabilities on src: 0

(virt-viewer:6229): GLib-GObject-CRITICAL **: 10:45:36.600: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(virt-viewer:6229): GSpice-WARNING **: 10:45:36.649: Warning no automount-inhibiting implementation available

(virt-viewer:6229): GSpice-WARNING **: 10:45:41.934: keyboard grab failed 1

(virt-viewer:6229): GSpice-WARNING **: 10:45:41.939: keyboard grab failed 1

(virt-viewer:6229): GSpice-WARNING **: 10:45:47.865: keyboard grab failed 4

(virt-viewer:6229): GSpice-WARNING **: 10:46:02.623: keyboard grab failed 4


Expected results:

No messages, or if any message, messages that are actually informative to the user and show a path of action. For example: "PulseAudio context failed" is a developer-only message.


Additional info:

Suggestions:

1. log these messages somewhere in case a developer wants to see them, but do not send them to the console.

2. add a menu entry in virt-viewer to see the log.

3. Think about a general mechanism for SPICE to report errors to the higher level. Some messages might deserve a UI-level warning, e.g. a little red rectangle at the bottom of the viewer window stating "No audio available - Please click here for information on troubleshooting" that would open an URL explaining possible reasons and solutions. (In my case it's most likely because I was running it over X11).

4. Get rid of the assertions that have been failing forever. Either the code is robust to them, or we should address them. But for an end-user, "assertion 'G_IS_OBJECT (object)' failed" is really annoying if not worrisome.

Comment 1 Christophe Fergeau 2019-03-07 11:27:10 UTC
I'm not seeing any of these messages on my f29 installation, any idea if there is anything special on your system regarding sound, pulseaudio, ...?


Note You need to log in before you can comment on or make changes to this bug.