Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recording a region doesn't seem to work, recording pauses immediately #302

Open
PeeK1e opened this issue Jun 23, 2024 · 16 comments
Open

Recording a region doesn't seem to work, recording pauses immediately #302

PeeK1e opened this issue Jun 23, 2024 · 16 comments
Labels
Needs info Further information is requested

Comments

@PeeK1e
Copy link

PeeK1e commented Jun 23, 2024

Hi and thanks for the tool 🙂

2.3.0

Debug Info
- io.github.seadve.Kooha 2.3.0
- Flatpak: false
- Experimental Features: []

- Language: en_US.UTF-8, en_US, en.UTF-8, en, C

- CPU: AMD Ryzen 7 5800X3D 8-Core Processor
- GPU: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] (rev c1)

- Distribution: EndeavourOS
- Desktop Session: <unknown>
- Display Server: wayland

- GTK 4.14.4
- Libadwaita 1.5.0
- GStreamer 1.24.3
- Pipewire 1.0.6

Running on EndeavourOS but it now basically is a normal Arch install.
My Window Manager is Sway

Bug summary

When opening Kooha, selecting a region and then starting a recording, Kooha counts down and immediately pauses the recording. When trying to stop most of the times the app freezes and needs to be killed with SIGTERM.

Sometimes it works though. but there are a lot of Warnings.
If i can get it to work ill post the logs of a working recording later.

On full screen recordings, it always works.

Steps to reproduce

  1. Go to Capture Selection of Screen
  2. Select region
  3. Click on Done
  4. Wait for countdown
  5. Kooha immediately pauses and does not record anything

Expected behavior

Record a region.

Relevant logs, screenshots, screencasts, etc.

Failed Log
2024-06-23T13:49:55.625113Z  INFO kooha::application: Kooha (io.github.seadve.Kooha)
2024-06-23T13:49:55.625121Z  INFO kooha::application: Version: 2.3.0 ()
2024-06-23T13:49:55.625123Z  INFO kooha::application: Datadir: /usr/share/kooha
2024-06-23T13:49:57.686965Z DEBUG kooha::recording: Created screencast proxy version=Ok(5) available_cursor_modes=Ok(CursorMode(HIDDEN | EMBEDDED)) available_source_types=Ok(SourceType(MONITOR))
2024-06-23T13:49:57.688160Z DEBUG kooha::recording: Selecting sources cursor_mode=CursorMode(EMBEDDED) source_type=SourceType(MONITOR) is_multiple_sources=false restore_token="" persist_mode=Persistent
2024-06-23T13:49:58.403030Z DEBUG kooha::recording: Starting session window_identifier=wayland:b294be3387fbd631b6ea21ddf0e852d8
[I][01571.893988] pw.context   | [      pipewire.c:  647 pw_init()] version 1.0.6
2024-06-23T13:49:58.423625Z DEBUG kooha::area_selector: Using gl pipeline
[I][01571.900303] pw.conf      | [          conf.c:  408 conf_load()] 0x5957ac2e52d0: loaded config '/etc/pipewire/client.conf' with 5 items
[I][01571.900334] pw.conf      | [          conf.c:  972 pw_conf_section_for_each()] handle config '/etc/pipewire/client.conf' section 'context.properties'
[I][01571.900344] pw.context   | [       context.c:  253 pw_context_new()] 0x5957ac2ea1c0: parsed 1 context.properties items
[I][01571.900953] pw.conf      | [          conf.c:  972 pw_conf_section_for_each()] handle config '/etc/pipewire/client.conf' section 'context.spa-libs'
[I][01571.900973] pw.context   | [       context.c:  354 pw_context_new()] 0x5957ac2ea1c0: parsed 2 context.spa-libs items
[I][01571.900981] pw.conf      | [          conf.c:  972 pw_conf_section_for_each()] handle config '/etc/pipewire/client.conf' section 'context.modules'
[I][01571.900988] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x5957ac2ea1c0: name:libpipewire-module-protocol-native args:(null)
[I][01571.901195] pw.conf      | [          conf.c:  592 load_module()] 0x5957ac2ea1c0: loaded module libpipewire-module-protocol-native
[I][01571.901208] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x5957ac2ea1c0: name:libpipewire-module-client-node args:(null)
[I][01571.901392] pw.conf      | [          conf.c:  592 load_module()] 0x5957ac2ea1c0: loaded module libpipewire-module-client-node
[I][01571.901402] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x5957ac2ea1c0: name:libpipewire-module-client-device args:(null)
[I][01571.901522] pw.conf      | [          conf.c:  592 load_module()] 0x5957ac2ea1c0: loaded module libpipewire-module-client-device
[I][01571.901533] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x5957ac2ea1c0: name:libpipewire-module-adapter args:(null)
[I][01571.901657] pw.conf      | [          conf.c:  592 load_module()] 0x5957ac2ea1c0: loaded module libpipewire-module-adapter
[I][01571.901667] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x5957ac2ea1c0: name:libpipewire-module-metadata args:(null)
[I][01571.901790] pw.conf      | [          conf.c:  592 load_module()] 0x5957ac2ea1c0: loaded module libpipewire-module-metadata
[I][01571.901800] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x5957ac2ea1c0: name:libpipewire-module-session-manager args:(null)
[I][01571.901931] pw.conf      | [          conf.c:  592 load_module()] 0x5957ac2ea1c0: loaded module libpipewire-module-session-manager
[I][01571.901940] pw.context   | [       context.c:  358 pw_context_new()] 0x5957ac2ea1c0: parsed 6 context.modules items
[I][01571.901947] pw.context   | [       context.c:  363 pw_context_new()] 0x5957ac2ea1c0: parsed 0 context.objects items
[I][01571.901954] pw.context   | [       context.c:  366 pw_context_new()] 0x5957ac2ea1c0: parsed 0 context.exec items
[I][01571.901999] default      | [        thread.c:  105 impl_acquire_rt()] acquire_rt thread:0x70d9696006c0 prio:-1 not implemented
[I][01571.902013] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x5957ac2eb8d0: add id:0 key:log.level type: value:0
[I][01571.902021] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x5957ac2eb8d0: add id:0 key:clock.rate type: value:48000
[I][01571.902028] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x5957ac2eb8d0: add id:0 key:clock.allowed-rates type: value:[ 48000 ]
[I][01571.902034] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x5957ac2eb8d0: add id:0 key:clock.quantum type: value:1024
[I][01571.902040] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x5957ac2eb8d0: add id:0 key:clock.min-quantum type: value:32
[I][01571.902046] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x5957ac2eb8d0: add id:0 key:clock.max-quantum type: value:2048
[I][01571.902052] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x5957ac2eb8d0: add id:0 key:clock.force-quantum type: value:0
[I][01571.902058] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x5957ac2eb8d0: add id:0 key:clock.force-rate type: value:0
[I][01571.902136] pw.conf      | [          conf.c:  972 pw_conf_section_for_each()] handle config '/etc/pipewire/client.conf' section 'stream.properties'
[E][01571.902187] mod.protocol-native | [module-protocol-: 1009 process_remote()] 0x5957ac2ebe50: could not find proxy 2
[E][01571.902204] mod.protocol-native | [module-protocol-: 1009 process_remote()] 0x5957ac2ebe50: could not find proxy 2
[E][01571.902214] mod.protocol-native | [module-protocol-: 1009 process_remote()] 0x5957ac2ebe50: could not find proxy 2
0:00:02.812624777 345268 0x70d970001b70 FIXME                default gstutils.c:4088:gst_element_decorate_stream_id_internal:<pipewiresrc0> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:02.812842269 345268 0x70d930007b20 FIXME              glcontext gstglcontext.c:2038:gst_gl_wrapped_context_get_config:<glwrappedcontext0> wrapped context could not retrieve config. The application may be missing a call to gst_gl_context_fill_info() or the specific platform implemention is not implemented for retrieving the config from a wrapped OpenGL context.
[I][01571.911135] pw.stream    | [        stream.c:  894 parse_latency()] stream 0x5957ac317120: set output latency 0,000000-0,000000 0-0 0-0
[I][01571.921342] pw.stream    | [        stream.c:  698 impl_send_command()] 0x5957ac317120: command Spa:Pod:Object:Command:Node:Start
[I][01571.921381] pw.node      | [     impl-node.c:  412 node_update_state()] (kooha-80) creating -> running
2024-06-23T13:49:58.470008Z DEBUG kooha::area_selector: Pipeline changed state from `Null` -> `Ready`
2024-06-23T13:49:58.470055Z DEBUG kooha::area_selector: Pipeline changed state from `Ready` -> `Paused`
2024-06-23T13:49:58.506368Z DEBUG kooha::area_selector: Pipeline changed state from `Paused` -> `Playing`
[I][01573.296098] pw.stream    | [        stream.c:  698 impl_send_command()] 0x5957ac317120: command Spa:Pod:Object:Command:Node:Pause
[I][01573.296147] pw.node      | [     impl-node.c:  412 node_update_state()] (kooha-80) running -> idle
[I][01573.296903] pw.stream    | [        stream.c:  698 impl_send_command()] 0x5957ac317120: command Spa:Pod:Object:Command:Node:Suspend
[I][01573.296962] pw.node      | [     impl-node.c:  412 node_update_state()] (kooha-80) idle -> suspended
[I][01573.297023] pw.node      | [     impl-node.c: 2044 pw_impl_node_destroy()] (kooha-80) destroy
2024-06-23T13:49:59.826883Z DEBUG kooha::pipeline: file_path=/home/ryuko/Videos/Kooha/Kooha-2024-06-23-15-49-58.mp4 framerate=Fraction(Ratio { numer: 24, denom: 1 }) profile="mp4" fd=17 stream_len=1 streams=[Stream { node_id: 92, id: None, position: Some((0, 0)), size: Some((1920, 1080)), source_type: Some(SourceType(WINDOW)) }] record_desktop_audio=true record_microphone=false select_area_data=Some(SelectAreaData { selection: Selection { x: 373.10156, y: 15.949216, width: 366.89844, height: 398.05078 }, paintable_rect: Rect { x: 4.0, y: 0.0, width: 736.0, height: 414.0 }, stream_size: (1920, 1080) })
2024-06-23T13:49:59.827492Z DEBUG kooha::pipeline: raw_top_crop=41.606651306152344 raw_left_crop=962.8736572265625 raw_right_crop=0.0 raw_bottom_crop=-0.0001220703125
2024-06-23T13:49:59.827501Z DEBUG kooha::pipeline: top_crop=42 left_crop=962 right_crop=0 bottom_crop=0
2024-06-23T13:49:59.837063Z DEBUG kooha::device: Finding device name for class `Sink`
2024-06-23T13:49:59.837072Z DEBUG kooha::device: Skipping device `pulsedevice0` as it has unknown device class `Audio/Source`
2024-06-23T13:49:59.837082Z DEBUG kooha::device: Skipping device `pulsedevice1` as it has unknown device class `Audio/Source`
2024-06-23T13:49:59.837089Z DEBUG kooha::device: Skipping device `pulsedevice2` as it has unknown device class `Audio/Source`
2024-06-23T13:49:59.837102Z DEBUG kooha::device: Skipping device `pulsedevice3` as it is not the default
2024-06-23T13:49:59.837283Z DEBUG kooha::pipeline: Found desktop audio with name `alsa_output.usb-Focusrite_Scarlett_Solo_USB_Y7THA7X0535FB2-00.pro-output-0.monitor`
[I][01576.313930] pw.conf      | [          conf.c:  408 conf_load()] 0x5957abe56180: loaded config '/etc/pipewire/client.conf' with 5 items
[I][01576.313980] pw.conf      | [          conf.c:  972 pw_conf_section_for_each()] handle config '/etc/pipewire/client.conf' section 'context.properties'
[I][01576.313994] pw.context   | [       context.c:  253 pw_context_new()] 0x5957abdbef80: parsed 1 context.properties items
[I][01576.314276] pw.conf      | [          conf.c:  972 pw_conf_section_for_each()] handle config '/etc/pipewire/client.conf' section 'context.spa-libs'
[I][01576.314304] pw.context   | [       context.c:  354 pw_context_new()] 0x5957abdbef80: parsed 2 context.spa-libs items
[I][01576.314315] pw.conf      | [          conf.c:  972 pw_conf_section_for_each()] handle config '/etc/pipewire/client.conf' section 'context.modules'
[I][01576.314327] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x5957abdbef80: name:libpipewire-module-protocol-native args:(null)
[I][01576.314600] pw.conf      | [          conf.c:  592 load_module()] 0x5957abdbef80: loaded module libpipewire-module-protocol-native
[I][01576.314613] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x5957abdbef80: name:libpipewire-module-client-node args:(null)
[I][01576.314834] pw.conf      | [          conf.c:  592 load_module()] 0x5957abdbef80: loaded module libpipewire-module-client-node
[I][01576.314847] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x5957abdbef80: name:libpipewire-module-client-device args:(null)
[I][01576.314982] pw.conf      | [          conf.c:  592 load_module()] 0x5957abdbef80: loaded module libpipewire-module-client-device
[I][01576.314994] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x5957abdbef80: name:libpipewire-module-adapter args:(null)
[I][01576.315129] pw.conf      | [          conf.c:  592 load_module()] 0x5957abdbef80: loaded module libpipewire-module-adapter
[I][01576.315141] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x5957abdbef80: name:libpipewire-module-metadata args:(null)
[I][01576.315277] pw.conf      | [          conf.c:  592 load_module()] 0x5957abdbef80: loaded module libpipewire-module-metadata
[I][01576.315288] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x5957abdbef80: name:libpipewire-module-session-manager args:(null)
[I][01576.315437] pw.conf      | [          conf.c:  592 load_module()] 0x5957abdbef80: loaded module libpipewire-module-session-manager
[I][01576.315449] pw.context   | [       context.c:  358 pw_context_new()] 0x5957abdbef80: parsed 6 context.modules items
[I][01576.315457] pw.context   | [       context.c:  363 pw_context_new()] 0x5957abdbef80: parsed 0 context.objects items
[I][01576.315464] pw.context   | [       context.c:  366 pw_context_new()] 0x5957abdbef80: parsed 0 context.exec items
[I][01576.315496] default      | [        thread.c:  105 impl_acquire_rt()] acquire_rt thread:0x70d92ea006c0 prio:-1 not implemented
[I][01576.315509] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x5957ac2d69a0: add id:0 key:log.level type: value:0
[I][01576.315518] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x5957ac2d69a0: add id:0 key:clock.rate type: value:48000
[I][01576.315526] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x5957ac2d69a0: add id:0 key:clock.allowed-rates type: value:[ 48000 ]
[I][01576.315534] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x5957ac2d69a0: add id:0 key:clock.quantum type: value:1024
[I][01576.315541] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x5957ac2d69a0: add id:0 key:clock.min-quantum type: value:32
[I][01576.315549] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x5957ac2d69a0: add id:0 key:clock.max-quantum type: value:2048
[I][01576.315557] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x5957ac2d69a0: add id:0 key:clock.force-quantum type: value:0
[I][01576.315564] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x5957ac2d69a0: add id:0 key:clock.force-rate type: value:0
[I][01576.315616] pw.conf      | [          conf.c:  972 pw_conf_section_for_each()] handle config '/etc/pipewire/client.conf' section 'stream.properties'
0:00:07.226311232 345268 0x70d970001490 WARN              aggregator gstaggregator.c:2283:gst_aggregator_query_latency_unlocked:<audiomixer0> Latency query failed
0:00:07.226322772 345268 0x70d970001490 WARN              aggregator gstaggregator.c:2283:gst_aggregator_query_latency_unlocked:<mp4mux3> Latency query failed
0:00:07.226617618 345268 0x70d970001250 WARN              aggregator gstaggregator.c:2283:gst_aggregator_query_latency_unlocked:<audiomixer0> Latency query failed
0:00:07.226620528 345268 0x70d970001b70 FIXME                default gstutils.c:4088:gst_element_decorate_stream_id_internal:<kooha-desktop-audio-src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:07.226650380 345268 0x70d970001250 WARN              aggregator gstaggregator.c:2283:gst_aggregator_query_latency_unlocked:<audiomixer0> Latency query failed
0:00:07.226685752 345268 0x70d970001070 FIXME                default gstutils.c:4088:gst_element_decorate_stream_id_internal:<pipewiresrc1> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
[I][01576.331480] pw.stream    | [        stream.c:  894 parse_latency()] stream 0x5957ac213100: set output latency 0,000000-0,000000 0-0 0-0
[I][01576.332667] pw.stream    | [        stream.c:  698 impl_send_command()] 0x5957ac213100: command Spa:Pod:Object:Command:Node:Start
[I][01576.332707] pw.node      | [     impl-node.c:  412 node_update_state()] (kooha-113) creating -> running
2024-06-23T13:50:02.869794Z DEBUG kooha::recording: Pipeline changed state from `Null` -> `Ready`
2024-06-23T13:50:02.869930Z DEBUG kooha::recording: Pipeline changed state from `Ready` -> `Paused`
2024-06-23T13:50:02.870662Z DEBUG kooha::window: Inhibited logout and idle

