Kooha icon indicating copy to clipboard operation
Kooha copied to clipboard

Record doesn't work on ArchLinux / Wayland

Open GreenLunar opened this issue 2 years ago • 5 comments

System Info Archlinux Sway Window Manager

Describe the bug Unable to begin a session.

To Reproduce Steps to reproduce the behavior:

  1. Click Record

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

Failed to start recording

Caused by:
    0: Check out <a href="https://github.com/SeaDve/Kooha#-it-doesnt-work">It Doesn't Work page</a> for help.
    1: Failed to create ScreencastSession
    2: Failed to create session
    3: Interaction was ended in some other way with response Variant { ptr: 0x563f47d40180, type: VariantTy { inner: "a{sv}" }, value: "@a{sv} {}" }

Additional context

$ RUST_BACKTRACE=1 RUST_LOG=kooha=debug GST_DEBUG=3 PIPEWIRE_DEBUG=3`
(e.g., `RUST_BACKTRACE=1 RUST_LOG=kooha=debug GST_DEBUG=3 PIPEWIRE_DEBUG=3 kooha
-bash: command substitution: line 3: syntax error: unexpected end of file
2022-12-28T20:43:49.525137Z  INFO kooha::application: Kooha (io.github.seadve.Kooha)
2022-12-28T20:43:49.525156Z  INFO kooha::application: Version: 2.2.3 ()
2022-12-28T20:43:49.525161Z  INFO kooha::application: Datadir: /usr/share/kooha
2022-12-28T20:43:51.996990Z DEBUG kooha::screencast_session: Waiting request response for method `CreateSession`
2022-12-28T20:43:51.997427Z DEBUG kooha::screencast_session: Request response received for method `CreateSession`
2022-12-28T20:43:51.997626Z ERROR kooha::window: Failed to start recording

Caused by:
    0: Check out <a href="https://github.com/SeaDve/Kooha#-it-doesnt-work">It Doesn't Work page</a> for help.
    1: Failed to create ScreencastSession
    2: Failed to create session
    3: Interaction was ended in some other way with response Variant { ptr: 0x7f10e8002940, type: VariantTy { inner: "a{sv}" }, value: "@a{sv} {}" }

GreenLunar avatar Dec 28 '22 20:12 GreenLunar

Strange, but Kooha works perfectly on Wayland on my Arch Linux system, Gnome 43.2 and 4K BenQ screen.

rouelle avatar Jan 01 '23 16:01 rouelle

I'm using Manjaro / X11 / Xfce. The error message is exactly the same except the pointer address.

AlephAlpha avatar Feb 05 '23 06:02 AlephAlpha

On Arch Wayland (hyprland) for me kooha is working with any type of video except REGION. When I select Region, it can't start session. Version: 2.2.3 ()

Here is log where I record some window, than stop and try to record some region:

RUST_BACKTRACE=1 RUST_LOG=kooha=debug GST_DEBUG=3 PIPEWIRE_DEBUG=3 kooha

