It looks like this is not a common issue. It could be my hardware (Dell XPS i7-12700H laptop) or configuration. For the last few updates - kernel versions 6.3.6, 6.3.8 and 6.3.11 - I’ve been experiencing bad behavior. It starts with audio cutting out in the browser (YouTube pages e.g.) or repeating very quickly if I mouse over the KDE panel which is floating and auto-hidden. Video also stops or cuts out, or the audio cuts out. The same behavior occurs in both Firefox, my main browser, and Chrome. The audio issues are not permanent - I can sometimes get the audio restored by opening the audio widget and clicking on various radio buttons (normally selected as Analog Audio Output), or quitting and restarting the browser.
There are a lot of repeated journal entries indicating that the system has run out of file handles:
Jul 09 14:40:45 fedora pipewire[10163]: invalid memory type 12
Jul 09 14:40:45 fedora pipewire[10163]: mod.protocol-native: connection 0x562c12c860f0: can't DUP fd:895 Too many open files
Jul 09 14:40:45 fedora pipewire[10163]: mod.protocol-native: connection 0x562c12d33b10: can't DUP fd:1015 Too many open files
Jul 09 14:40:45 fedora pipewire[10163]: mod.protocol-native: connection 0x562c12c860f0: can't DUP fd:1015 Too many open files
Jul 09 14:40:45 fedora pipewire[10163]: pw.core: 0x562c1241bbb0: error -2 for resource 7: set_activation: No such file or directory
Jul 09 14:40:45 fedora pipewire[10163]: mod.client-node: 0x562c125a91f0: error seq:321 -2 (set_activation: No such file or directory)
...
Jul 09 15:04:45 fedora pipewire[10163]: pw.mem: 0x562c12428790: Failed to create memfd: Too many open files
Jul 09 15:04:46 fedora pipewire[10163]: pw.node: node 0x562c124cb9d0: write failed Bad file descriptor
That’s just a sample; all of those lines are repeated multiple times over multiple blocks of time, and most implicate or directly come from pipewire.
I’m also getting a popup telling me that the system is dangerously low on inotify handles: the system reserves around half a million.
Output of lsof | awk '{print $1}' | uniq -c | sort -rn | head
shows:
297541 firefox
155600 plasmashe
100842 chrome
50946 Isolated
39326 chrome
27251 akonadi_m
24804 kwin_wayl
20601 Isolated
17091 Isolated
14850 chrome
I currently have 7 Chrome windows and 8 Firefox windows open (with 77 tabs open in Firefox and 53 in Chrome: I often have many hundreds or worse open, so I doubt it’s an issue of number of tabs).
Is anyone else experiencing anything similar, or know what the issue might be? Any help in debugging or troubleshooting beyond journalctl and lsof would be welcome.
Again, recent builds, audio cutting out, videos skipping, and the system running low on handles.
Thanks.