Kooha icon indicating copy to clipboard operation
Kooha copied to clipboard

No sound recorded due to missing "is-default" property

Open flaphoschi opened this issue 1 year ago • 2 comments

Hello!

System: Lenovo ThinkPad X220 Distribution: Archlinux Compositor: Wayland and X11 with GNOME MUTTER Sound: pipewire + wireplumber

Kahoo fails silently to record any audio because it looks for a flag "is-default" which it cannot find:

$ kooha 
2023-06-02T15:51:06.402713Z  INFO kooha::application: Kooha (io.github.seadve.Kooha)
2023-06-02T15:51:06.402732Z  INFO kooha::application: Version: 2.2.3 ()
2023-06-02T15:51:06.402748Z  INFO kooha::application: Datadir: /usr/share/kooha
2023-06-02T15:51:13.365974Z  WARN kooha::audio_device: Skipping device `pipewiredevice2` as it has no `is-default` property. FieldNotFound { name: "is-default" }
2023-06-02T15:51:13.366052Z  WARN kooha::audio_device: Failed to find default name using gstreamer: Failed to find a default device

The message only appears when a recording is started.

GNOME-Settings looks fine

Screenshot from 2023-06-02 17-58-55

wpctl looks fine

wpctl status
PipeWire 'pipewire-0' [0.3.71, peter@cupcake, cookie:3695054843]
 └─ Clients:
        31. pipewire                            [0.3.71, peter@cupcake, pid:12747]
        33. WirePlumber                         [0.3.71, peter@cupcake, pid:12746]
        34. WirePlumber [export]                [0.3.71, peter@cupcake, pid:12746]
        55. xdg-desktop-portal                  [0.3.71, peter@cupcake, pid:15534]
        56. GNOME Shell Volume Control          [0.3.71, peter@cupcake, pid:15058]
        57. GNOME Volume Control Media Keys     [0.3.71, peter@cupcake, pid:15333]
        58. wpctl                               [0.3.71, peter@cupcake, pid:17282]
        59. kooha                               [0.3.71, peter@cupcake, pid:15932]
        67. speech-dispatcher-dummy             [0.3.71, peter@cupcake, pid:16854]
        68. Mutter                              [0.3.71, peter@cupcake, pid:15058]

Audio
 ├─ Devices:
 │      50. Built-in Audio                      [alsa]
 │  
 ├─ Sinks:
 │  *   42. Built-in Audio Analog Stereo        [vol: 0.84]
 │  
 ├─ Sink endpoints:
 │  
 ├─ Sources:
 │  *   63. Built-in Audio Analog Stereo        [vol: 1.00]
 │  
 ├─ Source endpoints:
 │  
 └─ Streams:
        60. speech-dispatcher-dummy                                     
             51. output_FR       > CX20590 Analog:playback_FR	[init]
             76. output_FL       > CX20590 Analog:playback_FL	[init]

Video
 ├─ Devices:
 │      40. Integrated Camera: Integrated C     [libcamera]
 │      43. Integrated Camera                   [v4l2]
 │      48. Integrated Camera                   [v4l2]
 │  
 ├─ Sinks:
 │  
 ├─ Sink endpoints:
 │  
 ├─ Sources:
 │      44. Built-in Front Camera              
 │  *   53. Integrated Camera (V4L2)           
 │  
 ├─ Source endpoints:
 │  
 └─ Streams:

Settings
 └─ Default Configured Node Names:
         0. Audio/Sink    alsa_output.pci-0000_00_1b.0.analog-stereo
         1. Audio/Source  alsa_input.pci-0000_00_1b.0.analog-stereo

Thank you for your work

flaphoschi avatar Jun 02 '23 16:06 flaphoschi

Weird.

After logout, login and starting the program I wanted to record again it worked for one occasion. Maybe not 100% reproducible.

flaphoschi avatar Jun 02 '23 16:06 flaphoschi

Did you ever find a fix?

plutack avatar Dec 12 '23 22:12 plutack

Thanks for reporting!

After logout, login and starting the program I wanted to record again it worked for one occasion. Maybe not 100% reproducible.

I am closing this then.

SeaDve avatar Feb 18 '24 13:02 SeaDve

@plutack Please open another ticket with your issue. It would be helpful too to paste the output of gst-device-monitor-1.0. Thankss!

SeaDve avatar Feb 18 '24 13:02 SeaDve