snapcast icon indicating copy to clipboard operation
snapcast copied to clipboard

[Error] (main) Exception: Can't set channel count: Invalid argument

Open znawcaphotona opened this issue 4 weeks ago • 0 comments

Describe the bug Hi, I installed snapserver and wanted to transmit audio from the sound card using this configuration: source = alsa:///?name=default&device=hw:2,0 The built-in sound card in the Fujitsu S520 terminal works, but it sounds so bad that I won't even try to describe it. I wanted to connect audio via LogiLink UA0053, but when I try to start the snapserver I receive errors. I don't know if this has anything to do with the problem, but this LogiLink gets very hot (not normally). Maybe it just doesn't work with Linux. Maybe the card just doesn't work, but it plays sound Sorry if this is something simple that anyone but me can fix

Steps to Reproduce I just installed snapserver and pulseaudio on debian 11 on fujitsu s520 I dont know anything more

Environment details

  • OS: Debian 11
  • Snapcast version v0.23.0
  • Installed from a package from apt

Attach logfile if applicable

root@snapserver2:/home/user# snapserver --logging.filter debug
2024-06-07 22-01-54.936 [Info] (main) Adding source: alsa:///?name=default&device=hw:2,0
2024-06-07 22-01-54.936 [Notice] (init) Settings file: "/root/.config/snapserver/server.json"
2024-06-07 22-01-54.948 [Info] (Avahi) Adding service 'Snapcast'
2024-06-07 22-01-54.956 [Debug] (parse) StreamUri: alsa:///?name=default&device=hw:2,0
2024-06-07 22-01-54.956 [Debug] (parse) StreamUri decoded: alsa:///?name=default&device=hw:2,0
2024-06-07 22-01-54.956 [Debug] (parse) scheme: 'alsa' tmp: '///?name=default&device=hw:2,0'
2024-06-07 22-01-54.956 [Debug] (parse) host: '' tmp: '/?name=default&device=hw:2,0' path: '/?name=default&device=hw:2,0'
2024-06-07 22-01-54.956 [Debug] (parse) path: '/' tmp: 'name=default&device=hw:2,0' query: 'name=default&device=hw:2,0'
2024-06-07 22-01-54.957 [Debug] (parse) StreamUri.toString: alsa:////?device=hw:2,0&name=default
2024-06-07 22-01-54.957 [Info] (PcmStream) PcmStream: default, sampleFormat: 48000:16:2
2024-06-07 22-01-54.957 [Info] (PcmStream) Stream: default, metadata={
2024-06-07 22-01-54.957 [Info] (PcmStream)     "STREAM": "default"
2024-06-07 22-01-54.957 [Info] (PcmStream) }
2024-06-07 22-01-54.957 [Debug] (Server) metadata = {
2024-06-07 22-01-54.957 [Debug] (Server)    "STREAM": "default"
2024-06-07 22-01-54.957 [Debug] (Server) }
2024-06-07 22-01-54.957 [Info] (Server) onMetaChanged (default)
2024-06-07 22-01-54.957 [Debug] (AlsaStream) Device: hw:2,0
2024-06-07 22-01-54.957 [Info] (Server) Stream: {"fragment":"","host":"","path":"/","query":{"chunk_ms":"20","codec":"flac","device":"hw:2,0","name":"default","sampleformat":"48000:16:2"},"raw":"alsa:////?chunk_ms=20&codec=flac&device=hw:2,0&name=default&sampleformat=48000:16:2","scheme":"alsa"}
2024-06-07 22-01-54.958 [Debug] (parse) StreamUri: alsa:///?name=default&device=hw:2,0
2024-06-07 22-01-54.958 [Debug] (parse) StreamUri decoded: alsa:///?name=default&device=hw:2,0
2024-06-07 22-01-54.958 [Debug] (parse) scheme: 'alsa' tmp: '///?name=default&device=hw:2,0'
2024-06-07 22-01-54.958 [Debug] (parse) host: '' tmp: '/?name=default&device=hw:2,0' path: '/?name=default&device=hw:2,0'
2024-06-07 22-01-54.958 [Debug] (parse) path: '/' tmp: 'name=default&device=hw:2,0' query: 'name=default&device=hw:2,0'
2024-06-07 22-01-54.958 [Debug] (parse) StreamUri.toString: alsa:////?device=hw:2,0&name=default
2024-06-07 22-01-54.958 [Debug] (AlsaStream) Start, sampleformat: 48000:16:2
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
2024-06-07 22-01-54.984 [Notice] (Server) Server::start: Can't set channel count: Invalid argument
2024-06-07 22-01-54.985 [Error] (main) Exception: Can't set channel count: Invalid argument
2024-06-07 22-01-54.985 [Notice] (main) Snapserver terminated.

If I haven't included anything needed (other logs/configuration files), please write and I will add everything that is needed.

znawcaphotona avatar Jun 07 '24 20:06 znawcaphotona