Log
> 2023-02-16T09:17:34.319392Z  INFO kooha::application: Kooha (io.github.seadve.Kooha)
> 2023-02-16T09:17:34.319405Z  INFO kooha::application: Version: 2.2.3 ()
> 2023-02-16T09:17:34.319409Z  INFO kooha::application: Datadir: /usr/share/kooha
> 2023-02-16T09:17:38.321375Z DEBUG kooha::screencast_session: Waiting request response for method `CreateSession`
> 2023-02-16T09:17:38.322051Z DEBUG kooha::screencast_session: Request response received for method `CreateSession`
> 2023-02-16T09:17:38.322096Z DEBUG kooha::screencast_session: Created screencast session response=Variant { ptr: 0x7f801800d440, type: VariantTy { inner: "a{sv}" }, value: "{'session_handle': <'/org/freedesktop/portal/desktop/session/1_316/kooha_0'>}" }
> 2023-02-16T09:17:38.322152Z DEBUG kooha::recording: ScreenCast portal version: Ok(4)
> 2023-02-16T09:17:38.322165Z DEBUG kooha::recording: Available cursor modes: Ok(HIDDEN | EMBEDDED)
> 2023-02-16T09:17:38.322176Z DEBUG kooha::recording: Available source types: Ok(MONITOR)
> 2023-02-16T09:17:38.324981Z DEBUG kooha::screencast_session: Waiting request response for method `SelectSources`
> 2023-02-16T09:17:42.483346Z DEBUG kooha::screencast_session: Request response received for method `SelectSources`
> 2023-02-16T09:17:42.483376Z DEBUG kooha::screencast_session: Selected sources response=Variant { ptr: 0x7f7ff8002600, type: VariantTy { inner: "a{sv}" }, value: "@a{sv} {}" }
> 2023-02-16T09:17:42.484180Z DEBUG kooha::screencast_session: Waiting request response for method `Start`
> 2023-02-16T09:17:42.484715Z DEBUG kooha::screencast_session: Request response received for method `Start`
> 2023-02-16T09:17:42.484737Z DEBUG kooha::screencast_session: Started screencast session response=Variant { ptr: 0x7f8000003340, type: VariantTy { inner: "a{sv}" }, value: "{'streams': <[(uint32 112, {'position': <(0, 0)>, 'size': <(210, 230)>})]>}" }
> 2023-02-16T09:17:42.486335Z DEBUG kooha::screencast_session: Opened pipe wire remote response=(handle 0,) fd_list=[8]
> [I][10025.167189] pw.context   | [      pipewire.c:  665 pw_init()] version 0.3.65
> [I][10025.169882] pw.conf      | [          conf.c:  423 conf_load()] 0x7f7ff401caa0: loaded config '/usr/share/pipewire/client.conf' with 5 items
> [I][10025.169924] pw.conf      | [          conf.c:  881 pw_context_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.properties'
> [I][10025.169935] pw.context   | [       context.c:  259 pw_context_new()] 0x7f7ff401c170: parsed 1 context.properties items
> [I][10025.170156] pw.conf      | [          conf.c:  881 pw_context_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.spa-libs'
> [I][10025.170182] pw.context   | [       context.c:  360 pw_context_new()] 0x7f7ff401c170: parsed 2 context.spa-libs items
> [I][10025.170189] pw.conf      | [          conf.c:  881 pw_context_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.modules'
> [I][10025.170197] pw.module    | [   impl-module.c:  181 pw_context_load_module()] 0x7f7ff401c170: name:libpipewire-module-protocol-native args:(null)
> [I][10025.170435] pw.conf      | [          conf.c:  602 load_module()] 0x7f7ff401c170: loaded module libpipewire-module-protocol-native
> [I][10025.170445] pw.module    | [   impl-module.c:  181 pw_context_load_module()] 0x7f7ff401c170: name:libpipewire-module-client-node args:(null)
> [I][10025.170700] pw.conf      | [          conf.c:  602 load_module()] 0x7f7ff401c170: loaded module libpipewire-module-client-node
> [I][10025.170709] pw.module    | [   impl-module.c:  181 pw_context_load_module()] 0x7f7ff401c170: name:libpipewire-module-client-device args:(null)
> [I][10025.170856] pw.conf      | [          conf.c:  602 load_module()] 0x7f7ff401c170: loaded module libpipewire-module-client-device
> [I][10025.170864] pw.module    | [   impl-module.c:  181 pw_context_load_module()] 0x7f7ff401c170: name:libpipewire-module-adapter args:(null)
> [I][10025.170978] pw.conf      | [          conf.c:  602 load_module()] 0x7f7ff401c170: loaded module libpipewire-module-adapter
> [I][10025.170985] pw.module    | [   impl-module.c:  181 pw_context_load_module()] 0x7f7ff401c170: name:libpipewire-module-metadata args:(null)
> [I][10025.171088] pw.conf      | [          conf.c:  602 load_module()] 0x7f7ff401c170: loaded module libpipewire-module-metadata
> [I][10025.171097] pw.module    | [   impl-module.c:  181 pw_context_load_module()] 0x7f7ff401c170: name:libpipewire-module-session-manager args:(null)
> [I][10025.171222] pw.conf      | [          conf.c:  602 load_module()] 0x7f7ff401c170: loaded module libpipewire-module-session-manager
> [I][10025.171229] pw.context   | [       context.c:  364 pw_context_new()] 0x7f7ff401c170: parsed 6 context.modules items
> [I][10025.171235] pw.context   | [       context.c:  369 pw_context_new()] 0x7f7ff401c170: parsed 0 context.objects items
> [I][10025.171240] pw.context   | [       context.c:  372 pw_context_new()] 0x7f7ff401c170: parsed 0 context.exec items
> [W][10025.171264] default      | [        thread.c:  121 impl_acquire_rt()] acquire_rt thread:0x7f800a7fc6c0 prio:-1 not implemented
> [I][10025.171275] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x7f7ff40298d0: add id:0 key:log.level type: value:0
> [I][10025.171282] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x7f7ff40298d0: add id:0 key:clock.rate type: value:48000
> [I][10025.171288] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x7f7ff40298d0: add id:0 key:clock.allowed-rates type: value:[ 48000 ]
> [I][10025.171293] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x7f7ff40298d0: add id:0 key:clock.quantum type: value:1024
> [I][10025.171299] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x7f7ff40298d0: add id:0 key:clock.min-quantum type: value:32
> [I][10025.171304] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x7f7ff40298d0: add id:0 key:clock.max-quantum type: value:2048
> [I][10025.171309] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x7f7ff40298d0: add id:0 key:clock.force-quantum type: value:0
> [I][10025.171314] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x7f7ff40298d0: add id:0 key:clock.force-rate type: value:0
> [I][10025.171372] mod.protocol-native | [  local-socket.c:   90 try_connect()] connecting to 'pipewire-0' runtime_dir:/run/user/1000
> [I][10025.172062] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 28
> [I][10025.172076] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 29
> [I][10025.172080] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 36
> [I][10025.172083] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 46
> [I][10025.172124] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 48
> [I][10025.172137] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 50
> [I][10025.172150] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 52
> [I][10025.172164] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 54
> [I][10025.172184] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 55
> [I][10025.172202] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 56
> [I][10025.172218] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 57
> [I][10025.172239] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 58
> [I][10025.172261] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 59
> [I][10025.172281] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 112
> 0:00:08.441897455 124889 0x56427cc00060 WARN                    alsa conf.c:5545:parse_args: alsalib error: Parameter DEV must be an integer
> 0:00:08.441914240 124889 0x56427cc00060 WARN                    alsa conf.c:5687:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
> 0:00:08.441917388 124889 0x56427cc00060 WARN                    alsa pcm.c:2666:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,0:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
> 0:00:08.442628466 124889 0x56427cc00060 WARN                    alsa conf.c:5545:parse_args: alsalib error: Parameter DEV must be an integer
> 0:00:08.442634046 124889 0x56427cc00060 WARN                    alsa conf.c:5687:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
> 0:00:08.442636424 124889 0x56427cc00060 WARN                    alsa pcm.c:2666:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,3:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
> 0:00:08.443252066 124889 0x56427cc00060 WARN                    alsa conf.c:5545:parse_args: alsalib error: Parameter DEV must be an integer
> 0:00:08.443256835 124889 0x56427cc00060 WARN                    alsa conf.c:5687:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
> 0:00:08.443259447 124889 0x56427cc00060 WARN                    alsa pcm.c:2666:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,4:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
> 0:00:08.443856579 124889 0x56427cc00060 WARN                    alsa conf.c:5545:parse_args: alsalib error: Parameter DEV must be an integer
> 0:00:08.443861127 124889 0x56427cc00060 WARN                    alsa conf.c:5687:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
> 0:00:08.443863522 124889 0x56427cc00060 WARN                    alsa pcm.c:2666:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,5:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
> 0:00:08.443975094 124889 0x56427cc00060 WARN                    alsa conf.c:5545:parse_args: alsalib error: Parameter DEV must be an integer
> 0:00:08.443982038 124889 0x56427cc00060 WARN                    alsa conf.c:5687:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
> 0:00:08.443984448 124889 0x56427cc00060 WARN                    alsa pcm.c:2666:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,31:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
> 2023-02-16T09:17:42.758457Z DEBUG kooha::audio_device: Finding device name for class `Source`
> 2023-02-16T09:17:42.758483Z  WARN kooha::audio_device: Skipping device `pipewiredevice8` as it has no `is-default` property. FieldNotFound { name: "is-default" }
> 2023-02-16T09:17:42.758494Z  WARN kooha::audio_device: Skipping device `pipewiredevice9` as it has no `is-default` property. FieldNotFound { name: "is-default" }
> 2023-02-16T09:17:42.758528Z  WARN kooha::audio_device: Failed to find default name using gstreamer: Failed to find a default device
> 2023-02-16T09:17:42.758533Z DEBUG kooha::audio_device: Manually using libpulse instead
> 2023-02-16T09:17:42.758656Z DEBUG kooha::audio_device::pa: Waiting for context server connection
> 2023-02-16T09:17:42.759950Z DEBUG kooha::audio_device::pa: Connected context to server
> [I][10025.439555] pw.conf      | [          conf.c:  423 conf_load()] 0x7f7ff4084d00: loaded config '/usr/share/pipewire/client.conf' with 5 items
> [I][10025.439589] pw.conf      | [          conf.c:  881 pw_context_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.properties'
> [I][10025.439595] pw.context   | [       context.c:  259 pw_context_new()] 0x7f7ff408ad40: parsed 1 context.properties items
> [I][10025.439761] pw.conf      | [          conf.c:  881 pw_context_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.spa-libs'
> [I][10025.439777] pw.context   | [       context.c:  360 pw_context_new()] 0x7f7ff408ad40: parsed 2 context.spa-libs items
> [I][10025.439781] pw.conf      | [          conf.c:  881 pw_context_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.modules'
> [I][10025.439787] pw.module    | [   impl-module.c:  181 pw_context_load_module()] 0x7f7ff408ad40: name:libpipewire-module-protocol-native args:(null)
> [I][10025.439984] pw.conf      | [          conf.c:  602 load_module()] 0x7f7ff408ad40: loaded module libpipewire-module-protocol-native
> [I][10025.439991] pw.module    | [   impl-module.c:  181 pw_context_load_module()] 0x7f7ff408ad40: name:libpipewire-module-client-node args:(null)
> [I][10025.440190] pw.conf      | [          conf.c:  602 load_module()] 0x7f7ff408ad40: loaded module libpipewire-module-client-node
> [I][10025.440200] pw.module    | [   impl-module.c:  181 pw_context_load_module()] 0x7f7ff408ad40: name:libpipewire-module-client-device args:(null)
> [I][10025.440315] pw.conf      | [          conf.c:  602 load_module()] 0x7f7ff408ad40: loaded module libpipewire-module-client-device
> [I][10025.440328] pw.module    | [   impl-module.c:  181 pw_context_load_module()] 0x7f7ff408ad40: name:libpipewire-module-adapter args:(null)
> [I][10025.440461] pw.conf      | [          conf.c:  602 load_module()] 0x7f7ff408ad40: loaded module libpipewire-module-adapter
> [I][10025.440474] pw.module    | [   impl-module.c:  181 pw_context_load_module()] 0x7f7ff408ad40: name:libpipewire-module-metadata args:(null)
> [I][10025.440585] pw.conf      | [          conf.c:  602 load_module()] 0x7f7ff408ad40: loaded module libpipewire-module-metadata
> [I][10025.440594] pw.module    | [   impl-module.c:  181 pw_context_load_module()] 0x7f7ff408ad40: name:libpipewire-module-session-manager args:(null)
> [I][10025.440715] pw.conf      | [          conf.c:  602 load_module()] 0x7f7ff408ad40: loaded module libpipewire-module-session-manager
> [I][10025.440724] pw.context   | [       context.c:  364 pw_context_new()] 0x7f7ff408ad40: parsed 6 context.modules items
> [I][10025.440731] pw.context   | [       context.c:  369 pw_context_new()] 0x7f7ff408ad40: parsed 0 context.objects items
> [I][10025.440736] pw.context   | [       context.c:  372 pw_context_new()] 0x7f7ff408ad40: parsed 0 context.exec items
> [W][10025.440772] default      | [        thread.c:  121 impl_acquire_rt()] acquire_rt thread:0x7f800a7fc6c0 prio:-1 not implemented
> [I][10025.440783] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x7f7ff402b740: add id:0 key:log.level type: value:0
> [I][10025.440790] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x7f7ff402b740: add id:0 key:clock.rate type: value:48000
> [I][10025.440796] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x7f7ff402b740: add id:0 key:clock.allowed-rates type: value:[ 48000 ]
> [I][10025.440801] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x7f7ff402b740: add id:0 key:clock.quantum type: value:1024
> [I][10025.440807] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x7f7ff402b740: add id:0 key:clock.min-quantum type: value:32
> [I][10025.440812] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x7f7ff402b740: add id:0 key:clock.max-quantum type: value:2048
> [I][10025.440818] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x7f7ff402b740: add id:0 key:clock.force-quantum type: value:0
> [I][10025.440823] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x7f7ff402b740: add id:0 key:clock.force-rate type: value:0
> [I][10025.440883] mod.protocol-native | [  local-socket.c:   90 try_connect()] connecting to 'pipewire-0' runtime_dir:/run/user/1000
> [I][10025.441507] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 28
> [I][10025.441529] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 29
> [I][10025.441535] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 36
> [I][10025.441540] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 46
> [I][10025.441575] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 48
> [I][10025.441592] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 50
> [I][10025.441609] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 52
> [I][10025.441625] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 54
> [I][10025.441650] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 55
> [I][10025.441669] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 56
> [I][10025.441689] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 57
> [I][10025.441711] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 58
> [I][10025.441741] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 59
> [I][10025.441764] default      | [gstpipewiredevic:  280 do_add_nodes()] add node 112
> 0:00:08.451334404 124889 0x56427cc00060 WARN                    alsa conf.c:5545:parse_args: alsalib error: Parameter DEV must be an integer
> 0:00:08.451348595 124889 0x56427cc00060 WARN                    alsa conf.c:5687:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
> 0:00:08.451351740 124889 0x56427cc00060 WARN                    alsa pcm.c:2666:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,0:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
> 0:00:08.452112305 124889 0x56427cc00060 WARN                    alsa conf.c:5545:parse_args: alsalib error: Parameter DEV must be an integer
> 0:00:08.452119166 124889 0x56427cc00060 WARN                    alsa conf.c:5687:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
> 0:00:08.452122293 124889 0x56427cc00060 WARN                    alsa pcm.c:2666:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,3:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
> 0:00:08.452763094 124889 0x56427cc00060 WARN                    alsa conf.c:5545:parse_args: alsalib error: Parameter DEV must be an integer
> 0:00:08.452768270 124889 0x56427cc00060 WARN                    alsa conf.c:5687:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
> 0:00:08.452771110 124889 0x56427cc00060 WARN                    alsa pcm.c:2666:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,4:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
> 0:00:08.453396586 124889 0x56427cc00060 WARN                    alsa conf.c:5545:parse_args: alsalib error: Parameter DEV must be an integer
> 0:00:08.453401487 124889 0x56427cc00060 WARN                    alsa conf.c:5687:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
> 0:00:08.453404620 124889 0x56427cc00060 WARN                    alsa pcm.c:2666:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,5:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
> 0:00:08.453505039 124889 0x56427cc00060 WARN                    alsa conf.c:5545:parse_args: alsalib error: Parameter DEV must be an integer
> 0:00:08.453509375 124889 0x56427cc00060 WARN                    alsa conf.c:5687:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
> 0:00:08.453512299 124889 0x56427cc00060 WARN                    alsa pcm.c:2666:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,31:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
> 2023-02-16T09:17:42.767893Z DEBUG kooha::audio_device: Finding device name for class `Sink`
> 2023-02-16T09:17:42.767919Z  WARN kooha::audio_device: Skipping device `pipewiredevice15` as it has no `is-default` property. FieldNotFound { name: "is-default" }
> 2023-02-16T09:17:42.767929Z  WARN kooha::audio_device: Skipping device `pipewiredevice16` as it has no `is-default` property. FieldNotFound { name: "is-default" }
> 2023-02-16T09:17:42.767936Z  WARN kooha::audio_device: Skipping device `pipewiredevice17` as it has no `is-default` property. FieldNotFound { name: "is-default" }
> 2023-02-16T09:17:42.767943Z  WARN kooha::audio_device: Skipping device `pipewiredevice18` as it has no `is-default` property. FieldNotFound { name: "is-default" }
> 2023-02-16T09:17:42.767976Z  WARN kooha::audio_device: Failed to find default name using gstreamer: Failed to find a default device
> 2023-02-16T09:17:42.767983Z DEBUG kooha::audio_device: Manually using libpulse instead
> 2023-02-16T09:17:42.768079Z DEBUG kooha::audio_device::pa: Waiting for context server connection
> 2023-02-16T09:17:42.769160Z DEBUG kooha::audio_device::pa: Connected context to server
> 2023-02-16T09:17:42.769932Z DEBUG kooha::pipeline: file_path=/home/abc/Video/Kooha-2023-02-16-11-17-42.mkv framerate=30 profile=MatroskaProfile stream_len=1 streams=[Stream { node_id: 112, id: None, position: Some((0, 0)), size: Some((210, 230)), source_type: None }] speaker_source=Some("alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink.monitor") mic_source=Some("alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_6__source") select_area_data=None
> 2023-02-16T09:17:42.770881Z DEBUG kooha::pipeline: pipewiresrc needs copy: false
> 2023-02-16T09:17:42.777061Z DEBUG kooha::profile: encodebin_elements=["audioconvert", "audioresample", "audioconvert", "audiorate", "ANY", "opusenc", "queue", "streamsplitter1", "streamcombiner1", "audio/x-opus", "queue", "videorate", "videoconvert", "videoscale", "videoconvert", "ANY", "x264enc", "queue", "streamsplitter0", "streamcombiner0", "h264parse", "video/x-h264, framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], stream-format=(string){ avc, byte-stream }, alignment=(string)au, profile=(string)baseline", "queue", "matroskamux"]
> [I][10025.456715] pw.conf      | [          conf.c:  423 conf_load()] 0x56427fc93b60: loaded config '/usr/share/pipewire/client.conf' with 5 items
> [I][10025.456770] pw.conf      | [          conf.c:  881 pw_context_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.properties'
> [I][10025.456779] pw.context   | [       context.c:  259 pw_context_new()] 0x56427fc8dbe0: parsed 1 context.properties items
> [I][10025.456982] pw.conf      | [          conf.c:  881 pw_context_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.spa-libs'
> [I][10025.457008] pw.context   | [       context.c:  360 pw_context_new()] 0x56427fc8dbe0: parsed 2 context.spa-libs items
> [I][10025.457016] pw.conf      | [          conf.c:  881 pw_context_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.modules'
> [I][10025.457024] pw.module    | [   impl-module.c:  181 pw_context_load_module()] 0x56427fc8dbe0: name:libpipewire-module-protocol-native args:(null)
> [I][10025.457329] pw.conf      | [          conf.c:  602 load_module()] 0x56427fc8dbe0: loaded module libpipewire-module-protocol-native
> [I][10025.457352] pw.module    | [   impl-module.c:  181 pw_context_load_module()] 0x56427fc8dbe0: name:libpipewire-module-client-node args:(null)
> [I][10025.457592] pw.conf      | [          conf.c:  602 load_module()] 0x56427fc8dbe0: loaded module libpipewire-module-client-node
> [I][10025.457601] pw.module    | [   impl-module.c:  181 pw_context_load_module()] 0x56427fc8dbe0: name:libpipewire-module-client-device args:(null)
> [I][10025.457707] pw.conf      | [          conf.c:  602 load_module()] 0x56427fc8dbe0: loaded module libpipewire-module-client-device
> [I][10025.457714] pw.module    | [   impl-module.c:  181 pw_context_load_module()] 0x56427fc8dbe0: name:libpipewire-module-adapter args:(null)
> [I][10025.457839] pw.conf      | [          conf.c:  602 load_module()] 0x56427fc8dbe0: loaded module libpipewire-module-adapter
> [I][10025.457845] pw.module    | [   impl-module.c:  181 pw_context_load_module()] 0x56427fc8dbe0: name:libpipewire-module-metadata args:(null)
> [I][10025.457955] pw.conf      | [          conf.c:  602 load_module()] 0x56427fc8dbe0: loaded module libpipewire-module-metadata
> [I][10025.457961] pw.module    | [   impl-module.c:  181 pw_context_load_module()] 0x56427fc8dbe0: name:libpipewire-module-session-manager args:(null)
> [I][10025.458096] pw.conf      | [          conf.c:  602 load_module()] 0x56427fc8dbe0: loaded module libpipewire-module-session-manager
> [I][10025.458103] pw.context   | [       context.c:  364 pw_context_new()] 0x56427fc8dbe0: parsed 6 context.modules items
> [I][10025.458107] pw.context   | [       context.c:  369 pw_context_new()] 0x56427fc8dbe0: parsed 0 context.objects items
> [I][10025.458110] pw.context   | [       context.c:  372 pw_context_new()] 0x56427fc8dbe0: parsed 0 context.exec items
> [W][10025.458135] default      | [        thread.c:  121 impl_acquire_rt()] acquire_rt thread:0x7f800a7fc6c0 prio:-1 not implemented
> [I][10025.458145] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x56427fc8fd60: add id:0 key:log.level type: value:0
> [I][10025.458150] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x56427fc8fd60: add id:0 key:clock.rate type: value:48000
> [I][10025.458154] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x56427fc8fd60: add id:0 key:clock.allowed-rates type: value:[ 48000 ]
> [I][10025.458159] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x56427fc8fd60: add id:0 key:clock.quantum type: value:1024
> [I][10025.458164] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x56427fc8fd60: add id:0 key:clock.min-quantum type: value:32
> [I][10025.458170] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x56427fc8fd60: add id:0 key:clock.max-quantum type: value:2048
> [I][10025.458176] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x56427fc8fd60: add id:0 key:clock.force-quantum type: value:0
> [I][10025.458180] pw.metadata  | [ impl-metadata.c:  205 impl_set_property()] 0x56427fc8fd60: add id:0 key:clock.force-rate type: value:0
> [I][10025.458268] pw.conf      | [          conf.c:  881 pw_context_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'stream.properties'
> 0:00:08.468159284 124889 0x7f80141588c0 FIXME                default gstutils.c:4031:gst_pad_create_stream_id_internal:<pipewiresrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
> [I][10025.464243] pw.stream    | [        stream.c:  620 impl_send_command()] 0x56427fcc0df0: command Spa:Pod:Object:Command:Node:Start
> [I][10025.464283] pw.node      | [     impl-node.c:  408 node_update_state()] (kooha-0) creating -> running
> 0:00:08.471638763 124889 0x7f8014389520 WARN              aggregator gstaggregator.c:2146:gst_aggregator_query_latency_unlocked:<audiomixer0> Latency query failed
> 0:00:08.471659906 124889 0x7f8014389400 FIXME                default gstutils.c:4031:gst_pad_create_stream_id_internal:<pulsesrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
> 0:00:08.471663711 124889 0x7f8014343aa0 FIXME                default gstutils.c:4031:gst_pad_create_stream_id_internal:<pulsesrc1:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
> 0:00:08.471688790 124889 0x7f8014389520 WARN              aggregator gstaggregator.c:2146:gst_aggregator_query_latency_unlocked:<audiomixer0> Latency query failed
> 0:00:08.471756798 124889 0x7f8014389520 WARN              aggregator gstaggregator.c:2146:gst_aggregator_query_latency_unlocked:<audiomixer0> Latency query failed
> 2023-02-16T09:17:42.785757Z DEBUG kooha::recording: Pipeline changed state from `Null` -> `Ready`
> 2023-02-16T09:17:42.785888Z DEBUG kooha::recording: Pipeline changed state from `Ready` -> `Paused`
> 0:00:08.498618006 124889 0x7f8014343aa0 WARN         audio-resampler audio-resampler.c:274:convert_taps_gint16_c: can't find exact taps
> 0:00:08.499496157 124889 0x7f8014389400 WARN         audio-resampler audio-resampler.c:274:convert_taps_gint16_c: can't find exact taps
> 0:00:08.500766650 124889 0x56427cbd3a40 WARN                GST_CAPS gstpad.c:3240:gst_pad_query_accept_caps_default:<h264parse0:sink> caps: video/x-raw, width=(int)210, height=(int)230, framerate=(fraction)30/1, format=(string)RGBx, colorimetry=(string)sRGB were not compatible with: video/x-h264
> 0:00:08.500813573 124889 0x56427cbd3a40 WARN                GST_CAPS gstpad.c:3240:gst_pad_query_accept_caps_default:<h264parse0:sink> caps: video/x-raw, width=(int)210, height=(int)230, framerate=(fraction)30/1, format=(string)RGBx, colorimetry=(string)sRGB were not compatible with: video/x-h264
> 0:00:08.500861792 124889 0x56427cb9f060 WARN                GST_CAPS gstpad.c:3240:gst_pad_query_accept_caps_default:<h264parse0:sink> caps: video/x-raw, width=(int)210, height=(int)230, framerate=(fraction)30/1, format=(string)RGBx, colorimetry=(string)sRGB were not compatible with: video/x-h264
> 0:00:08.500917475 124889 0x56427cb9f060 WARN                GST_CAPS gstpad.c:3240:gst_pad_query_accept_caps_default:<h264parse0:sink> caps: video/x-raw, width=(int)210, height=(int)230, framerate=(fraction)30/1, format=(string)RGBx, colorimetry=(string)sRGB were not compatible with: video/x-h264
> 0:00:08.500957258 124889 0x56427cb9f060 WARN                GST_CAPS gstpad.c:3240:gst_pad_query_accept_caps_default:<h264parse0:sink> caps: video/x-raw, width=(int)210, height=(int)230, framerate=(fraction)30/1, format=(string)RGBx, colorimetry=(string)sRGB were not compatible with: video/x-h264
> 0:00:08.501005529 124889 0x7f8014109a40 WARN                GST_CAPS gstpad.c:3240:gst_pad_query_accept_caps_default:<h264parse0:sink> caps: video/x-raw, width=(int)210, height=(int)230, framerate=(fraction)30/1, format=(string)RGBx, colorimetry=(string)sRGB were not compatible with: video/x-h264
> 0:00:08.513161852 124889 0x7f8014566860 WARN         audio-resampler audio-resampler.c:274:convert_taps_gint16_c: can't find exact taps
> 0:00:08.784184719 124889 0x7f80145d6a40 FIXME               basesink gstbasesink.c:3395:gst_base_sink_default_event:<filesink> stream-start event without group-id. Consider implementing group-id handling in the upstream elements
> 2023-02-16T09:17:43.098683Z DEBUG kooha::recording: Pipeline changed state from `Paused` -> `Playing`
> 2023-02-16T09:17:49.784239Z DEBUG kooha::recording: Sending eos event to pipeline
> 2023-02-16T09:17:49.800883Z DEBUG kooha::recording: Eos signal received from record bus
> 0:00:15.487643746 124889 0x7f801415dde0 WARN                audiosrc gstaudiosrc.c:227:audioringbuffer_thread_func:<pulsesrc0> error reading data -1 (reason: Success), skipping segment
> 0:00:15.487834930 124889 0x7f8014343b00 WARN                audiosrc gstaudiosrc.c:227:audioringbuffer_thread_func:<pulsesrc1> error reading data -1 (reason: Resource temporarily unavailable), skipping segment
> [I][10032.481233] pw.stream    | [        stream.c:  620 impl_send_command()] 0x56427fcc0df0: command Spa:Pod:Object:Command:Node:Pause
> [I][10032.481350] pw.node      | [     impl-node.c:  408 node_update_state()] (kooha-0) running -> idle
> [I][10032.484331] pw.stream    | [        stream.c:  620 impl_send_command()] 0x56427fcc0df0: command Spa:Pod:Object:Command:Node:Suspend
> [I][10032.484356] pw.node      | [     impl-node.c:  408 node_update_state()] (kooha-0) idle -> suspended
> [I][10032.484385] pw.node      | [     impl-node.c: 1881 pw_impl_node_destroy()] (kooha-0) destroy
> 2023-02-16T09:17:49.808167Z DEBUG kooha::screencast_session: Closed screencast session response=()
> 2023-02-16T09:17:54.584917Z DEBUG kooha::screencast_session: Waiting request response for method `CreateSession`
> 2023-02-16T09:17:54.585383Z DEBUG kooha::screencast_session: Request response received for method `CreateSession`
> 2023-02-16T09:17:54.585432Z DEBUG kooha::screencast_session: Created screencast session response=Variant { ptr: 0x56427faa78c0, type: VariantTy { inner: "a{sv}" }, value: "{'session_handle': <'/org/freedesktop/portal/desktop/session/1_316/kooha_4'>}" }
> 2023-02-16T09:17:54.585480Z DEBUG kooha::recording: ScreenCast portal version: Ok(4)
> 2023-02-16T09:17:54.585503Z DEBUG kooha::recording: Available cursor modes: Ok(HIDDEN | EMBEDDED)
> 2023-02-16T09:17:54.585515Z DEBUG kooha::recording: Available source types: Ok(MONITOR)
> 2023-02-16T09:17:54.588558Z DEBUG kooha::screencast_session: Waiting request response for method `SelectSources`
> 2023-02-16T09:17:58.665564Z DEBUG kooha::screencast_session: Request response received for method `SelectSources`
> 2023-02-16T09:17:58.665610Z DEBUG kooha::screencast_session: Selected sources response=Variant { ptr: 0x56427fabc600, type: VariantTy { inner: "a{sv}" }, value: "@a{sv} {}" }
> 2023-02-16T09:17:58.666439Z DEBUG kooha::screencast_session: Waiting request response for method `Start`
> 2023-02-16T09:17:58.740086Z DEBUG kooha::screencast_session: Request response received for method `Start`
> 2023-02-16T09:17:58.740273Z ERROR kooha::window: Failed to start recording
> 
> Caused by:
>     0: Check out <a href="https://github.com/SeaDve/Kooha#-it-doesnt-work">It Doesn't Work page</a> for help.
>     1: Failed to begin ScreencastSession
>     2: Failed to start screencast session
>     3: Interaction was ended in some other way with response Variant { ptr: 0x7f8000002a80, type: VariantTy { inner: "a{sv}" }, value: "@a{sv} {}" }

coffebar avatar Feb 16 '23 09:02 coffebar

failed on my arch linux with KDE plasma wayland with errors:

Failed to start recording

Caused by: 0: Check out It Doesn't Work page for help. 1: Failed to create ScreencastSession 2: Failed to create session 3: Failed to call CreateSession with parameters: Variant { ptr: 0x558fd037d080, type: VariantTy { inner: "(a{sv})" }, value: "({'session_handle_token': <'kooha_0'>, 'handle_token': <'kooha_1'>},)" } 4: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.ScreenCast” on object at path /org/freedesktop/portal/desktop

chandresh204 avatar Feb 16 '23 11:02 chandresh204

Same on Fedora 37

Aufnahme konnte nicht gestartet werden

Caused by:
    0: Siehe <a href="https://github.com/SeaDve/Kooha#-it-doesnt-work">It Doesn't Work page</a> für Hilfe.
    1: Failed to begin ScreencastSession
    2: Failed to start screencast session
    3: Interaction was ended in some other way with response Variant { ptr: 0x5631d933e9c0, type: VariantTy { inner: "a{sv}" }, value: "@a{sv} {}" }

krossekrabbe avatar Aug 03 '23 16:08 krossekrabbe

Thanks for the bug issue. This particular issue has already been reported in https://github.com/SeaDve/Kooha/issues/202, so this report is being marked as a duplicate.

SeaDve avatar Feb 08 '24 12:02 SeaDve