Bug 2242080

Summary: Videos stuttering or not starting after upgrading to pipewire 0.3.81
Product: [Fedora] Fedora Reporter: Heinrich Bauer <f.asot>
Component: pipewireAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 38CC: acaringi, adscvr, agurenko, airlied, alciregi, awilliam, brunovern.a, bskeggs, hdegoede, hpa, information, jarod, josef, kernel-maint, lgoncalv, linville, masami256, mchehab, nixuser, ptalbert, steved, wtaymans
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
URL: https://youtube.de
Whiteboard:
Fixed In Version: pipewire-0.3.82-1.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-10-14 01:31:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Kernel logs none

Description Heinrich Bauer 2023-10-04 09:27:04 UTC
1. Please describe the problem:

After kernel update from 6.4.15-200 to 6.5.5-200 videos and audio stutter. 

2. What is the Version-Release number of the kernel:

6.5.5-200

3. Did it work previously in Fedora? 

Yes

If so, what kernel version did the issue
   *first* appear?  Old kernels are available for download at
   https://koji.fedoraproject.org/koji/packageinfo?packageID=8 :

6.5.5-200

4. Can you reproduce this issue? If so, please provide the steps to reproduce
   the issue below:

Yes, just reboot with kernel 6.5.5-200


5. Does this problem occur with the latest Rawhide kernel? To install the
   Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by
   ``sudo dnf update --enablerepo=rawhide kernel``:

No

6. Are you running any modules that not shipped with directly Fedora's kernel?:

No

7. Please attach the kernel logs. You can get the complete kernel log
   for a boot with ``journalctl --no-hostname -k > dmesg.txt``. If the
   issue occurred on a previous boot, use the journalctl ``-b`` flag.




Reproducible: Always

Comment 1 Heinrich Bauer 2023-10-04 09:38:47 UTC
Created attachment 1991996 [details]
Kernel logs

Comment 2 Heinrich Bauer 2023-10-04 12:05:14 UTC
By the way, the parameters for VMware in pipewire.conf and 50-alsa-config.lua look like this:

pipewire.conf:

    # These overrides are only applied when running in a vm.
    vm.overrides = {       
        default.clock.rate          = 19200
        default.clock.quantum       = 1024
        default.clock.min-quantum   = 32
        default.clock.max-quantum   = 2048
        default.clock.quantum-limit = 8192
    }

50-alsa-config.lua:

  ["vm.node.defaults"] = {
    ["api.alsa.period-size"] = 1024,
    ["api.alsa.headroom"] = 8192,
  },

These parameters work with kernel 6.4.15-200.

Comment 3 Heinrich Bauer 2023-10-10 12:07:20 UTC
An upgrade to kernel 6.5.6-200 solved the problem.

But there is still the same problem when I upgrade pipewire to version 0.3.81.

Comment 4 Ian Laurie 2023-10-12 04:14:28 UTC
I have this problem but for me the only cause was upgrading to pipewire-0.3.81-1 (F37, F38 and F39) but it seems to happen only in a VirtualBox guest.  For me kernels have not played a role in this.

On at least one native system that version of pipewire is working.

Problem visible when trying to play a video on Youtube... nothing in a VM will play with pipewire-0.3.81-1.

Downgrading to pipewire-0.3.80-1 fixes all VMs (Fedora 37, 38 and 39 guests).

Comment 5 Ian Laurie 2023-10-12 04:31:20 UTC
This should probably be reassigned to pipewire.

Comment 6 Heinrich Bauer 2023-10-12 09:24:53 UTC
I downgraded to pipewire-0.3.67-1 which works as well. 

Are there other parameters in pipewire or wireplumber which I can try with pipewire-0.3.81-1 in VMware?

Comment 7 Ian Laurie 2023-10-12 10:12:25 UTC
(In reply to Heinrich Bauer from comment #6)
> Are there other parameters in pipewire or wireplumber which I can try with
> pipewire-0.3.81-1 in VMware?

No idea myself.

Sadly looks like it's not just virtual machines failing, I now have an example of a native system failing, a laptop running Fedora 39 beta branch.

Downgrading to pipewire-0.3.80-1 fixes playing Youtube videos.

Hardware:
ASUS G750JS 1 x Intel(R) Core(TM) i7-4700HQ CPU @ 2.40GHz
Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
NVIDIA Corporation GK104M [GeForce GTX 870M] (rev a1)

Comment 8 Heinrich Bauer 2023-10-12 12:39:37 UTC
Meanwhile I installed pipewire-0.3.80-1 locally which works for me as well.

Comment 9 Fedora Blocker Bugs Application 2023-10-12 22:55:39 UTC
Proposed as a Blocker for 39-final by Fedora user nixuser using the blocker tracking app because:

 pipewire-0.3.81-1 needs to be unpushed back to pipewire-0.3.80-1 or declared a blocker, since as it is now it's sitting as a 0-day bombshell for a lot of users.  Seems to impact VirtualBox VMs 100%, VMWare (unknown %) and at least some native systems (I have a laptop example).

Comment 10 Adam Williamson 2023-10-12 23:17:07 UTC
The update is not in stable, so this cannot be a release blocker. The blocker process has nothing to do with unpushing updates from the 0-day queue.

Comment 11 Fedora Update System 2023-10-13 08:57:30 UTC
FEDORA-2023-e34dfbc923 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-e34dfbc923

Comment 12 Ian Laurie 2023-10-13 11:04:09 UTC
Yep, that's a fix, it's working for me again.  Also the Rawhide scratch build fixes Rawhide also.  Thanks for doing this so quickly.

Comment 13 Heinrich Bauer 2023-10-13 12:54:35 UTC
The update works. Thanks a lot.

Comment 14 Adam Williamson 2023-10-13 15:16:40 UTC
Please don't close bugs before updates go stable.

Comment 15 Heinrich Bauer 2023-10-13 19:10:45 UTC
Sorry, is my first bug on Bugzilla. Next time I won't do it again.

Comment 16 Adam Williamson 2023-10-13 19:30:48 UTC
no problem, it's easily fixed :) just letting you know for next time.

Comment 17 Fedora Update System 2023-10-14 01:31:51 UTC
FEDORA-2023-e34dfbc923 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.