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

Region recording crashes this app #328

Open
Ombrelin opened this issue Dec 14, 2024 · 0 comments
Open

Region recording crashes this app #328

Ombrelin opened this issue Dec 14, 2024 · 0 comments

Comments

@Ombrelin
Copy link

Ombrelin commented Dec 14, 2024

Affected version

2.3.0

Bug summary

When trying to record a screen region, the app freezs for several seconds, then is killed by the os (prompted by "wait" or "terminate" by gnome).

Steps to reproduce

  1. Click region record
  2. Click "record"
  3. Freeze

Relevant logs, screenshots, screencasts, etc.

arsene@fedora:~$ RUST_BACKTRACE=1 RUST_LOG=kooha=debug GST_DEBUG=3 PIPEWIRE_DEBUG=3 flatpak run io.github.seadve.Kooha
2024-12-14T15:01:01.028736Z  INFO kooha::application: Kooha (io.github.seadve.Kooha)
2024-12-14T15:01:01.028750Z  INFO kooha::application: Version: 2.3.0 ()
2024-12-14T15:01:01.028752Z  INFO kooha::application: Datadir: /app/share/kooha
2024-12-14T15:01:03.438185Z DEBUG kooha::recording: Created screencast proxy version=Ok(5) available_cursor_modes=Ok(CursorMode(HIDDEN | EMBEDDED | METADATA)) available_source_types=Ok(SourceType(MONITOR | WINDOW | VIRTUAL))
2024-12-14T15:01:03.442511Z DEBUG kooha::recording: Selecting sources cursor_mode=CursorMode(EMBEDDED) source_type=SourceType(MONITOR) is_multiple_sources=false restore_token="291d6724-0039-4485-9c87-156df4c5fe89" persist_mode=Persistent
2024-12-14T15:01:03.449487Z DEBUG kooha::recording: Starting session window_identifier=wayland:$|da:>@-y(X%i{L@k2=0;qpW^}uKO,+6
[I][03562.150555] pw.context   | [      pipewire.c:  647 pw_init()] version 0.3.83
2024-12-14T15:01:03.470744Z DEBUG kooha::area_selector: Using gl pipeline
[I][03562.156980] pw.conf      | [          conf.c:  404 conf_load()] 0x55e0458ba5b0: loaded config '/usr/share/pipewire/client.conf' with 5 items
[I][03562.157022] pw.conf      | [          conf.c:  957 pw_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.properties'
[I][03562.157042] pw.context   | [       context.c:  245 pw_context_new()] 0x55e0458c54b0: parsed 1 context.properties items
[I][03562.157496] pw.conf      | [          conf.c:  957 pw_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.spa-libs'
[I][03562.157520] pw.context   | [       context.c:  346 pw_context_new()] 0x55e0458c54b0: parsed 2 context.spa-libs items
[I][03562.157535] pw.conf      | [          conf.c:  957 pw_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'context.modules'
[I][03562.157554] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x55e0458c54b0: name:libpipewire-module-protocol-native args:(null)
[I][03562.158528] pw.conf      | [          conf.c:  581 load_module()] 0x55e0458c54b0: loaded module libpipewire-module-protocol-native
[I][03562.158543] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x55e0458c54b0: name:libpipewire-module-client-node args:(null)
[I][03562.159109] pw.conf      | [          conf.c:  581 load_module()] 0x55e0458c54b0: loaded module libpipewire-module-client-node
[I][03562.159124] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x55e0458c54b0: name:libpipewire-module-client-device args:(null)
[I][03562.159469] pw.conf      | [          conf.c:  581 load_module()] 0x55e0458c54b0: loaded module libpipewire-module-client-device
[I][03562.159483] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x55e0458c54b0: name:libpipewire-module-adapter args:(null)
[I][03562.160017] pw.conf      | [          conf.c:  581 load_module()] 0x55e0458c54b0: loaded module libpipewire-module-adapter
[I][03562.160040] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x55e0458c54b0: name:libpipewire-module-metadata args:(null)
[I][03562.160498] pw.conf      | [          conf.c:  581 load_module()] 0x55e0458c54b0: loaded module libpipewire-module-metadata
[I][03562.160519] pw.module    | [   impl-module.c:  157 pw_context_load_module()] 0x55e0458c54b0: name:libpipewire-module-session-manager args:(null)
[I][03562.161116] pw.conf      | [          conf.c:  581 load_module()] 0x55e0458c54b0: loaded module libpipewire-module-session-manager
[I][03562.161142] pw.context   | [       context.c:  350 pw_context_new()] 0x55e0458c54b0: parsed 6 context.modules items
[I][03562.161157] pw.context   | [       context.c:  355 pw_context_new()] 0x55e0458c54b0: parsed 0 context.objects items
[I][03562.161169] pw.context   | [       context.c:  358 pw_context_new()] 0x55e0458c54b0: parsed 0 context.exec items
[W][03562.161215] default      | [        thread.c:  105 impl_acquire_rt()] acquire_rt thread:0x7fbac27fe6c0 prio:-1 not implemented
[I][03562.161239] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x55e0458be870: add id:0 key:log.level type: value:0
[I][03562.161253] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x55e0458be870: add id:0 key:clock.rate type: value:48000
[I][03562.161265] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x55e0458be870: add id:0 key:clock.allowed-rates type: value:[ 48000 ]
[I][03562.161277] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x55e0458be870: add id:0 key:clock.quantum type: value:1024
[I][03562.161289] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x55e0458be870: add id:0 key:clock.min-quantum type: value:32
[I][03562.161300] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x55e0458be870: add id:0 key:clock.max-quantum type: value:2048
[I][03562.161311] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x55e0458be870: add id:0 key:clock.force-quantum type: value:0
[I][03562.161324] pw.metadata  | [ impl-metadata.c:  186 impl_set_property()] 0x55e0458be870: add id:0 key:clock.force-rate type: value:0
[I][03562.161481] pw.conf      | [          conf.c:  957 pw_conf_section_for_each()] handle config '/usr/share/pipewire/client.conf' section 'stream.properties'
0:00:02.460721834     2 0x7fbac8001010 FIXME                default gstutils.c:4036:gst_pad_create_stream_id_internal:<pipewiresrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:02.461095944     2 0x7fbaa4001130 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.
0:00:02.463452984     2 0x7fbaa4001130 WARN               glcontext gstglcontext.c:1326:gst_gl_context_create_thread:<glcontextegl0> Failed to create context
0:00:02.463509514     2 0x7fbac8001010 WARN            glbasefilter gstglbasefilter.c:617:gst_gl_base_filter_find_gl_context_unlocked:<gluploadelement0> error: Failed to create a OpenGL context: EGL_BAD_CONTEXT
0:00:02.463751893     2 0x7fbaa401ada0 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.
0:00:02.465854305     2 0x7fbaa401ada0 WARN               glcontext gstglcontext.c:1326:gst_gl_context_create_thread:<glcontextegl1> Failed to create context
0:00:02.465954891     2 0x7fbac8001010 WARN            glbasefilter gstglbasefilter.c:617:gst_gl_base_filter_find_gl_context_unlocked:<glcolorconvertelement0> error: Failed to create a OpenGL context: EGL_BAD_CONTEXT
0:00:02.466604472     2 0x7fbaa4001130 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.
0:00:02.468836438     2 0x7fbaa4001130 WARN               glcontext gstglcontext.c:1326:gst_gl_context_create_thread:<glcontextegl2> Failed to create context
0:00:02.468889571     2 0x7fbac8001010 WARN            glbasefilter gstglbasefilter.c:617:gst_gl_base_filter_find_gl_context_unlocked:<gluploadelement0> error: Failed to create a OpenGL context: EGL_BAD_CONTEXT
0:00:02.468917450     2 0x7fbac8001010 WARN           basetransform gstbasetransform.c:1600:gst_base_transform_default_query:<gluploadelement0:sink> no caps can be handled by this pad
0:00:02.468946124     2 0x7fbac8001010 WARN             pipewiresrc gstpipewiresrc.c:965:gst_pipewire_src_negotiate:<pipewiresrc0> error: No supported formats found
0:00:02.468952316     2 0x7fbac8001010 WARN             pipewiresrc gstpipewiresrc.c:965:gst_pipewire_src_negotiate:<pipewiresrc0> error: This element does not have formats in common with the peer
[W][03562.170009] pw.stream    | [        stream.c: 2168 pw_stream_set_error()] pw_stream_set_error called from wrong context, check thread and locking: Opération non permise
*** pw_stream_set_error called from wrong context, check thread and locking: Opération non permise
[E][03562.170039] pw.stream    | [        stream.c:  403 stream_set_state()] 0x55e0458f0cc0: error (-32) No supported formats found
[W][03562.170053] pw.stream    | [        stream.c: 2168 pw_stream_set_error()] pw_stream_set_error called from wrong context, check thread and locking: Opération non permise
*** pw_stream_set_error called from wrong context, check thread and locking: Opération non permise
0:00:02.469036632     2 0x7fbac8001010 WARN             pipewiresrc gstpipewiresrc.c:685:on_state_changed:<pipewiresrc0> error: stream error: No supported formats found
0:00:02.469062870     2 0x7fbac8001010 WARN                 basesrc gstbasesrc.c:3134:gst_base_src_loop:<pipewiresrc0> error: Internal data stream error.
0:00:02.469074079     2 0x7fbac8001010 WARN                 basesrc gstbasesrc.c:3134:gst_base_src_loop:<pipewiresrc0> error: streaming stopped, reason not-negotiated (-4)
2024-12-14T15:01:03.487693Z ERROR kooha::window: Element failed to change its state

Stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: g_main_context_iteration
   7: g_application_run
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: __libc_start_main
  13: <unknown>
2024-12-14T15:01:03.509270Z DEBUG kooha::area_selector: Pipeline changed state from `Null` -> `Ready`
2024-12-14T15:01:03.509375Z ERROR kooha::area_selector: Received error message on bus: Error { structure: Some(GstMessageError { gerror: (GError) ((GError*) 0x7fbaa402d3c0), 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: 0x55e0458b0e30, 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 }

My system :

arsene@fedora
  -------------
OS: Fedora Linux 41 (Workstation Edition) x86_64
Host: MS-7A12 (1.0)
Kernel: Linux 6.11.11-300.fc41.x86_64
Uptime: 2 hours, 27 mins
Packages: 2406 (rpm), 68 (flatpak)
Shell: bash 5.2.32
Display (PHL 227E6): 1920x1080 @ 60 Hz in 22" [External]
Display (BenQ LCD): 2560x1440 @ 60 Hz (as 2048x1152) in 24" [External]
DE: GNOME 47.2
WM: Mutter (Wayland)
WM Theme: Adwaita
Theme: Adwaita [GTK2/3/4]
Icons: Adwaita [GTK2/3/4]
Font: Cantarell (11pt) [GTK2/3/4]
Cursor: Adwaita (24px)
Terminal: Ptyxis 47.6
Terminal Font: Source Code Pro (10pt)
 CPU: Intel(R) Core(TM) i7-6700K (8) @ 4.40 GHz
GPU: NVIDIA GeForce GTX 1080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant