You are not logged in.
Pages: 1
Hello,
I'm getting what seems to be the same issue as here: [SOLVED] firefox 92 - video not working
The video plays for less than a second, then freezes. If I run "pulseaudio -k" from the command line, it starts playing.
Did Firefox break again?
EDIT: I closed this because it appears to be something with my USB interface, not Firefox specific. Unplugging my USB audio interface allows it to work with other audio output devices.
Last edited by Tamerz (2021-10-21 06:15:48)
Offline
loginctl session-status
systemctl --user status pulseaudio
pacmd list-sinks
pacmd list-sink-inputs
sudo fuser -v /dev/snd/*
sudo dmesg | grep sndand maybe terminal output from firefox while reproducing the issue, posted here in [ code ] tags without spaces, would probably be useful
Last edited by V1del (2021-10-20 11:33:15)
Offline
$ loginctl session-status
2 - tames (1000)
Since: Wed 2021-10-20 13:07:42 +03; 1h 55min ago
Leader: 979 (sddm-helper)
Seat: seat0; vc1
Display: :0
Service: sddm; type x11; class user
Desktop: KDE
State: active
Unit: session-2.scope
├─ 979 /usr/lib/sddm/sddm-helper --socket /tmp/sddm-auth11303932-908e-456a-9b37-0e2922b409aa --id 1 --start /usr/bin/startplasma-x11 --user tames
├─ 992 /usr/bin/kwalletd5 --pam-login 7 8
├─ 993 /usr/bin/startplasma-x11
├─1030 /usr/bin/kded5
├─1034 /usr/bin/kwin_x11
├─1100 /usr/bin/ksmserver
├─1105 /usr/lib/org_kde_powerdevil
├─1109 /usr/lib/polkit-kde-authentication-agent-1
├─1114 /usr/bin/plasmashell
├─1116 /usr/bin/xembedsniproxy
├─1121 /usr/bin/kaccess
├─1150 /usr/bin/gmenudbusmenuproxy
├─1154 /usr/lib/DiscoverNotifier
├─1217 "/usr/share/teams/teams --disable-namespace-sandbox --disable-setuid-sandbox"
├─1221 "/usr/share/teams/teams --type=zygote --no-zygote-sandbox"
├─1222 "/usr/share/teams/teams --type=zygote"
├─1290 "/usr/share/teams/teams --type=gpu-process --field-trial-handle=7088480847536913143,17448217029313900927,131072 --enable-features=ContextBridgeMutability,WebComponentsV0Enabled --disable-features=CookiesWithoutSameSi>
├─1294 "/usr/share/teams/teams --type=utility --utility-sub-type=network.mojom.NetworkService --field-trial-handle=7088480847536913143,17448217029313900927,131072 --enable-features=ContextBridgeMutability,WebComponentsV0Ena>
├─1306 "/usr/share/teams/teams --type=broker"
├─1329 "/usr/share/teams/teams --type=renderer --autoplay-policy=no-user-gesture-required --disable-background-timer-throttling --field-trial-handle=7088480847536913143,17448217029313900927,131072 --enable-features=ContextB>
├─1378 "/usr/share/teams/teams --type=renderer --autoplay-policy=no-user-gesture-required --disable-background-timer-throttling --field-trial-handle=7088480847536913143,17448217029313900927,131072 --enable-features=ContextB>
├─1379 "/usr/share/teams/teams --type=renderer --autoplay-policy=no-user-gesture-required --disable-background-timer-throttling --field-trial-handle=7088480847536913143,17448217029313900927,131072 --enable-features=ContextB>
├─1422 "/usr/share/teams/teams --type=utility --utility-sub-type=audio.mojom.AudioService --field-trial-handle=7088480847536913143,17448217029313900927,131072 --enable-features=ContextBridgeMutability,WebComponentsV0Enabled>
├─1506 "/usr/share/teams/teams --type=renderer --autoplay-policy=no-user-gesture-required --disable-background-timer-throttling --field-trial-handle=7088480847536913143,17448217029313900927,131072 --enable-features=ContextB>
├─1507 "/usr/share/teams/teams --type=renderer --autoplay-policy=no-user-gesture-required --disable-background-timer-throttling --field-trial-handle=7088480847536913143,17448217029313900927,131072 --enable-features=ContextB>
├─1520 "/usr/share/teams/teams --type=renderer --autoplay-policy=no-user-gesture-required --disable-background-timer-throttling --field-trial-handle=7088480847536913143,17448217029313900927,131072 --enable-features=ContextB>
└─2076 /usr/lib/kf5/kioslave5 /usr/lib/qt/plugins/kf5/kio/kio_file.so file "" local:/run/user/1000/kded5kGHgOb.1.slave-socket
Oct 20 14:54:38 archlinux kwin_x11[1034]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 469, resource id: 33554708, major code: 18 (ChangeProperty), minor code: 0
Oct 20 14:54:49 archlinux kwin_x11[1034]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 4486, resource id: 33554709, major code: 15 (QueryTree), minor code: 0
Oct 20 14:54:58 archlinux plasmashell[1114]: kf.sonnet.core: No language dictionaries for the language: "en_US" trying to load en_US as default
Oct 20 14:54:58 archlinux plasmashell[1114]: kf.sonnet.core: No language dictionaries for the language: "en_US"
Oct 20 14:54:59 archlinux kwin_x11[1034]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 5955, resource id: 33554722, major code: 18 (ChangeProperty), minor code: 0
Oct 20 14:57:22 archlinux plasmashell[1114]: kf.sonnet.core: No language dictionaries for the language: "en_US" trying to load en_US as default
Oct 20 14:57:22 archlinux plasmashell[1114]: kf.sonnet.core: No language dictionaries for the language: "en_US"
Oct 20 14:57:24 archlinux kded5[1030]: Registering ":1.84/StatusNotifierItem" to system tray
Oct 20 14:57:24 archlinux xembedsniproxy[1116]: Container window visible, stack below
Oct 20 14:57:30 archlinux kwalletd5[992]: Application ' "1password" ' using kwallet without parent window!$ systemctl --user status pulseaudio
● pulseaudio.service - Sound Service
Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor preset: enabled)
Active: active (running) since Wed 2021-10-20 13:18:54 +03; 1h 43min ago
TriggeredBy: ● pulseaudio.socket
Main PID: 2867 (pulseaudio)
Tasks: 7 (limit: 38276)
Memory: 5.9M
CPU: 6.213s
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pulseaudio.service
├─2867 /usr/bin/pulseaudio --daemonize=no --log-target=journal
└─2871 /usr/lib/pulse/gsettings-helper
Oct 20 13:18:54 archlinux systemd[981]: Starting Sound Service...
Oct 20 13:18:54 archlinux pulseaudio[2867]: stat('/etc/pulse/default.pa.d'): No such file or directory
Oct 20 13:18:54 archlinux systemd[981]: Started Sound Service.$ pacmd list-sinks
2 sink(s) available.
* index: 0
name: <alsa_output.usb-Roland_OCTA-CAPTURE_ISRLCCCCCCCC-00.multichannel-output>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: (none)
priority: 9040
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB, rear-left: 65536 / 100% / 0.00 dB, rear-right: 65536 / 100% / 0.00 dB, front-center: 65536 / 100% / 0.00 dB, lfe: 65536 / 100% / 0.00 dB, side-left: 65536 / 100% / 0.00 dB, side-right: 65536 / 100% / 0.00 dB, aux0: 65536 / 100% / 0.00 dB, aux1: 65536 / 100% / 0.00 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max request: 40 KiB
max rewind: 40 KiB
monitor source: 0
sample spec: s32le 10ch 44100Hz
channel map: front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right,aux0,aux1
used by: 2
linked by: 3
configured latency: 23.22 ms; range is 0.50 .. 594.42 ms
card: 0 <alsa_card.usb-Roland_OCTA-CAPTURE_ISRLCCCCCCCC-00>
module: 6
properties:
alsa.resolution_bits = "32"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "USB Audio"
alsa.id = "USB Audio"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "OCTA-CAPTURE"
alsa.long_card_name = "Roland OCTA-CAPTURE at usb-0000:0a:00.3-3, high speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:0a:00.3-usb-0:3:1.0"
sysfs.path = "/devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb3/3-3/3-3:1.0/sound/card0"
udev.id = "usb-Roland_OCTA-CAPTURE_ISRLCCCCCCCC-00"
device.bus = "usb"
device.vendor.id = "0582"
device.vendor.name = "Roland Corp."
device.product.id = "0120"
device.product.name = "OCTA-CAPTURE"
device.serial = "Roland_OCTA-CAPTURE_ISRLCCCCCCCC"
device.string = "hw:0"
device.buffering.buffer_size = "1048560"
device.buffering.fragment_size = "524280"
device.access_mode = "mmap+timer"
device.profile.name = "multichannel-output"
device.profile.description = "Multichannel"
device.description = "OCTA-CAPTURE Multichannel"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-usb"
index: 2
name: <alsa_output.pci-0000_43_00.1.hdmi-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 9030
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max request: 0 KiB
max rewind: 0 KiB
monitor source: 2
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
configured latency: 0.00 ms; range is 0.50 .. 1999.82 ms
card: 1 <alsa_card.pci-0000_43_00.1>
module: 7
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "HDMI 0"
alsa.id = "HDMI 0"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "3"
alsa.card = "1"
alsa.card_name = "HDA NVidia"
alsa.long_card_name = "HDA NVidia at 0x9d080000 irq 130"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:43:00.1"
sysfs.path = "/devices/pci0000:40/0000:40:03.1/0000:43:00.1/sound/card1"
device.bus = "pci"
device.vendor.id = "10de"
device.vendor.name = "NVIDIA Corporation"
device.product.id = "10f8"
device.product.name = "TU104 HD Audio Controller"
device.string = "hdmi:1"
device.buffering.buffer_size = "352768"
device.buffering.fragment_size = "176384"
device.access_mode = "mmap+timer"
device.profile.name = "hdmi-stereo"
device.profile.description = "Digital Stereo (HDMI)"
device.description = "TU104 HD Audio Controller Digital Stereo (HDMI)"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
properties:
device.icon_name = "video-display"
device.product.name = "VIOTEK GN27DB"
active port: <hdmi-output-0>$ pacmd list-sink-inputs
3 sink input(s) available.
index: 1
driver: <protocol-native.c>
flags: START_CORKED
state: RUNNING
sink: 0 <alsa_output.usb-Roland_OCTA-CAPTURE_ISRLCCCCCCCC-00.multichannel-output>
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
muted: no
current latency: 46.60 ms
requested latency: 23.22 ms
sample spec: float32le 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: copy
module: 9
client: 4 <Chromium>
properties:
application.icon_name = "chromium-browser"
media.name = "Playback"
application.name = "Chromium"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "35"
application.process.id = "1422"
application.process.user = "tames"
application.process.host = "archlinux"
application.process.binary = "teams"
application.language = "C"
window.x11.display = ":0"
application.process.machine_id = "b9d3aa72f11c4260a3a1ae415194640e"
application.process.session_id = "2"
module-stream-restore.id = "sink-input-by-application-name:Chromium"
index: 2
driver: <protocol-native.c>
flags: START_CORKED
state: RUNNING
sink: 0 <alsa_output.usb-Roland_OCTA-CAPTURE_ISRLCCCCCCCC-00.multichannel-output>
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
muted: no
current latency: 46.60 ms
requested latency: 23.22 ms
sample spec: float32le 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: copy
module: 9
client: 5 <Chromium>
properties:
application.icon_name = "chromium-browser"
media.name = "Playback"
application.name = "Chromium"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "35"
application.process.id = "1422"
application.process.user = "tames"
application.process.host = "archlinux"
application.process.binary = "teams"
application.language = "C"
window.x11.display = ":0"
application.process.machine_id = "b9d3aa72f11c4260a3a1ae415194640e"
application.process.session_id = "2"
module-stream-restore.id = "sink-input-by-application-name:Chromium"
index: 5
driver: <protocol-native.c>
flags: START_CORKED
state: CORKED
sink: 0 <alsa_output.usb-Roland_OCTA-CAPTURE_ISRLCCCCCCCC-00.multichannel-output>
volume: front-left: 58938 / 90% / -2.77 dB, front-right: 58938 / 90% / -2.77 dB
balance 0.00
muted: no
current latency: 125.00 ms
requested latency: 75.00 ms
sample spec: float32le 2ch 48000Hz
channel map: front-left,front-right
Stereo
resample method: speex-float-1
module: 9
client: 14 <Firefox>
properties:
media.name = "John Mayer Plays 8 String Tosin Abasi Guitar! - YouTube"
application.name = "Firefox"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "35"
application.process.id = "10730"
application.process.user = "tames"
application.process.host = "archlinux"
application.process.binary = "firefox"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "b9d3aa72f11c4260a3a1ae415194640e"
application.process.session_id = "2"
application.icon_name = "firefox"
module-stream-restore.id = "sink-input-by-application-name:Firefox"$ sudo fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC1: tames 2867 F.... pulseaudio
/dev/snd/pcmC0D0p: tames 2867 F...m pulseaudio$ sudo dmesg | grep snd
[ 5.529887] usbcore: registered new interface driver snd-usb-audio
[ 5.558080] snd_hda_intel 0000:43:00.1: Disabling MSI
[ 5.558105] snd_hda_intel 0000:43:00.1: Handle vga_switcheroo audio clientOffline
No output from firefox when launched from the terminal. Do I need to enable some debugging flag or something?
EDIT: Actually some messages came up later, I'm not sure if related:
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lostLast edited by Tamerz (2021-10-20 12:10:00)
Offline
For testing, I turned off my audio interface (the Roland_OCTA-CAPTURE). The videos played and sound came out of the monitor over DP no problem. I also plugged in PS3 wireless headphones I had lying around and it too works fine.
So it appears there is something about the audio interface it doesn't like. I would really like to get it working however.
Offline
The stream is corked for some weird reason. I really don't know wtf firefox is doing with it's audio integration. FWIW does it freeze "freeze" or can you technically pause and unpause it and it just defaults to randomly pausing at first? A cork is normal if the stream is paused.
FWIW as a test if this really is the result of some weird corking you could try and comment
load-module module-role-corkin /etc/pulse/default.pa
Last edited by V1del (2021-10-20 12:22:31)
Offline
The player itself doesn't seem to freeze up. It is more like the video pauses (but it is not paused). If you hit the pause button, pauses and you can hit play to get the same split second playback.
Sometimes it is almost like their server times out waiting for the ad to play and will skip to the next ad and sit with a spinning circle.
Offline
I followed your steps and commented out that line. It doesn't seem like it makes any difference. I rebooted the machine to be safe since I wasn't sure when that file gets loaded.
$ pacmd list-sink-inputs
1 sink input(s) available.
index: 6
driver: <protocol-native.c>
flags: START_CORKED
state: RUNNING
sink: 0 <alsa_output.usb-Roland_OCTA-CAPTURE_ISRLCCCCCCCC-00.multichannel-output>
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
muted: no
current latency: 118.71 ms
requested latency: 75.00 ms
sample spec: float32le 2ch 48000Hz
channel map: front-left,front-right
Stereo
resample method: speex-float-1
module: 9
client: 10 <Firefox>
properties:
media.name = "John Mayer Plays 8 String Tosin Abasi Guitar! - YouTube"
application.name = "Firefox"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "35"
application.process.id = "1713"
application.process.user = "tames"
application.process.host = "archlinux"
application.process.binary = "firefox"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "b9d3aa72f11c4260a3a1ae415194640e"
application.process.session_id = "2"
application.icon_name = "firefox"
module-stream-restore.id = "sink-input-by-application-name:Firefox"Offline
From this everything should be working fine in an audio pipeline definition (firefox sends audio and pulse should be sending that to the DAC), so not quite sure what or why there's a remaining problem.
Offline
Does Firefox do this for all videos from all sites? Does it do it on one machine you have or others too? I have four machines and none of them have any issues playing video in Firefox 93.0 or any previous version. I run Firefox in the plasma desktop, and although I was until recently using pulseaudio, I switched to pipewire a week or so back, and Firefox continues to play video in youtube as well as other news sites with no problems at all. Perhaps your setup for the desktop and for audio has some custom configs that are leading to Firefox pausing?
Mike C
Offline
Does Firefox do this for all videos from all sites? Does it do it on one machine you have or others too? I have four machines and none of them have any issues playing video in Firefox 93.0 or any previous version. I run Firefox in the plasma desktop, and although I was until recently using pulseaudio, I switched to pipewire a week or so back, and Firefox continues to play video in youtube as well as other news sites with no problems at all. Perhaps your setup for the desktop and for audio has some custom configs that are leading to Firefox pausing?
Good point. It is any video. I updated the thread title. I tried Vimeo as well.
I'm going to close this thread because I've now found it is also happening in other applications besides Firefox. I thought it was working in Chromium but it was just getting further along before freezing, and no sound. I also tried the Apple Music web player and that freezes as well.
I installed pipewire since it seems like it is the future anyway and the problem persists.
I'm thinking there must be something about this USB audio interface it doesn't like.
Offline
Please do not mark a thread [closed] -- that is used by staff when a thread is not open for further replies. If you would like a thread closed or deleted, please use the Report button.
Offline
Pages: 1