System Info
Describe the bug
I had it working well just one-four days ago. Some updates has been installed just a few moments ago and I can't use the application now due to the missing microphone error:
No microphone source found
Caused by:
Failed to find a default device
..however, I do have the microphone connected, all works well in the system itself. For example, I have just recorded the sound with a random software - Sound Recorder 42.0 by The GNOME Project.
To Reproduce
Steps to reproduce the behavior:
- Open Kooha
- Select "Capture a Monitor or Windows", "Record Computer Sounds", "Record from Microphone", "Show Pointer"
- Click on "Record". The popup window appears with "Select monitor to share with Kooha" option (I do have two options), I select "Built-in dislpay", and click "Share"
- The error pops up:
No microphone source found
Caused by:
Failed to find a default device
Expected behavior
I would expect this error to not be in place because the sound works well on other applications.
I assume it is related to the newest version of the Kooha or some very recent (a day-two of age) updates from Ubuntu 22.04.1 LTS
Screenshots
Additional context
[email protected]:~$ RUST_BACKTRACE=1 RUST_LOG=kooha=debug GST_DEBUG=3 PIPEWIRE_DEBUG=3 flatpak run io.github.seadve.Kooha
2022-08-20T21:00:08.587113Z INFO kooha::application: Kooha (io.github.seadve.Kooha)
2022-08-20T21:00:08.587126Z INFO kooha::application: Version: 2.1.0 ()
2022-08-20T21:00:08.587128Z INFO kooha::application: Datadir: /app/share/kooha
2022-08-20T21:00:17.249371Z DEBUG kooha::screencast_session: Waiting request response for method `CreateSession`
2022-08-20T21:00:17.249688Z DEBUG kooha::screencast_session: Request response received for method `CreateSession`
2022-08-20T21:00:17.249705Z DEBUG kooha::screencast_session: Created screencast session response=VariantDict({"session_handle": Variant { ptr: 0x7fb9d40018f0, type: VariantTy { inner: "s" }, value: "'/org/freedesktop/portal/desktop/session/1_262/kooha_0'" }})
2022-08-20T21:00:17.249721Z DEBUG kooha::recording: ScreenCast portal version: Ok(4)
2022-08-20T21:00:17.249725Z DEBUG kooha::recording: Available cursor modes: Ok(HIDDEN | EMBEDDED | METADATA)
2022-08-20T21:00:17.249727Z DEBUG kooha::recording: Available source types: Ok(MONITOR | WINDOW)
2022-08-20T21:00:17.250870Z DEBUG kooha::screencast_session: Waiting request response for method `SelectSources`
2022-08-20T21:00:17.251106Z DEBUG kooha::screencast_session: Request response received for method `SelectSources`
2022-08-20T21:00:17.251131Z DEBUG kooha::screencast_session: Selected sources response=VariantDict({})
2022-08-20T21:00:17.252404Z DEBUG kooha::screencast_session: Waiting request response for method `Start`
2022-08-20T21:00:22.737849Z DEBUG kooha::screencast_session: Request response received for method `Start`
2022-08-20T21:00:22.737885Z DEBUG kooha::screencast_session: Started screencast session response=VariantDict({"streams": Variant { ptr: 0x7fb9c4001f60, type: VariantTy { inner: "a(ua{sv})" }, value: "[(uint32 50, {'id': <'0'>, 'source_type': <uint32 1>, 'position': <(0, 0)>, 'size': <(1920, 1080)>})]" }})
2022-08-20T21:00:22.739431Z DEBUG kooha::screencast_session: Opened pipe wire remote response=Variant { ptr: 0x7fb9e0012870, type: VariantTy { inner: "(h)" }, value: "(handle 0,)" } fd_list=[11]
[I][01599.559000][ pipewire.c: 571 pw_init()] version 0.3.35
[I][01599.562036][ conf.c: 326 conf_load()] config 0x7fb9d8025ac0: loading config '/usr/share/pipewire/client.conf'
[I][01599.562063][ context.c: 384 pw_context_new()] context 0x7fb9d8025600: parsed context.properties section
[I][01599.562284][ context.c: 478 pw_context_new()] context 0x7fb9d8025600: parsed 2 context.spa-libs items
[I][01599.562446][ conf.c: 419 load_module()] config 0x7fb9d8025600: loaded module libpipewire-module-protocol-native
[I][01599.562652][ conf.c: 419 load_module()] config 0x7fb9d8025600: loaded module libpipewire-module-client-node
[I][01599.562723][ conf.c: 419 load_module()] config 0x7fb9d8025600: loaded module libpipewire-module-client-device
[I][01599.562805][ conf.c: 419 load_module()] config 0x7fb9d8025600: loaded module libpipewire-module-adapter
[I][01599.562891][ conf.c: 419 load_module()] config 0x7fb9d8025600: loaded module libpipewire-module-metadata
[I][01599.563046][ conf.c: 419 load_module()] config 0x7fb9d8025600: loaded module libpipewire-module-session-manager
[I][01599.563054][ context.c: 482 pw_context_new()] context 0x7fb9d8025600: parsed 6 context.modules items
[I][01599.563059][ context.c: 487 pw_context_new()] context 0x7fb9d8025600: parsed 0 context.objects items
[I][01599.563063][ context.c: 490 pw_context_new()] context 0x7fb9d8025600: parsed 0 context.exec items
[I][01599.563086][ context.c: 244 context_set_freewheel()] context 0x7fb9d8025600: exit freewheel
[I][01599.563093][ context.c: 248 context_set_freewheel()] context 0x7fb9d8025600: freewheel error:Operation not supported
[I][01599.563099][ impl-metadata.c: 196 impl_set_property()] metadata 0x7fb9d81883a0: add id:0 key:log.level type: value:0
[I][01599.563105][ impl-metadata.c: 196 impl_set_property()] metadata 0x7fb9d81883a0: add id:0 key:clock.min-quantum type: value:32
[I][01599.563110][ impl-metadata.c: 196 impl_set_property()] metadata 0x7fb9d81883a0: add id:0 key:clock.max-quantum type: value:8192
[I][01599.563115][ impl-metadata.c: 196 impl_set_property()] metadata 0x7fb9d81883a0: add id:0 key:clock.force-quantum type: value:0
[I][01599.563119][ impl-metadata.c: 196 impl_set_property()] metadata 0x7fb9d81883a0: add id:0 key:clock.force-rate type: value:0
[I][01599.563168][ local-socket.c: 88 try_connect()] connecting to 'pipewire-0' runtime_dir:/run/user/1000
[I][01599.563181][ local-socket.c: 88 try_connect()] connecting to 'pipewire-0' runtime_dir:/run/pipewire
0:00:14.170800381 2 0x55f8116dd580 ERROR pipewire gstpipewiredeviceprovider.c:613:gst_pipewire_device_provider_start:<pipewiredeviceprovider0> Failed to connect
0:00:14.394183637 2 0x55f8116dd580 WARN alsa pcm_hw.c:1716:snd_pcm_hw_open: alsalib error: open '/dev/snd/pcmC2D1c' failed (-22): Invalid argument
0:00:14.394230506 2 0x55f8116dd580 ERROR alsa gstalsadeviceprovider.c:57:add_device:<alsadeviceprovider0> Could not open device hw:2,1 for inspection!
0:00:14.423768348 2 0x55f8116dd580 WARN alsa conf.c:5476:parse_args: alsalib error: Parameter DEV must be an integer
0:00:14.423825096 2 0x55f8116dd580 WARN alsa conf.c:5583:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
0:00:14.423840613 2 0x55f8116dd580 WARN alsa pcm.c:2660:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,3:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:00:14.424419441 2 0x55f8116dd580 WARN alsa conf.c:5476:parse_args: alsalib error: Parameter DEV must be an integer
0:00:14.424441158 2 0x55f8116dd580 WARN alsa conf.c:5583:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
0:00:14.424454589 2 0x55f8116dd580 WARN alsa pcm.c:2660:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,7:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:00:14.424723490 2 0x55f8116dd580 WARN alsa conf.c:5476:parse_args: alsalib error: Parameter DEV must be an integer
0:00:14.424739756 2 0x55f8116dd580 WARN alsa conf.c:5583:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
0:00:14.424751853 2 0x55f8116dd580 WARN alsa pcm.c:2660:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,8:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:00:14.424998665 2 0x55f8116dd580 WARN alsa conf.c:5476:parse_args: alsalib error: Parameter DEV must be an integer
0:00:14.425019081 2 0x55f8116dd580 WARN alsa conf.c:5583:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
0:00:14.425031223 2 0x55f8116dd580 WARN alsa pcm.c:2660:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,9:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:00:14.425265519 2 0x55f8116dd580 WARN alsa conf.c:5476:parse_args: alsalib error: Parameter DEV must be an integer
0:00:14.425281174 2 0x55f8116dd580 WARN alsa conf.c:5583:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
0:00:14.425293805 2 0x55f8116dd580 WARN alsa pcm.c:2660:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,10:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:00:14.425519293 2 0x55f8116dd580 WARN alsa conf.c:5476:parse_args: alsalib error: Parameter DEV must be an integer
0:00:14.425534060 2 0x55f8116dd580 WARN alsa conf.c:5583:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
0:00:14.425543257 2 0x55f8116dd580 WARN alsa pcm.c:2660:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,11:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:00:14.425753959 2 0x55f8116dd580 WARN alsa conf.c:5476:parse_args: alsalib error: Parameter DEV must be an integer
0:00:14.425769130 2 0x55f8116dd580 WARN alsa conf.c:5583:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
0:00:14.425778163 2 0x55f8116dd580 WARN alsa pcm.c:2660:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,12:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:00:14.426058551 2 0x55f8116dd580 WARN alsa conf.c:5476:parse_args: alsalib error: Parameter DEV must be an integer
0:00:14.426073849 2 0x55f8116dd580 WARN alsa conf.c:5583:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
0:00:14.426083626 2 0x55f8116dd580 WARN alsa pcm.c:2660:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:1,0:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:00:14.426386320 2 0x55f8116dd580 WARN alsa conf.c:5476:parse_args: alsalib error: Parameter DEV must be an integer
0:00:14.426401991 2 0x55f8116dd580 WARN alsa conf.c:5583:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
0:00:14.426411240 2 0x55f8116dd580 WARN alsa pcm.c:2660:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:2,0:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:00:14.426715362 2 0x55f8116dd580 WARN alsa pcm_hw.c:1716:snd_pcm_hw_open: alsalib error: open '/dev/snd/pcmC2D1p' failed (-22): Invalid argument
0:00:14.426747580 2 0x55f8116dd580 ERROR alsa gstalsadeviceprovider.c:57:add_device:<alsadeviceprovider0> Could not open device hw:2,1 for inspection!
0:00:14.443044877 2 0x55f8116dd580 WARN alsa conf.c:5476:parse_args: alsalib error: Parameter DEV must be an integer
0:00:14.443054436 2 0x55f8116dd580 WARN alsa conf.c:5583:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
0:00:14.443057654 2 0x55f8116dd580 WARN alsa pcm.c:2660:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:2,3:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:00:14.443221689 2 0x55f8116dd580 WARN alsa conf.c:5476:parse_args: alsalib error: Parameter DEV must be an integer
0:00:14.443231342 2 0x55f8116dd580 WARN alsa conf.c:5583:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
0:00:14.443236411 2 0x55f8116dd580 WARN alsa pcm.c:2660:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:2,4:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:00:14.443375564 2 0x55f8116dd580 WARN alsa conf.c:5476:parse_args: alsalib error: Parameter DEV must be an integer
0:00:14.443382121 2 0x55f8116dd580 WARN alsa conf.c:5583:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
0:00:14.443386286 2 0x55f8116dd580 WARN alsa pcm.c:2660:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:2,5:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
2022-08-20T21:00:23.022702Z DEBUG kooha::audio_device: Finding device name for class `Source`
2022-08-20T21:00:23.022719Z DEBUG kooha::audio_device: Skipping device `pulsedevice0` as it is not the default
2022-08-20T21:00:23.022738Z WARN kooha::audio_device: Skipping device `pulsedevice1` as it has no node.name property. FieldNotFound { name: "node.name" }
2022-08-20T21:00:23.022746Z DEBUG kooha::audio_device: Skipping device `pulsedevice2` as it is not the default
2022-08-20T21:00:23.022752Z DEBUG kooha::audio_device: Skipping device `pulsedevice3` as it is not the default
2022-08-20T21:00:23.022758Z DEBUG kooha::audio_device: Skipping device `pulsedevice4` as it is not the default
2022-08-20T21:00:23.022763Z DEBUG kooha::audio_device: Skipping device `pulsedevice5` as it is not the default
2022-08-20T21:00:23.022769Z DEBUG kooha::audio_device: Skipping device `pulsedevice6` as it is not the default
2022-08-20T21:00:23.022775Z DEBUG kooha::audio_device: Skipping device `pulsedevice7` as it is not the default
2022-08-20T21:00:23.022903Z ERROR kooha::window: No microphone source found
Caused by:
Failed to find a default device
2022-08-20T21:00:23.039949Z DEBUG kooha::screencast_session: Closed screencast session response=Variant { ptr: 0x7fb9c4002290, type: VariantTy { inner: "()" }, value: "()" }
[email protected]:~$
p.s. Sorry if that's not Kooha's bug. At the moment it's very hard to say... Either way, other sound-related software seems to be working with no issues for now. Thanks for looking into the case when possible! Great tool!
bug