SeaDve / Kooha

Elegantly record your screen
GNU General Public License v3.0
2.63k stars 70 forks source link

Gray grid instead of screen in Select Area view and recording #254

Closed hmnd closed 9 months ago

hmnd commented 1 year ago

Affected version

Also occurs outside of flatpak, with installation from AUR.

Probably related: running with proprietary Nvidia drivers.

Bug summary

Recordings on Plasma Wayland with an Nvidia GPU come out as a blank gray grid.

Steps to reproduce

  1. Open Kooha
  2. Record the entire screen or a selection of the screen

Expected behavior

Screed is recorded successfully.

Relevant logs, screenshots, screencasts, etc.

image

Perhaps this is relevant? However, I don't get that error when running as non flatpak (even though the issue still occurs identically): Gsk-Message: 15:09:31.619: Failed to realize renderer of type 'GskGLRenderer' for surface 'GdkWaylandToplevel': Failed to create EGL display

Logs when opening Select Area in Selection mode
2023-09-28T22:09:31.471071Z  INFO kooha::application: Kooha (io.github.seadve.Kooha)
2023-09-28T22:09:31.471082Z  INFO kooha::application: Version: 2.2.4 ()
2023-09-28T22:09:31.471085Z  INFO kooha::application: Datadir: /app/share/kooha
Gsk-Message: 15:09:31.619: Failed to realize renderer of type 'GskGLRenderer' for surface 'GdkWaylandToplevel': Failed to create EGL display

