Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1081795

Summary: there is an audible glitch/crack/artifact in sound at the end of pause for final VM synchronization
Product: Red Hat Enterprise Linux 7 Reporter: mazhang <mazhang>
Component: spiceAssignee: Victor Toso <victortoso>
Status: CLOSED CURRENTRELEASE QA Contact: SPICE QE bug list <spice-qe-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: cfergeau, chayang, dblechte, djasa, hhuang, juzhang, knoel, kraxel, marcandre.lureau, mazhang, michen, mkenneth, mkrcmari, pvine, qzhang, rbalakri, rpacheco, victortoso, virt-bugs, virt-maint
Target Milestone: rc   
Target Release: 7.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 908435 Environment:
Last Closed: 2015-09-17 15:18:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 908435    
Bug Blocks:    

Comment 2 Gerd Hoffmann 2014-05-13 09:13:10 UTC
Ok guys, the volume isn't the problem at all.

I see the volume jump to 100% for a short time with ac97 (just let pavucontrol run with the applications tab open and watch the slider).  It jumps back before the actual playback starts.  With intel-hda the volume jump isn't present in the first place.

Nevertheless we have the sound artifact issue with both ac97 and intel-hda.  And it isn't just loud, it is simply noise.  It sounds that way if you try to playback a memory buffer which has random data instead of audio samples.  So most likely someone got the sound buffer management wrong here.

It doesn't look like qemu is at fault here though.  If I cut off spice from the sound path, by starting qemu with "QEMU_AUDIO_DRV=pa" environment variable set (audio goes "qemu -> pulse" instead of "qemu -> spice-server -> spice-client -> pulse" then) the sound artifact goes away.

Assigning back to spice for further investigation.

Comment 3 Marc-Andre Lureau 2015-01-02 15:41:34 UTC
moving to 7.2

Comment 7 Marc-Andre Lureau 2015-04-24 17:08:49 UTC
Is this a rhel only issue? I can't reproduce with f21 both with ac97 and hda.
Even the patch from https://bugzilla.redhat.com/show_bug.cgi?id=1012868 doesn't seem to change anything. Perhaps the recent codec/sound work changed something.
thanks

Comment 8 David Jaša 2015-05-07 15:30:40 UTC
rhel7 client to f21 hosts: glitch is audible
f21 client to f21 hosts: no glitch*

* an awful volume jump may occur on Fedora client however, hopefully addressed in recent patch series

BTW: when the agent is connected, the migration between f21 hosts fail - the destination host segfaults (no backtrace ATM), the client disconnects and the VM keeps running in the source host. In the linux guest, I needed to switch to text console in order to make migration succeed...

Comment 9 Victor Toso 2015-06-17 09:52:38 UTC
(In reply to David Jaša from comment #8)
> rhel7 client to f21 hosts: glitch is audible
> f21 client to f21 hosts: no glitch*
> 
> * an awful volume jump may occur on Fedora client however, hopefully
> addressed in recent patch series

Can you confirm if this bug is still reproducible with patches from https://bugzilla.redhat.com/show_bug.cgi?id=1012868 ?

> 
> BTW: when the agent is connected, the migration between f21 hosts fail - the
> destination host segfaults (no backtrace ATM), the client disconnects and
> the VM keeps running in the source host. In the linux guest, I needed to
> switch to text console in order to make migration succeed...

If you reproduce, please open a bug for it.

Comment 10 David Jaša 2015-06-24 15:29:18 UTC
(In reply to Victor Toso from comment #9)
> (In reply to David Jaša from comment #8)
> > rhel7 client to f21 hosts: glitch is audible
> > f21 client to f21 hosts: no glitch*
> > 
> > * an awful volume jump may occur on Fedora client however, hopefully
> > addressed in recent patch series
> 
> Can you confirm if this bug is still reproducible with patches from
> https://bugzilla.redhat.com/show_bug.cgi?id=1012868 ?

I can't reproduce the issue in current 7.2 builds that don't include the spice-server patch (new patches are included in the rebased spice-gtk)
spice-gtk3-0.26-3.el7.x86_64
spice-server-0.12.4-9.el7.x86_64
qemu-kvm-1.5.3-93.el7.x86_64

I we won't hit the issue again further in the release cycle, we can close as CURRENTRELEASE.

> 
> > 
> > BTW: when the agent is connected, the migration between f21 hosts fail - the
> > destination host segfaults (no backtrace ATM), the client disconnects and
> > the VM keeps running in the source host. In the linux guest, I needed to
> > switch to text console in order to make migration succeed...
> 
> If you reproduce, please open a bug for it.

Comment 11 Victor Toso 2015-09-17 15:18:20 UTC
David just tested this and we can confirm that this is fixed in current release.

We were able to trigger the glitch in 6.5 client even with newer spice-server. But 6.7 and 7.2 clients does not trigger the glitch in any situation.
Most likely this was fixed in spice-gtk between 6.5 and 6.7.

Thanks David.