(kooha:345268): Gdk-WARNING **: 15:50:23.988: Compositor doesn't support moving popups, relying on remapping
2024-06-23T13:50:24.168262Z DEBUG kooha::recording: Sending eos event to pipeline
@mattfbacon
Copy link

Same issue

@Derpius
Copy link

Derpius commented Jun 30, 2024

Seeing this as well for capturing a monitor/window, however I can't even get to the region selection as it gets stuck on loading:
image

Edit: Restarting fixed both issues. Will try to grab some more useful info if it happens again

@mattfbacon
Copy link

By "restarting fixed both issues" do you mean you were able to record the area successfully?

@Derpius
Copy link

Derpius commented Jun 30, 2024

By "restarting fixed both issues" do you mean you were able to record the area successfully?

Yep, I could both record windows/monitors and capture screen regions

@mattfbacon
Copy link

That's so weird, that will make this harder to debug.

In my case the only indication that something went wrong before it pauses is this message in the terminal:

(kooha:3002): Gtk-WARNING **: 13:22:57.522: Calling org.freedesktop.portal.Inhibit.Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Inhibit” on object at path /org/freedesktop/portal/desktop

(I'm using a WM with no inhibit interface)

I'm planning to investigate further today.

@SeaDve
Copy link
Owner

SeaDve commented Jul 1, 2024

That's so weird, that will make this harder to debug.

In my case the only indication that something went wrong before it pauses is this message in the terminal:

(kooha:3002): Gtk-WARNING **: 13:22:57.522: Calling org.freedesktop.portal.Inhibit.Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Inhibit” on object at path /org/freedesktop/portal/desktop

(I'm using a WM with no inhibit interface)

I'm planning to investigate further today.

That errors seems unrelated with the issue, you may need to enable debug logs via RUST_LOG=kooha=debug.

@mattfbacon
Copy link

Based on the log it seems like a pipewire issue. Kooha sets the pipeline to Playing but it never actually plays. I see "Changed from Paused to Playing" events for each element in the pipeline but no "Pipeline changed state from Paused to Playing" like I do with the working full screen recording.

@mattfbacon
Copy link

After clearing config with dconf reset -f /io/github/seadve/Kooha/ I have not been able to reproduce the issue.

@PeeK1e
Copy link
Author

PeeK1e commented Jul 9, 2024

After clearing config with dconf reset -f /io/github/seadve/Kooha/ I have not been able to reproduce the issue.

Yep it seems to reliably work now after running dconf reset. I'll report back if the issue persists on my main machine aswell.

@hellodword
Copy link

Ran into the same issue:

$ RUST_LOG=kooha=debug kooha 
2024-07-11T10:53:30.272843Z  INFO kooha::application: Kooha (io.github.seadve.Kooha)
2024-07-11T10:53:30.272857Z  INFO kooha::application: Version: 2.3.0 ()
2024-07-11T10:53:30.272859Z  INFO kooha::application: Datadir: /nix/store/rzw2zhmg477pjnbjrsphwmfqah8fv3ra-kooha-2.3.0/share/kooha

(kooha:9108): Gdk-WARNING **: 10:53:33.834: Compositor doesn't support moving popups, relying on remapping
2024-07-11T10:53:34.138837Z DEBUG kooha::recording: Created screencast proxy version=Ok(5) available_cursor_modes=Ok(CursorMode(HIDDEN | EMBEDDED)) available_source_types=Ok(SourceType(MONITOR))
2024-07-11T10:53:34.140073Z DEBUG kooha::recording: Selecting sources cursor_mode=CursorMode(EMBEDDED) source_type=SourceType(MONITOR) is_multiple_sources=false restore_token="c791ee21-a8b2-4ce3-bc08-97510459c275" persist_mode=Persistent
2024-07-11T10:53:34.141604Z DEBUG kooha::recording: Starting session window_identifier=wayland:f92a7b199de422c0d36ba0b8f0b1753c
2024-07-11T10:53:34.150896Z DEBUG kooha::area_selector: Using gl pipeline
2024-07-11T10:53:34.170411Z DEBUG kooha::area_selector: Pipeline changed state from `Null` -> `Ready`
2024-07-11T10:53:34.170459Z DEBUG kooha::area_selector: Pipeline changed state from `Ready` -> `Paused`
2024-07-11T10:53:34.234269Z DEBUG kooha::area_selector: Pipeline changed state from `Paused` -> `Playing`
2024-07-11T10:53:36.052656Z DEBUG kooha::pipeline: file_path=/home/me/Kooha/Kooha-2024-07-11-10-53-34.webm framerate=Fraction(Ratio { numer: 24, denom: 1 }) profile="webm-vp8" fd=16 stream_len=1 streams=[Stream { node_id: 84, id: None, position: Some((0, 0)), size: Some((1920, 1080)), source_type: Some(SourceType(MONITOR)) }] record_desktop_audio=true record_microphone=false select_area_data=Some(SelectAreaData { selection: Selection { x: 310.10156, y: 19.16406, width: 297.7422, height: 218.99217 }, paintable_rect: Rect { x: 4.0, y: 0.0, width: 736.0, height: 414.0 }, stream_size: (1920, 1080) })
2024-07-11T10:53:36.053404Z DEBUG kooha::pipeline: raw_top_crop=49.993202209472656 raw_left_crop=798.5258178710938 raw_right_crop=344.75537109375 raw_bottom_crop=458.72283935546875
2024-07-11T10:53:36.053418Z DEBUG kooha::pipeline: top_crop=50 left_crop=798 right_crop=344 bottom_crop=458
2024-07-11T10:53:36.066165Z DEBUG kooha::device: Finding device name for class `Sink`
2024-07-11T10:53:36.066182Z DEBUG kooha::device: Skipping device `pulsedevice0` as it has unknown device class `Audio/Source`
2024-07-11T10:53:36.066192Z DEBUG kooha::device: Skipping device `pulsedevice1` as it has unknown device class `Audio/Source`
2024-07-11T10:53:36.066197Z DEBUG kooha::device: Skipping device `pulsedevice2` as it has unknown device class `Audio/Source`
2024-07-11T10:53:36.066202Z DEBUG kooha::device: Skipping device `pulsedevice3` as it has unknown device class `Audio/Source`
2024-07-11T10:53:36.066207Z DEBUG kooha::device: Skipping device `pulsedevice4` as it has unknown device class `Audio/Source`
2024-07-11T10:53:36.066214Z DEBUG kooha::device: Skipping device `pulsedevice5` as it has unknown device class `Audio/Source`
2024-07-11T10:53:36.066229Z DEBUG kooha::device: Skipping device `pulsedevice6` as it is not the default
2024-07-11T10:53:36.066240Z DEBUG kooha::device: Skipping device `pulsedevice7` as it is not the default
2024-07-11T10:53:36.066250Z DEBUG kooha::device: Skipping device `pulsedevice8` as it is not the default
2024-07-11T10:53:36.066584Z DEBUG kooha::pipeline: Found desktop audio with name `alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink.monitor`
2024-07-11T10:53:36.091747Z DEBUG kooha::recording: Pipeline changed state from `Null` -> `Ready`
2024-07-11T10:53:36.091927Z DEBUG kooha::recording: Pipeline changed state from `Ready` -> `Paused`

@mattfbacon
Copy link

Did you reset dconf as described?

@hellodword
Copy link

Sure:

$ dconf reset -f /io/github/seadve/Kooha/ && echo dconf reset ok
dconf reset ok

$ RUST_LOG=kooha=debug kooha
<... the same ...>

@SeaDve
Copy link
Owner

SeaDve commented Jul 20, 2024

Getting the dconf values (where the issue is reproducible) would be helpful in providing insights on what is causing the issue. I'm not sure how to get it outside flatpak, but the file should be somewhere in <parent>/glib-2.0/settings/keyfile.

@SeaDve SeaDve added the Needs info Further information is requested label Jul 22, 2024
@hellodword
Copy link

hellodword commented Jul 24, 2024

I'm using it on NixOS, and after the upgrading, it works now.

$ dconf dump /
[io/github/seadve/Kooha]
capture-mode='selection'
screencast-restore-token='5a07f3f0-3def-4426-b5f7-b0e8fb1d242f'
selection=(103.0703125, 223.01951599121094, 641.53125, 395.91796875)
selection-context=((4

@tmccombs
Copy link

The dconf reset doesn't help me.

Although I am running kooha with flatpak, so I'm not sure if it is resetting the actual dconf that kooha is using.

dconf dump /io/github/ Outputs nothing for me.

If I try to run dconf inside flatpak I get an error about dconf not being available:

❯ flatpak run --command=dconf io.github.seadve.Kooha dump /
bwrap: execvp dconf: No such file or directory

@BrodyB
Copy link

BrodyB commented Sep 23, 2024

Also want to report that recording a region using the 2.3.0 flatpak errors. Recording the full screen works great! But the moment I switch to "Capture a Selection of Screen" mode and hit the Record button, the below is shown on output.

Version: 2.3.0 (flatpak)
image

Error:

brody@toybox:~$ flatpak run io.github.seadve.Kooha
2024-09-23T17:55:30.664815Z  INFO kooha::application: Kooha (io.github.seadve.Kooha)
2024-09-23T17:55:30.664825Z  INFO kooha::application: Version: 2.3.0 ()
2024-09-23T17:55:30.664828Z  INFO kooha::application: Datadir: /app/share/kooha
*** pw_stream_set_error called from wrong context, check thread and locking: Operation not permitted
*** pw_stream_set_error called from wrong context, check thread and locking: Operation not permitted
2024-09-23T17:55:35.914537Z ERROR kooha::window: Element failed to change its state
2024-09-23T17:55:35.930461Z ERROR kooha::area_selector: Received error message on bus: Error { structure: Some(GstMessageError { gerror: (GError) ((GError*) 0x7ffa8002bdd0), debug: (gchararray) "../gst-libs/gst/gl/gstglbasefilter.c(617): gst_gl_base_filter_find_gl_context_unlocked (): /GstPipeline:pipeline0/GstGLSinkBin:glsinkbin0/GstGLUploadElement:gluploadelement0" }), source: Some((Object { inner: TypedObjectRef { inner: 0x55a97b85c5d0, type: GstGLUploadElement } }, "gluploadelement0")), error: Error { domain: gst-resource-error-quark, code: 3, message: "Failed to create a OpenGL context: EGL_BAD_CONTEXT" }, debug: Some("../gst-libs/gst/gl/gstglbasefilter.c(617): gst_gl_base_filter_find_gl_context_unlocked (): /GstPipeline:pipeline0/GstGLSinkBin:glsinkbin0/GstGLUploadElement:gluploadelement0"), details: None }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs info Further information is requested
Projects
None yet
Development

No branches or pull requests

7 participants