2023-09-28T22:09:33.580705Z DEBUG kooha::screencast_session: Waiting request response for method `CreateSession`
2023-09-28T22:09:33.583062Z DEBUG kooha::screencast_session: Request response received for method `CreateSession`
2023-09-28T22:09:33.583097Z DEBUG kooha::screencast_session: Created screencast session response=Variant { ptr: 0x55fb07fc5000, type: VariantTy { inner: "a{sv}" }, value: "{'session_handle': <'/org/freedesktop/portal/desktop/session/1_589/kooha_0'>}" }
2023-09-28T22:09:33.583147Z DEBUG kooha::recording: ScreenCast portal version: Ok(4)
2023-09-28T22:09:33.583151Z DEBUG kooha::recording: Available cursor modes: Ok(CursorMode(HIDDEN | EMBEDDED | METADATA))
2023-09-28T22:09:33.583171Z DEBUG kooha::recording: Available source types: Ok(SourceType(MONITOR | WINDOW))
2023-09-28T22:09:33.585218Z DEBUG kooha::screencast_session: Waiting request response for method `SelectSources`
2023-09-28T22:09:33.585729Z DEBUG kooha::screencast_session: Request response received for method `SelectSources`
2023-09-28T22:09:33.585760Z DEBUG kooha::screencast_session: Selected sources response=Variant { ptr: 0x55fb082a69e0, type: VariantTy { inner: "a{sv}" }, value: "@a{sv} {}" }
2023-09-28T22:09:33.588099Z DEBUG kooha::screencast_session: Waiting request response for method `Start`
2023-09-28T22:09:35.221078Z DEBUG kooha::screencast_session: Request response received for method `Start`
2023-09-28T22:09:35.221122Z DEBUG kooha::screencast_session: Started screencast session response=Variant { ptr: 0x55fb0840c450, type: VariantTy { inner: "a{sv}" }, value: "{'streams': <[(uint32 60, {'size': <(2560, 1080)>, 'source_type': })]>, 'restore_token': <'3573117e-fde5-4dd0-aaaf-4c595df193ee'>}" }
2023-09-28T22:09:35.223004Z DEBUG kooha::screencast_session: Opened pipe wire remote response=(handle 0,) fd_list=[11]
[I][87316.579266] pw.context   | [      pipewire.c:  647 pw_init()] version 0.3.79
[I][87316.581731] pw.conf      | [          conf.c:  404 conf_load()] 0x7f903c035350: loaded config '/usr/share/pipewire/client.conf' with 5 items
[I][87316.581854] pw.conf      | [          conf.c:  956 pw_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.properties'
[I][87316.581867] pw.context   | [       context.c:  245 pw_context_new()] 0x7f903c034e30: parsed 1 context.properties items
[I][87316.582194] pw.conf      | [          conf.c:  956 pw_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.spa-libs'
[I][87316.582241] pw.context   | [       context.c:  346 pw_context_new()] 0x7f903c034e30: parsed 2 context.spa-libs items
[I][87316.582250] pw.conf      | [          conf.c:  956 pw_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.modules'
[I][87316.582260] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x7f903c034e30: name:libpipewire-module-protocol-native args:(null)
[I][87316.582538] pw.conf      | [          conf.c:  581 load_module()] 0x7f903c034e30: loaded module libpipewire-module-protocol-native
[I][87316.582551] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x7f903c034e30: name:libpipewire-module-client-node args:(null)
[I][87316.582823] pw.conf      | [          conf.c:  581 load_module()] 0x7f903c034e30: loaded module libpipewire-module-client-node
[I][87316.582835] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x7f903c034e30: name:libpipewire-module-client-device args:(null)
[I][87316.582974] pw.conf      | [          conf.c:  581 load_module()] 0x7f903c034e30: loaded module libpipewire-module-client-device
[I][87316.582984] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x7f903c034e30: name:libpipewire-module-adapter args:(null)
[I][87316.583182] pw.conf      | [          conf.c:  581 load_module()] 0x7f903c034e30: loaded module libpipewire-module-adapter
[I][87316.583207] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x7f903c034e30: name:libpipewire-module-metadata args:(null)
[I][87316.583351] pw.conf      | [          conf.c:  581 load_module()] 0x7f903c034e30: loaded module libpipewire-module-metadata
[I][87316.583361] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x7f903c034e30: name:libpipewire-module-session-manager args:(null)
[I][87316.583579] pw.conf      | [          conf.c:  581 load_module()] 0x7f903c034e30: loaded module libpipewire-module-session-manager
[I][87316.583591] pw.context   | [       context.c:  350 pw_context_new()] 0x7f903c034e30: parsed 6 context.modules items
[I][87316.583599] pw.context   | [       context.c:  355 pw_context_new()] 0x7f903c034e30: parsed 0 context.objects items
[I][87316.583606] pw.context   | [       context.c:  358 pw_context_new()] 0x7f903c034e30: parsed 0 context.exec items
[W][87316.583636] default      | [        thread.c:  102 impl_acquire_rt()] acquire_rt thread:0x7f9063bff6c0 prio:-1 not implemented
[I][87316.583653] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x7f903c041640: add id:0 key:log.level type: value:0
[I][87316.583662] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x7f903c041640: add id:0 key:clock.rate type: value:48000
[I][87316.583677] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x7f903c041640: add id:0 key:clock.allowed-rates type: value:[ 48000 ]
[I][87316.583685] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x7f903c041640: add id:0 key:clock.quantum type: value:1024
[I][87316.583692] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x7f903c041640: add id:0 key:clock.min-quantum type: value:32
[I][87316.583715] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x7f903c041640: add id:0 key:clock.max-quantum type: value:2048
[I][87316.583721] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x7f903c041640: add id:0 key:clock.force-quantum type: value:0
[I][87316.583728] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x7f903c041640: add id:0 key:clock.force-rate type: value:0
[I][87316.583818] mod.protocol-native | [  local-socket.c:   70 try_connect()] connecting to 'pipewire-0' runtime_dir:/run/user/1000
[I][87316.583840] mod.protocol-native | [  local-socket.c:   70 try_connect()] connecting to 'pipewire-0' runtime_dir:/run/pipewire
0:00:03.769776620     2 0x7f906c001930 ERROR                default gstpipewirecore.c:91:make_core: (null)
0:00:03.770205528     2 0x7f906c001930 WARN                 default gstpipewirecore.c:134:gst_pipewire_core_get: could not create core
0:00:03.770215776     2 0x7f906c001930 ERROR               pipewire gstpipewiredeviceprovider.c:625:gst_pipewire_device_provider_start: Failed to connect
0:00:04.851273142     2 0x7f906c001930 WARN                    alsa conf.c:5546:parse_args: alsalib error: Parameter DEV must be an integer
0:00:04.851309018     2 0x7f906c001930 WARN                    alsa conf.c:5688:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
0:00:04.851315630     2 0x7f906c001930 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:04.898450819     2 0x7f906c001930 WARN                    alsa conf.c:5546:parse_args: alsalib error: Parameter DEV must be an integer
0:00:04.898470042     2 0x7f906c001930 WARN                    alsa conf.c:5688:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
0:00:04.898476167     2 0x7f906c001930 WARN                    alsa pcm.c:2666:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:1,3:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:00:04.899222331     2 0x7f906c001930 WARN                    alsa conf.c:5546:parse_args: alsalib error: Parameter DEV must be an integer
0:00:04.899231555     2 0x7f906c001930 WARN                    alsa conf.c:5688:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
0:00:04.899236390     2 0x7f906c001930 WARN                    alsa pcm.c:2666:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:1,7:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:00:04.899375246     2 0x7f906c001930 WARN                    alsa conf.c:5546:parse_args: alsalib error: Parameter DEV must be an integer
0:00:04.899383302     2 0x7f906c001930 WARN                    alsa conf.c:5688:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
0:00:04.899388233     2 0x7f906c001930 WARN                    alsa pcm.c:2666:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:1,8:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:00:04.899521201     2 0x7f906c001930 WARN                    alsa conf.c:5546:parse_args: alsalib error: Parameter DEV must be an integer
0:00:04.899529164     2 0x7f906c001930 WARN                    alsa conf.c:5688:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
0:00:04.899534297     2 0x7f906c001930 WARN                    alsa pcm.c:2666:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:1,9:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
2023-09-28T22:09:36.361970Z DEBUG kooha::audio_device: Finding device name for class `Sink`
2023-09-28T22:09:36.361989Z DEBUG kooha::audio_device: Skipping device `pulsedevice4` as it is not the default
2023-09-28T22:09:36.362983Z DEBUG kooha::pipeline: file_path=/home/hmnd/Videos/Kooha/Kooha-2023-09-28-15-09-36.mp4 framerate=30 profile=Mp4Profile stream_len=1 streams=[Stream { node_id: 60, id: None, position: None, size: Some((2560, 1080)), source_type: Some(SourceType(MONITOR)) }] speaker_source=Some("alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor") mic_source=None select_area_data=None
2023-09-28T22:09:36.364015Z DEBUG kooha::pipeline: pipewiresrc needs copy: false
2023-09-28T22:09:36.370469Z DEBUG kooha::profile: encodebin_elements=["audioconvert", "audioresample", "audioconvert", "audiorate", "ANY", "lamemp3enc", "queue", "streamsplitter1", "streamcombiner1", "mpegaudioparse", "audio/mpeg, mpegversion=(int)1, layer=(int)3, rate=(int){ 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000 }, channels=(int)[ 1, 2 ]", "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", "mp4mux"]
[I][87317.722691] pw.conf      | [          conf.c:  404 conf_load()] 0x55fb085d07c0: loaded config '/usr/share/pipewire/client.conf' with 5 items
[I][87317.722722] pw.conf      | [          conf.c:  956 pw_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.properties'
[I][87317.722732] pw.context   | [       context.c:  245 pw_context_new()] 0x55fb085deb80: parsed 1 context.properties items
[I][87317.722938] pw.conf      | [          conf.c:  956 pw_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.spa-libs'
[I][87317.722960] pw.context   | [       context.c:  346 pw_context_new()] 0x55fb085deb80: parsed 2 context.spa-libs items
[I][87317.722968] pw.conf      | [          conf.c:  956 pw_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.modules'
[I][87317.722978] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x55fb085deb80: name:libpipewire-module-protocol-native args:(null)
[I][87317.723193] pw.conf      | [          conf.c:  581 load_module()] 0x55fb085deb80: loaded module libpipewire-module-protocol-native
[I][87317.723204] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x55fb085deb80: name:libpipewire-module-client-node args:(null)
[I][87317.723437] pw.conf      | [          conf.c:  581 load_module()] 0x55fb085deb80: loaded module libpipewire-module-client-node
[I][87317.723448] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x55fb085deb80: name:libpipewire-module-client-device args:(null)
[I][87317.723575] pw.conf      | [          conf.c:  581 load_module()] 0x55fb085deb80: loaded module libpipewire-module-client-device
[I][87317.723586] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x55fb085deb80: name:libpipewire-module-adapter args:(null)
[I][87317.723783] pw.conf      | [          conf.c:  581 load_module()] 0x55fb085deb80: loaded module libpipewire-module-adapter
[I][87317.723794] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x55fb085deb80: name:libpipewire-module-metadata args:(null)
[I][87317.723929] pw.conf      | [          conf.c:  581 load_module()] 0x55fb085deb80: loaded module libpipewire-module-metadata
[I][87317.723940] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x55fb085deb80: name:libpipewire-module-session-manager args:(null)
[I][87317.724092] pw.conf      | [          conf.c:  581 load_module()] 0x55fb085deb80: loaded module libpipewire-module-session-manager
[I][87317.724103] pw.context   | [       context.c:  350 pw_context_new()] 0x55fb085deb80: parsed 6 context.modules items
[I][87317.724110] pw.context   | [       context.c:  355 pw_context_new()] 0x55fb085deb80: parsed 0 context.objects items
[I][87317.724116] pw.context   | [       context.c:  358 pw_context_new()] 0x55fb085deb80: parsed 0 context.exec items
[W][87317.724147] default      | [        thread.c:  102 impl_acquire_rt()] acquire_rt thread:0x7f9062bfd6c0 prio:-1 not implemented
[I][87317.724160] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x55fb085e9f80: add id:0 key:log.level type: value:0
[I][87317.724168] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x55fb085e9f80: add id:0 key:clock.rate type: value:48000
[I][87317.724175] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x55fb085e9f80: add id:0 key:clock.allowed-rates type: value:[ 48000 ]
[I][87317.724182] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x55fb085e9f80: add id:0 key:clock.quantum type: value:1024
[I][87317.724189] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x55fb085e9f80: add id:0 key:clock.min-quantum type: value:32
[I][87317.724196] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x55fb085e9f80: add id:0 key:clock.max-quantum type: value:2048
[I][87317.724202] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x55fb085e9f80: add id:0 key:clock.force-quantum type: value:0
[I][87317.724209] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x55fb085e9f80: add id:0 key:clock.force-rate type: value:0
[I][87317.724296] pw.conf      | [          conf.c:  956 pw_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'stream.properties'
0:00:04.913667735     2 0x7f906c001050 WARN              aggregator gstaggregator.c:2146:gst_aggregator_query_latency_unlocked: Latency query failed
0:00:04.913681810     2 0x7f906c001050 WARN              aggregator gstaggregator.c:2146:gst_aggregator_query_latency_unlocked: Latency query failed
0:00:04.914581235     2 0x7f906c0025e0 FIXME                default gstutils.c:4036:gst_pad_create_stream_id_internal: Creating random stream-id, consider implementing a deterministic way of creating a stream-id
[I][87317.733392] pw.stream    | [        stream.c:  880 parse_latency()] stream 0x55fb086085f0: set output latency 0.000000-0.000000 0-0 0-0
[I][87317.767738] pw.stream    | [        stream.c:  647 impl_send_command()] 0x55fb086085f0: command Spa:Pod:Object:Command:Node:Start
[I][87317.767922] pw.node      | [     impl-node.c:  407 node_update_state()] (kooha-79) creating -> running
0:00:04.954576152     2 0x7f906c002a80 WARN              aggregator gstaggregator.c:2146:gst_aggregator_query_latency_unlocked: Latency query failed
0:00:04.954722638     2 0x7f906c002cd0 FIXME                default gstutils.c:4036:gst_pad_create_stream_id_internal: Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:04.954799448     2 0x7f906c002a80 WARN              aggregator gstaggregator.c:2146:gst_aggregator_query_latency_unlocked: Latency query failed
0:00:04.955009173     2 0x7f906c001050 WARN              aggregator gstaggregator.c:2146:gst_aggregator_query_latency_unlocked: Latency query failed
0:00:04.955021494     2 0x7f906c001050 WARN              aggregator gstaggregator.c:2146:gst_aggregator_query_latency_unlocked: Latency query failed
0:00:04.955162872     2 0x7f906c002a80 WARN              aggregator gstaggregator.c:2146:gst_aggregator_query_latency_unlocked: Latency query failed
2023-09-28T22:09:36.417690Z DEBUG kooha::recording: Pipeline changed state from `Null` -> `Ready`
2023-09-28T22:09:36.418153Z DEBUG kooha::recording: Pipeline changed state from `Ready` -> `Paused`
0:00:04.959193027     2 0x7f906c002140 WARN                GST_CAPS gstpad.c:3240:gst_pad_query_accept_caps_default: caps: video/x-raw, width=(int)2560, height=(int)1080, framerate=(fraction)30/1, format=(string)BGRA, colorimetry=(string)sRGB were not compatible with: video/x-h264
0:00:04.959326471     2 0x7f906c002140 WARN                GST_CAPS gstpad.c:3240:gst_pad_query_accept_caps_default: caps: video/x-raw, width=(int)2560, height=(int)1080, framerate=(fraction)30/1, format=(string)BGRA, colorimetry=(string)sRGB were not compatible with: video/x-h264
0:00:04.959446442     2 0x7f906c002390 WARN                GST_CAPS gstpad.c:3240:gst_pad_query_accept_caps_default: caps: video/x-raw, width=(int)2560, height=(int)1080, framerate=(fraction)30/1, format=(string)BGRA, colorimetry=(string)sRGB were not compatible with: video/x-h264
0:00:04.959555721     2 0x7f906c002390 WARN                GST_CAPS gstpad.c:3240:gst_pad_query_accept_caps_default: caps: video/x-raw, width=(int)2560, height=(int)1080, framerate=(fraction)30/1, format=(string)BGRA, colorimetry=(string)sRGB were not compatible with: video/x-h264
0:00:04.959668495     2 0x7f906c002390 WARN                GST_CAPS gstpad.c:3240:gst_pad_query_accept_caps_default: caps: video/x-raw, width=(int)2560, height=(int)1080, framerate=(fraction)30/1, format=(string)BGRA, colorimetry=(string)sRGB were not compatible with: video/x-h264
0:00:04.959797474     2 0x7f906c000b90 WARN                GST_CAPS gstpad.c:3240:gst_pad_query_accept_caps_default: caps: video/x-raw, width=(int)2560, height=(int)1080, framerate=(fraction)30/1, format=(string)BGRA, colorimetry=(string)sRGB were not compatible with: video/x-h264
0:00:04.969463354     2 0x7f906c002cd0 WARN         audio-resampler audio-resampler.c:274:convert_taps_gint16_c: can't find exact taps
0:00:04.976470910     2 0x7f906c002a80 WARN                GST_CAPS gstpad.c:3240:gst_pad_query_accept_caps_default: caps: audio/x-raw, rate=(int)48000, format=(string)S16LE, channels=(int)1, layout=(string)interleaved were not compatible with: audio/mpeg, mpegversion=(int)1
0:00:04.976543293     2 0x7f906c002a80 WARN                GST_CAPS gstpad.c:3240:gst_pad_query_accept_caps_default: caps: audio/x-raw, format=(string)S16LE, rate=(int)48000, channels=(int)1, layout=(string)interleaved were not compatible with: audio/mpeg, mpegversion=(int)1
0:00:04.976675486     2 0x7f906c002830 WARN                GST_CAPS gstpad.c:3240:gst_pad_query_accept_caps_default: caps: audio/x-raw, format=(string)S16LE, rate=(int)48000, channels=(int)1, layout=(string)interleaved were not compatible with: audio/mpeg, mpegversion=(int)1
0:00:04.976730705     2 0x7f906c002830 WARN                GST_CAPS gstpad.c:3240:gst_pad_query_accept_caps_default: caps: audio/x-raw, format=(string)S16LE, rate=(int)48000, channels=(int)1, layout=(string)interleaved were not compatible with: audio/mpeg, mpegversion=(int)1
0:00:04.976767904     2 0x7f906c002830 WARN                GST_CAPS gstpad.c:3240:gst_pad_query_accept_caps_default: caps: audio/x-raw, format=(string)S16LE, rate=(int)48000, channels=(int)1, layout=(string)interleaved were not compatible with: audio/mpeg, mpegversion=(int)1
0:00:04.976832955     2 0x7f906c000bf0 WARN                GST_CAPS gstpad.c:3240:gst_pad_query_accept_caps_default: caps: audio/x-raw, format=(string)S16LE, rate=(int)48000, channels=(int)1, layout=(string)interleaved were not compatible with: audio/mpeg, mpegversion=(int)1
0:00:04.979007728     2 0x7f906c000bf0 WARN         audio-resampler audio-resampler.c:274:convert_taps_gint16_c: can't find exact taps
0:00:05.454357373     2 0x7f906c000b90 WARN                 x264enc gstx264enc.c:1274:gst_x264_enc_log_callback: VBV underflow (frame 0, -3240536 bits)
0:00:05.456539579     2 0x7f906c001280 FIXME               basesink gstbasesink.c:3395:gst_base_sink_default_event: stream-start event without group-id. Consider implementing group-id handling in the upstream elements
0:00:05.456585810     2 0x7f906c001050 FIXME             aggregator gstaggregator.c:1438:gst_aggregator_aggregate_func: Subclass should call gst_aggregator_selected_samples() from its aggregate implementation.
2023-09-28T22:09:36.919259Z DEBUG kooha::recording: Pipeline changed state from `Paused` -> `Playing`
2023-09-28T22:09:37.025157Z DEBUG kooha::recording: Sending eos event to pipeline
0:00:05.564397794     2 0x7f906c000bf0 WARN            audioencoder gstaudioencoder.c:1014:gst_audio_encoder_finish_frame: Can't copy metadata because input buffer disappeared
2023-09-28T22:09:37.077401Z DEBUG kooha::recording: Eos signal received from record bus
0:00:05.615666443     2 0x7f901c004cf0 WARN                audiosrc gstaudiosrc.c:227:audioringbuffer_thread_func: error reading data -1 (reason: Success), skipping segment
[I][87318.430081] pw.stream    | [        stream.c:  647 impl_send_command()] 0x55fb086085f0: command Spa:Pod:Object:Command:Node:Pause
[I][87318.430148] pw.node      | [     impl-node.c:  407 node_update_state()] (kooha-79) running -> idle
[I][87318.438052] pw.stream    | [        stream.c:  647 impl_send_command()] 0x55fb086085f0: command Spa:Pod:Object:Command:Node:Suspend
[I][87318.438167] pw.node      | [     impl-node.c:  407 node_update_state()] (kooha-79) idle -> suspended
[I][87318.438289] pw.node      | [     impl-node.c: 2038 pw_impl_node_destroy()] (kooha-79) destroy
2023-09-28T22:09:37.099320Z DEBUG kooha::screencast_session: Closed screencast session response=()
Logs when opening Select Area in Selection mode
2023-09-28T22:07:15.691300Z  INFO kooha::application: Kooha (io.github.seadve.Kooha)
2023-09-28T22:07:15.691311Z  INFO kooha::application: Version: 2.2.4 ()
2023-09-28T22:07:15.691313Z  INFO kooha::application: Datadir: /app/share/kooha
Gsk-Message: 15:07:15.845: Failed to realize renderer of type 'GskGLRenderer' for surface 'GdkWaylandToplevel': Failed to create EGL display

2023-09-28T22:07:18.074966Z DEBUG kooha::screencast_session: Waiting request response for method `CreateSession`
2023-09-28T22:07:18.077532Z DEBUG kooha::screencast_session: Request response received for method `CreateSession`
2023-09-28T22:07:18.077594Z DEBUG kooha::screencast_session: Created screencast session response=Variant { ptr: 0x555a89ea82e0, type: VariantTy { inner: "a{sv}" }, value: "{'session_handle': <'/org/freedesktop/portal/desktop/session/1_586/kooha_0'>}" }
2023-09-28T22:07:18.077634Z DEBUG kooha::recording: ScreenCast portal version: Ok(4)
2023-09-28T22:07:18.077656Z DEBUG kooha::recording: Available cursor modes: Ok(CursorMode(HIDDEN | EMBEDDED | METADATA))
2023-09-28T22:07:18.077683Z DEBUG kooha::recording: Available source types: Ok(SourceType(MONITOR | WINDOW))
2023-09-28T22:07:18.079524Z DEBUG kooha::screencast_session: Waiting request response for method `SelectSources`
2023-09-28T22:07:18.080049Z DEBUG kooha::screencast_session: Request response received for method `SelectSources`
2023-09-28T22:07:18.080104Z DEBUG kooha::screencast_session: Selected sources response=Variant { ptr: 0x555a89df5b50, type: VariantTy { inner: "a{sv}" }, value: "@a{sv} {}" }
2023-09-28T22:07:18.082067Z DEBUG kooha::screencast_session: Waiting request response for method `Start`
2023-09-28T22:07:20.108271Z DEBUG kooha::screencast_session: Request response received for method `Start`
2023-09-28T22:07:20.108317Z DEBUG kooha::screencast_session: Started screencast session response=Variant { ptr: 0x555a89d76870, type: VariantTy { inner: "a{sv}" }, value: "{'streams': <[(uint32 79, {'size': <(2560, 1080)>, 'source_type': })]>, 'restore_token': <'47e81620-316d-4eb9-a82a-d27ce4e9c5d8'>}" }
2023-09-28T22:07:20.110173Z DEBUG kooha::screencast_session: Opened pipe wire remote response=(handle 0,) fd_list=[11]
2023-09-28T22:07:20.115823Z DEBUG kooha::pipeline: pipewiresrc needs copy: false
[I][87181.469805] pw.context   | [      pipewire.c:  647 pw_init()] version 0.3.79
[I][87181.470988] pw.conf      | [          conf.c:  404 conf_load()] 0x555a89e9eb60: loaded config '/usr/share/pipewire/client.conf' with 5 items
[I][87181.471037] pw.conf      | [          conf.c:  956 pw_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.properties'
[I][87181.471048] pw.context   | [       context.c:  245 pw_context_new()] 0x555a89f43590: parsed 1 context.properties items
[I][87181.471364] pw.conf      | [          conf.c:  956 pw_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.spa-libs'
[I][87181.471415] pw.context   | [       context.c:  346 pw_context_new()] 0x555a89f43590: parsed 2 context.spa-libs items
[I][87181.471425] pw.conf      | [          conf.c:  956 pw_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.modules'
[I][87181.471434] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x555a89f43590: name:libpipewire-module-protocol-native args:(null)
[I][87181.471659] pw.conf      | [          conf.c:  581 load_module()] 0x555a89f43590: loaded module libpipewire-module-protocol-native
[I][87181.471672] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x555a89f43590: name:libpipewire-module-client-node args:(null)
[I][87181.471963] pw.conf      | [          conf.c:  581 load_module()] 0x555a89f43590: loaded module libpipewire-module-client-node
[I][87181.471976] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x555a89f43590: name:libpipewire-module-client-device args:(null)
[I][87181.472186] pw.conf      | [          conf.c:  581 load_module()] 0x555a89f43590: loaded module libpipewire-module-client-device
[I][87181.472198] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x555a89f43590: name:libpipewire-module-adapter args:(null)
[I][87181.472382] pw.conf      | [          conf.c:  581 load_module()] 0x555a89f43590: loaded module libpipewire-module-adapter
[I][87181.472393] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x555a89f43590: name:libpipewire-module-metadata args:(null)
[I][87181.472581] pw.conf      | [          conf.c:  581 load_module()] 0x555a89f43590: loaded module libpipewire-module-metadata
[I][87181.472611] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x555a89f43590: name:libpipewire-module-session-manager args:(null)
[I][87181.472813] pw.conf      | [          conf.c:  581 load_module()] 0x555a89f43590: loaded module libpipewire-module-session-manager
[I][87181.472840] pw.context   | [       context.c:  350 pw_context_new()] 0x555a89f43590: parsed 6 context.modules items
[I][87181.472849] pw.context   | [       context.c:  355 pw_context_new()] 0x555a89f43590: parsed 0 context.objects items
[I][87181.472856] pw.context   | [       context.c:  358 pw_context_new()] 0x555a89f43590: parsed 0 context.exec items
[W][87181.472886] default      | [        thread.c:  102 impl_acquire_rt()] acquire_rt thread:0x7f4577fff6c0 prio:-1 not implemented
[I][87181.472901] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x555a89f582b0: add id:0 key:log.level type: value:0
[I][87181.472911] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x555a89f582b0: add id:0 key:clock.rate type: value:48000
[I][87181.472927] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x555a89f582b0: add id:0 key:clock.allowed-rates type: value:[ 48000 ]
[I][87181.472939] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x555a89f582b0: add id:0 key:clock.quantum type: value:1024
[I][87181.472951] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x555a89f582b0: add id:0 key:clock.min-quantum type: value:32
[I][87181.472962] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x555a89f582b0: add id:0 key:clock.max-quantum type: value:2048
[I][87181.472974] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x555a89f582b0: add id:0 key:clock.force-quantum type: value:0
[I][87181.472986] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x555a89f582b0: add id:0 key:clock.force-rate type: value:0
[I][87181.473104] pw.conf      | [          conf.c:  956 pw_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'stream.properties'
0:00:04.440134045     2 0x7f45800014e0 FIXME                default gstutils.c:4036:gst_pad_create_stream_id_internal: Creating random stream-id, consider implementing a deterministic way of creating a stream-id
[I][87181.477541] pw.stream    | [        stream.c:  880 parse_latency()] stream 0x555a89f76860: set output latency 0.000000-0.000000 0-0 0-0
[I][87181.522018] pw.stream    | [        stream.c:  647 impl_send_command()] 0x555a89f76860: command Spa:Pod:Object:Command:Node:Start
[I][87181.522244] pw.node      | [     impl-node.c:  407 node_update_state()] (kooha-98) creating -> running
Gsk-Message: 15:07:20.170: Failed to realize renderer of type 'GskGLRenderer' for surface 'GdkWaylandToplevel': Failed to create EGL display

2023-09-28T22:07:20.176891Z DEBUG kooha::area_selector: Pipeline changed state from `Null` -> `Ready`
2023-09-28T22:07:20.177015Z DEBUG kooha::area_selector: Pipeline changed state from `Ready` -> `Paused`
0:00:04.511971980     2 0x7f45800012a0 FIXME               basesink gstbasesink.c:3395:gst_base_sink_default_event: stream-start event without group-id. Consider implementing group-id handling in the upstream elements
2023-09-28T22:07:20.199113Z DEBUG kooha::area_selector: Pipeline changed state from `Paused` -> `Playing`
SeaDve commented 9 months ago

Hi, is this still reproducible in the latest version: 2.2.4?

hmnd commented 9 months ago

@SeaDve it isn't; it's fixed!

A minor issue that remains is that the first frame of the recording is still a gray grid, but area selection and recording is finally usable! Thank you so much :heart:

Here's an example of that first frame issue:

https://github.com/SeaDve/Kooha/assets/12853597/7f244553-a753-46c3-9051-a058dd4b1fb8