Unable to connect to host using sway in a wayland environment #1164

Closed
opened 2026-02-20 23:19:44 -05:00 by deekerman · 4 comments
Owner

Originally created by @kawalain on GitHub (Dec 19, 2022).

Describe the bug you encountered:
Unable to connect to host using sway in a wayland environment

GST logs with GST_DEBUG=4:

0:00:00.000059543  4372 0x7f19ec00f550 INFO                GST_INIT gst.c:591:init_pre: Initializing GStreamer Core Library version 1.20.4
0:00:00.000086244  4372 0x7f19ec00f550 INFO                GST_INIT gst.c:592:init_pre: Using library installed in /usr/lib
0:00:00.000101874  4372 0x7f19ec00f550 INFO                GST_INIT gst.c:610:init_pre: Linux laptop.remote 6.0.12-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Thu, 08 Dec 2022 11:03:40 +0000 x86_64
0:00:00.000324759  4372 0x7f19ec00f550 INFO                GST_INIT gstmessage.c:129:_priv_gst_message_initialize: init messages
0:00:00.000814512  4372 0x7f19ec00f550 INFO                GST_INIT gstcontext.c:86:_priv_gst_context_initialize: init contexts
0:00:00.001099745  4372 0x7f19ec00f550 INFO      GST_PLUGIN_LOADING gstplugin.c:324:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.001182272  4372 0x7f19ec00f550 INFO      GST_PLUGIN_LOADING gstplugin.c:232:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.001195477  4372 0x7f19ec00f550 INFO      GST_PLUGIN_LOADING gstplugin.c:234:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:00.001234922  4372 0x7f19ec00f550 INFO            GST_REGISTRY gstregistry.c:1826:ensure_current_registry: reading registry cache: /home/aeon/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.003620066  4372 0x7f19ec00f550 INFO            GST_REGISTRY gstregistrybinary.c:683:priv_gst_registry_binary_read_cache: loaded /home/aeon/.cache/gstreamer-1.0/registry.x86_64.bin in 0.002353 seconds
0:00:00.003672666  4372 0x7f19ec00f550 INFO            GST_REGISTRY gstregistry.c:1693:scan_and_update_registry: Validating plugins from registry cache: /home/aeon/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.004047760  4372 0x7f19ec00f550 INFO            GST_REGISTRY gstregistry.c:1785:scan_and_update_registry: Registry cache has not changed
0:00:00.004064813  4372 0x7f19ec00f550 INFO            GST_REGISTRY gstregistry.c:1861:ensure_current_registry: registry reading and updating done
0:00:00.004080593  4372 0x7f19ec00f550 INFO                GST_INIT gst.c:826:init_post: GLib runtime version: 2.74.3
0:00:00.004094089  4372 0x7f19ec00f550 INFO                GST_INIT gst.c:828:init_post: GLib headers version: 2.74.1
0:00:00.004103907  4372 0x7f19ec00f550 INFO                GST_INIT gst.c:830:init_post: initialized GStreamer successfully
0:00:03.793060591  4372 0x7f19ec00f550 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:489:gst_element_factory_create_with_properties: creating element "pipeline"
0:00:03.795535626  4372 0x7f19ec00f550 INFO      GST_PLUGIN_LOADING gstplugin.c:987:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstpipewire.so" loaded
0:00:03.795632060  4372 0x7f19ec00f550 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:489:gst_element_factory_create_with_properties: creating element "pipewiresrc"
0:00:03.795762458  4372 0x7f19ec00f550 INFO        GST_ELEMENT_PADS gstelement.c:759:gst_element_add_pad:<GstBaseSrc@0x7f19c809c300> adding pad 'src'
0:00:03.796038825  4372 0x7f19ec00f550 INFO      GST_PLUGIN_LOADING gstplugin.c:987:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstapp.so" loaded
0:00:03.796062019  4372 0x7f19ec00f550 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:489:gst_element_factory_create_with_properties: creating element "appsink"
0:00:03.796204180  4372 0x7f19ec00f550 INFO        GST_ELEMENT_PADS gstelement.c:759:gst_element_add_pad:<GstBaseSink@0x7f19c80a27b0> adding pad 'sink'
0:00:03.796301866  4372 0x7f19ec00f550 INFO        GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element pipewiresrc0:(any) to element appsink0:(any)
0:00:03.796323367  4372 0x7f19ec00f550 INFO                GST_PADS gstutils.c:1079:gst_pad_check_link: trying to link pipewiresrc0:src and appsink0:sink
0:00:03.796351961  4372 0x7f19ec00f550 INFO                GST_PADS gstutils.c:1632:prepare_link_maybe_ghosting: pipewiresrc0 and appsink0 in same bin, no need for ghost pads
0:00:03.796383171  4372 0x7f19ec00f550 INFO                GST_PADS gstpad.c:2382:gst_pad_link_prepare: trying to link pipewiresrc0:src and appsink0:sink
0:00:03.796414190  4372 0x7f19ec00f550 INFO                GST_PADS gstpad.c:2590:gst_pad_link_full: linked pipewiresrc0:src and appsink0:sink, successful
0:00:03.796445650  4372 0x7f19ec00f550 INFO               GST_EVENT gstevent.c:1660:gst_event_new_reconfigure: creating reconfigure event
0:00:03.796477390  4372 0x7f19ec00f550 INFO               GST_EVENT gstpad.c:5946:gst_pad_send_event_unchecked:<pipewiresrc0:src> Received event on flushing pad. Discarding
0:00:03.796527215  4372 0x7f19ec00f550 INFO              GST_STATES gstbin.c:2479:gst_bin_element_set_state:<appsink0> current NULL pending VOID_PENDING, desired next READY
0:00:03.796557994  4372 0x7f19ec00f550 INFO              GST_STATES gstelement.c:2806:gst_element_continue_state:<appsink0> completed state change to READY
0:00:03.796586648  4372 0x7f19ec00f550 INFO              GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<appsink0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:03.796621394  4372 0x7f19ec00f550 INFO              GST_STATES gstbin.c:2928:gst_bin_change_state_func:<pipeline0> child 'appsink0' changed state to 2(READY) successfully
0:00:03.796649959  4372 0x7f19ec00f550 INFO              GST_STATES gstbin.c:2479:gst_bin_element_set_state:<pipewiresrc0> current NULL pending VOID_PENDING, desired next READY
0:00:03.798857344  4372 0x7f19ec00f550 INFO              GST_STATES gstelement.c:2806:gst_element_continue_state:<pipewiresrc0> completed state change to READY
0:00:03.798879937  4372 0x7f19ec00f550 INFO              GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<pipewiresrc0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:03.798913811  4372 0x7f19ec00f550 INFO              GST_STATES gstbin.c:2928:gst_bin_change_state_func:<pipeline0> child 'pipewiresrc0' changed state to 2(READY) successfully
0:00:03.798941294  4372 0x7f19ec00f550 INFO              GST_STATES gstelement.c:2778:gst_element_continue_state:<pipeline0> committing state from NULL to READY, pending PLAYING, next PAUSED
0:00:03.798967844  4372 0x7f19ec00f550 INFO              GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<pipeline0> notifying about state-changed NULL to READY (PLAYING pending)
0:00:03.798994796  4372 0x7f19ec00f550 INFO              GST_STATES gstelement.c:2786:gst_element_continue_state:<pipeline0> continue state change READY to PAUSED, final PLAYING
0:00:03.799017509  4372 0x7f19ec00f550 INFO              GST_STATES gstbin.c:2479:gst_bin_element_set_state:<appsink0> current READY pending VOID_PENDING, desired next PAUSED
0:00:03.799042206  4372 0x7f19ec00f550 INFO              GST_STATES gstbin.c:2935:gst_bin_change_state_func:<pipeline0> child 'appsink0' is changing state asynchronously to PAUSED
0:00:03.799082192  4372 0x7f19ec00f550 INFO              GST_STATES gstbin.c:2479:gst_bin_element_set_state:<pipewiresrc0> current READY pending VOID_PENDING, desired next PAUSED
0:00:03.799135955  4372 0x7f19ec00f550 INFO                 basesrc gstbasesrc.c:1430:gst_base_src_do_seek:<pipewiresrc0> seeking: time segment start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:00.000000000, duration 99:99:99.999999999
0:00:03.799180299  4372 0x7f19ec00f550 INFO                    task gsttask.c:516:gst_task_set_lock: setting stream lock 0x7f19c809e250 on task 0x55950d7815f0
0:00:03.799212170  4372 0x7f19ec00f550 INFO                GST_PADS gstpad.c:6291:gst_pad_start_task:<pipewiresrc0:src> created task 0x55950d7815f0
0:00:03.799335184  4372 0x55950d739700 INFO        GST_ELEMENT_PADS gstelement.c:1013:gst_element_get_static_pad: no such pad 'sink' in element "pipewiresrc0"
0:00:03.799443030  4372 0x55950d739700 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<pipewiresrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:33.799634365  4372 0x7f19ec00f550 INFO              GST_STATES gstelement.c:3091:gst_element_change_state:<pipewiresrc0> have FAILURE change_state return
0:00:33.799758031  4372 0x7f19ec00f550 INFO              GST_STATES gstelement.c:2678:gst_element_abort_state:<pipewiresrc0> aborting state from READY to PAUSED
0:00:33.799893749  4372 0x7f19ec00f550 INFO              GST_STATES gstbin.c:2944:gst_bin_change_state_func:<pipeline0> child 'pipewiresrc0' failed to go to state 3(PAUSED)
0:00:33.799939146  4372 0x55950d739700 WARN                 basesrc gstbasesrc.c:3127:gst_base_src_loop:<pipewiresrc0> error: Internal data stream error.
0:00:33.800215893  4372 0x55950d739700 WARN                 basesrc gstbasesrc.c:3127:gst_base_src_loop:<pipewiresrc0> error: streaming stopped, reason not-negotiated (-4)
0:00:33.800119018  4372 0x7f19ec00f550 INFO              GST_STATES gstelement.c:2806:gst_element_continue_state:<appsink0> completed state change to READY
0:00:33.800405925  4372 0x55950d739700 INFO        GST_ERROR_SYSTEM gstelement.c:2271:gst_element_message_full_with_details:<pipewiresrc0> posting message: Internal data stream error.
0:00:33.800554999  4372 0x7f19ec00f550 INFO              GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<appsink0> notifying about state-changed READY to READY (VOID_PENDING pending)
0:00:33.800747476  4372 0x55950d739700 INFO        GST_ERROR_SYSTEM gstelement.c:2298:gst_element_message_full_with_details:<pipewiresrc0> posted error message: Internal data stream error.
0:00:33.800904104  4372 0x7f19ec00f550 INFO              GST_STATES gstelement.c:2806:gst_element_continue_state:<pipewiresrc0> completed state change to READY
0:00:33.801017771  4372 0x55950d739700 INFO               GST_EVENT gstpad.c:5946:gst_pad_send_event_unchecked:<appsink0:sink> Received event on flushing pad. Discarding
0:00:33.801112722  4372 0x7f19ec00f550 INFO                pipeline gstpipeline.c:533:gst_pipeline_change_state:<pipeline0> pipeline is not live
0:00:33.801306852  4372 0x7f19ec00f550 INFO              GST_STATES gstelement.c:3091:gst_element_change_state:<pipeline0> have FAILURE change_state return
0:00:33.801202313  4372 0x55950d739700 INFO                    task gsttask.c:368:gst_task_func:<pipewiresrc0:src> Task going to paused
[2022-12-19T16:09:04Z ERROR librustdesk::server::wayland] REMOVE ME ===================================== wayland scrap error Element failed to change its state
[2022-12-19T16:09:04Z ERROR librustdesk::server::wayland] Failed scrap Element failed to change its state

Full GST logs (GST_DEBUG=5): gst.log

PipeWire logs:

Dec 20 02:29:39 laptop.remote pipewire[725]: mod.rt: Can't find xdg-portal: (null)
Dec 20 02:29:39 laptop.remote pipewire[725]: mod.rt: found session bus but no portal
Dec 20 02:29:39 laptop.remote pipewire[725]: [0:00:27.638255252] [725]  INFO Camera camera_manager.cpp:299 libcamera v0.0.2
Dec 20 02:30:07 laptop.remote pipewire[725]: pw.context: params Spa:Enum:ParamId:EnumFormat: 0:0 Invalid argument (input format (no more input formats))
Dec 20 02:30:07 laptop.remote pipewire[725]: default: Object: size 96, type Spa:Pod:Object:Param:Format (262147), id Spa:Enum:ParamId:EnumFormat (3)
Dec 20 02:30:07 laptop.remote pipewire[725]: default:   Prop: key Spa:Pod:Object:Param:Format:mediaType (1), flags 00000000
Dec 20 02:30:07 laptop.remote pipewire[725]: default:     Id 2        (Spa:Enum:MediaType:video)
Dec 20 02:30:07 laptop.remote pipewire[725]: default:   Prop: key Spa:Pod:Object:Param:Format:mediaSubtype (2), flags 00000000
Dec 20 02:30:07 laptop.remote pipewire[725]: default:     Id 1        (Spa:Enum:MediaSubtype:raw)
Dec 20 02:30:07 laptop.remote pipewire[725]: default:   Prop: key Spa:Pod:Object:Param:Format:Video:format (131073), flags 00000000
Dec 20 02:30:07 laptop.remote pipewire[725]: default:     Choice: type Spa:Enum:Choice:None, flags 00000000 20 4
Dec 20 02:30:07 laptop.remote pipewire[725]: default:       Id 8        (Spa:Enum:VideoFormat:BGRx)
Dec 20 02:30:07 laptop.remote pipewire[725]: pw.context: params Spa:Enum:ParamId:EnumFormat: 1:0 Invalid argument (output format (no more input formats))
Dec 20 02:30:07 laptop.remote pipewire[725]: default: Object: size 296, type Spa:Pod:Object:Param:Format (262147), id Spa:Enum:ParamId:EnumFormat (3)
Dec 20 02:30:07 laptop.remote pipewire[725]: default:   Prop: key Spa:Pod:Object:Param:Format:mediaType (1), flags 00000000
Dec 20 02:30:07 laptop.remote pipewire[725]: default:     Id 2        (Spa:Enum:MediaType:video)
Dec 20 02:30:07 laptop.remote pipewire[725]: default:   Prop: key Spa:Pod:Object:Param:Format:mediaSubtype (2), flags 00000000
Dec 20 02:30:07 laptop.remote pipewire[725]: default:     Id 1        (Spa:Enum:MediaSubtype:raw)
Dec 20 02:30:07 laptop.remote pipewire[725]: default:   Prop: key Spa:Pod:Object:Param:Format:Video:format (131073), flags 00000000
Dec 20 02:30:07 laptop.remote pipewire[725]: default:     Id 8        (Spa:Enum:VideoFormat:BGRx)
Dec 20 02:30:07 laptop.remote pipewire[725]: default:   Prop: key Spa:Pod:Object:Param:Format:Video:modifier (131074), flags 00000018
Dec 20 02:30:07 laptop.remote pipewire[725]: default:     Choice: type Spa:Enum:Choice:Enum, flags 00000000 96 8
Dec 20 02:30:07 laptop.remote pipewire[725]: default:       Long 72057594037927935
Dec 20 02:30:07 laptop.remote pipewire[725]: default:       Long 72057594037927935
Dec 20 02:30:07 laptop.remote pipewire[725]: default:       Long 144115206334822913
Dec 20 02:30:07 laptop.remote pipewire[725]: default:       Long 144115206334822657
Dec 20 02:30:07 laptop.remote pipewire[725]: default:       Long 144115206334806273
Dec 20 02:30:07 laptop.remote pipewire[725]: default:       Long 144115188080056833
Dec 20 02:30:07 laptop.remote pipewire[725]: default:       Long 144115188080056577
Dec 20 02:30:07 laptop.remote pipewire[725]: default:       Long 144115188075858433
Dec 20 02:30:07 laptop.remote pipewire[725]: default:       Long 144115188075858177
Dec 20 02:30:07 laptop.remote pipewire[725]: default:       Long 0
Dec 20 02:30:07 laptop.remote pipewire[725]: default:   Prop: key Spa:Pod:Object:Param:Format:Video:size (131075), flags 00000000
Dec 20 02:30:07 laptop.remote pipewire[725]: default:     Rectangle 1920x1080
Dec 20 02:30:07 laptop.remote pipewire[725]: default:   Prop: key Spa:Pod:Object:Param:Format:Video:framerate (131076), flags 00000000
Dec 20 02:30:07 laptop.remote pipewire[725]: default:     Fraction 0/1
Dec 20 02:30:07 laptop.remote pipewire[725]: default:   Prop: key Spa:Pod:Object:Param:Format:Video:maxFramerate (131077), flags 00000000
Dec 20 02:30:07 laptop.remote pipewire[725]: default:     Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
Dec 20 02:30:07 laptop.remote pipewire[725]: default:       Fraction 60/1
Dec 20 02:30:07 laptop.remote pipewire[725]: default:       Fraction 1/1
Dec 20 02:30:07 laptop.remote pipewire[725]: default:       Fraction 60/1
Dec 20 02:30:07 laptop.remote pipewire[725]: default: Object: size 184, type Spa:Pod:Object:Param:Format (262147), id Spa:Enum:ParamId:EnumFormat (3)
Dec 20 02:30:07 laptop.remote pipewire[725]: default:   Prop: key Spa:Pod:Object:Param:Format:mediaType (1), flags 00000000
Dec 20 02:30:07 laptop.remote pipewire[725]: default:     Id 2        (Spa:Enum:MediaType:video)
Dec 20 02:30:07 laptop.remote pipewire[725]: default:   Prop: key Spa:Pod:Object:Param:Format:mediaSubtype (2), flags 00000000
Dec 20 02:30:07 laptop.remote pipewire[725]: default:     Id 1        (Spa:Enum:MediaSubtype:raw)
Dec 20 02:30:07 laptop.remote pipewire[725]: default:   Prop: key Spa:Pod:Object:Param:Format:Video:format (131073), flags 00000000
Dec 20 02:30:07 laptop.remote pipewire[725]: default:     Id 7        (Spa:Enum:VideoFormat:RGBx)
Dec 20 02:30:07 laptop.remote pipewire[725]: default:   Prop: key Spa:Pod:Object:Param:Format:Video:size (131075), flags 00000000
Dec 20 02:30:07 laptop.remote pipewire[725]: default:     Rectangle 1920x1080
Dec 20 02:30:07 laptop.remote pipewire[725]: default:   Prop: key Spa:Pod:Object:Param:Format:Video:framerate (131076), flags 00000000
Dec 20 02:30:07 laptop.remote pipewire[725]: default:     Fraction 0/1
Dec 20 02:30:07 laptop.remote pipewire[725]: default:   Prop: key Spa:Pod:Object:Param:Format:Video:maxFramerate (131077), flags 00000000
Dec 20 02:30:07 laptop.remote pipewire[725]: default:     Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
Dec 20 02:30:07 laptop.remote pipewire[725]: default:       Fraction 60/1
Dec 20 02:30:07 laptop.remote pipewire[725]: default:       Fraction 1/1
Dec 20 02:30:07 laptop.remote pipewire[725]: default:       Fraction 60/1
Dec 20 02:30:07 laptop.remote pipewire[725]: pw.link: (68.0 -> 71.0) negotiating -> error (no more input formats)

How did you install RustDesk?
build from source (github.com/rustdesk/rustdesk@1054715891)

RustDesk version and environment
gst-plugins.log
gst-inspect-pipewiresrc.log

sway -V output:

00:00:00.000 [sway/main.c:343] Sway version 1.7
00:00:00.000 [sway/main.c:344] wlroots version 0.15.1
00:00:00.003 [sway/main.c:120] Linux laptop.remote 6.0.12-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Thu, 08 Dec 2022 11:03:40 +0000 x86_64 GNU/Linux
00:00:00.003 [sway/main.c:136] Contents of /etc/lsb-release:
00:00:00.003 [sway/main.c:120] DISTRIB_ID="Arch"
00:00:00.003 [sway/main.c:120] DISTRIB_RELEASE="rolling"
00:00:00.003 [sway/main.c:120] DISTRIB_DESCRIPTION="Arch Linux"
...
Originally created by @kawalain on GitHub (Dec 19, 2022). **Describe the bug you encountered:** Unable to connect to host using sway in a wayland environment GST logs with `GST_DEBUG=4`: ``` 0:00:00.000059543 4372 0x7f19ec00f550 INFO GST_INIT gst.c:591:init_pre: Initializing GStreamer Core Library version 1.20.4 0:00:00.000086244 4372 0x7f19ec00f550 INFO GST_INIT gst.c:592:init_pre: Using library installed in /usr/lib 0:00:00.000101874 4372 0x7f19ec00f550 INFO GST_INIT gst.c:610:init_pre: Linux laptop.remote 6.0.12-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Thu, 08 Dec 2022 11:03:40 +0000 x86_64 0:00:00.000324759 4372 0x7f19ec00f550 INFO GST_INIT gstmessage.c:129:_priv_gst_message_initialize: init messages 0:00:00.000814512 4372 0x7f19ec00f550 INFO GST_INIT gstcontext.c:86:_priv_gst_context_initialize: init contexts 0:00:00.001099745 4372 0x7f19ec00f550 INFO GST_PLUGIN_LOADING gstplugin.c:324:_priv_gst_plugin_initialize: registering 0 static plugins 0:00:00.001182272 4372 0x7f19ec00f550 INFO GST_PLUGIN_LOADING gstplugin.c:232:gst_plugin_register_static: registered static plugin "staticelements" 0:00:00.001195477 4372 0x7f19ec00f550 INFO GST_PLUGIN_LOADING gstplugin.c:234:gst_plugin_register_static: added static plugin "staticelements", result: 1 0:00:00.001234922 4372 0x7f19ec00f550 INFO GST_REGISTRY gstregistry.c:1826:ensure_current_registry: reading registry cache: /home/aeon/.cache/gstreamer-1.0/registry.x86_64.bin 0:00:00.003620066 4372 0x7f19ec00f550 INFO GST_REGISTRY gstregistrybinary.c:683:priv_gst_registry_binary_read_cache: loaded /home/aeon/.cache/gstreamer-1.0/registry.x86_64.bin in 0.002353 seconds 0:00:00.003672666 4372 0x7f19ec00f550 INFO GST_REGISTRY gstregistry.c:1693:scan_and_update_registry: Validating plugins from registry cache: /home/aeon/.cache/gstreamer-1.0/registry.x86_64.bin 0:00:00.004047760 4372 0x7f19ec00f550 INFO GST_REGISTRY gstregistry.c:1785:scan_and_update_registry: Registry cache has not changed 0:00:00.004064813 4372 0x7f19ec00f550 INFO GST_REGISTRY gstregistry.c:1861:ensure_current_registry: registry reading and updating done 0:00:00.004080593 4372 0x7f19ec00f550 INFO GST_INIT gst.c:826:init_post: GLib runtime version: 2.74.3 0:00:00.004094089 4372 0x7f19ec00f550 INFO GST_INIT gst.c:828:init_post: GLib headers version: 2.74.1 0:00:00.004103907 4372 0x7f19ec00f550 INFO GST_INIT gst.c:830:init_post: initialized GStreamer successfully 0:00:03.793060591 4372 0x7f19ec00f550 INFO GST_ELEMENT_FACTORY gstelementfactory.c:489:gst_element_factory_create_with_properties: creating element "pipeline" 0:00:03.795535626 4372 0x7f19ec00f550 INFO GST_PLUGIN_LOADING gstplugin.c:987:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstpipewire.so" loaded 0:00:03.795632060 4372 0x7f19ec00f550 INFO GST_ELEMENT_FACTORY gstelementfactory.c:489:gst_element_factory_create_with_properties: creating element "pipewiresrc" 0:00:03.795762458 4372 0x7f19ec00f550 INFO GST_ELEMENT_PADS gstelement.c:759:gst_element_add_pad:<GstBaseSrc@0x7f19c809c300> adding pad 'src' 0:00:03.796038825 4372 0x7f19ec00f550 INFO GST_PLUGIN_LOADING gstplugin.c:987:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstapp.so" loaded 0:00:03.796062019 4372 0x7f19ec00f550 INFO GST_ELEMENT_FACTORY gstelementfactory.c:489:gst_element_factory_create_with_properties: creating element "appsink" 0:00:03.796204180 4372 0x7f19ec00f550 INFO GST_ELEMENT_PADS gstelement.c:759:gst_element_add_pad:<GstBaseSink@0x7f19c80a27b0> adding pad 'sink' 0:00:03.796301866 4372 0x7f19ec00f550 INFO GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element pipewiresrc0:(any) to element appsink0:(any) 0:00:03.796323367 4372 0x7f19ec00f550 INFO GST_PADS gstutils.c:1079:gst_pad_check_link: trying to link pipewiresrc0:src and appsink0:sink 0:00:03.796351961 4372 0x7f19ec00f550 INFO GST_PADS gstutils.c:1632:prepare_link_maybe_ghosting: pipewiresrc0 and appsink0 in same bin, no need for ghost pads 0:00:03.796383171 4372 0x7f19ec00f550 INFO GST_PADS gstpad.c:2382:gst_pad_link_prepare: trying to link pipewiresrc0:src and appsink0:sink 0:00:03.796414190 4372 0x7f19ec00f550 INFO GST_PADS gstpad.c:2590:gst_pad_link_full: linked pipewiresrc0:src and appsink0:sink, successful 0:00:03.796445650 4372 0x7f19ec00f550 INFO GST_EVENT gstevent.c:1660:gst_event_new_reconfigure: creating reconfigure event 0:00:03.796477390 4372 0x7f19ec00f550 INFO GST_EVENT gstpad.c:5946:gst_pad_send_event_unchecked:<pipewiresrc0:src> Received event on flushing pad. Discarding 0:00:03.796527215 4372 0x7f19ec00f550 INFO GST_STATES gstbin.c:2479:gst_bin_element_set_state:<appsink0> current NULL pending VOID_PENDING, desired next READY 0:00:03.796557994 4372 0x7f19ec00f550 INFO GST_STATES gstelement.c:2806:gst_element_continue_state:<appsink0> completed state change to READY 0:00:03.796586648 4372 0x7f19ec00f550 INFO GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<appsink0> notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:03.796621394 4372 0x7f19ec00f550 INFO GST_STATES gstbin.c:2928:gst_bin_change_state_func:<pipeline0> child 'appsink0' changed state to 2(READY) successfully 0:00:03.796649959 4372 0x7f19ec00f550 INFO GST_STATES gstbin.c:2479:gst_bin_element_set_state:<pipewiresrc0> current NULL pending VOID_PENDING, desired next READY 0:00:03.798857344 4372 0x7f19ec00f550 INFO GST_STATES gstelement.c:2806:gst_element_continue_state:<pipewiresrc0> completed state change to READY 0:00:03.798879937 4372 0x7f19ec00f550 INFO GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<pipewiresrc0> notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:03.798913811 4372 0x7f19ec00f550 INFO GST_STATES gstbin.c:2928:gst_bin_change_state_func:<pipeline0> child 'pipewiresrc0' changed state to 2(READY) successfully 0:00:03.798941294 4372 0x7f19ec00f550 INFO GST_STATES gstelement.c:2778:gst_element_continue_state:<pipeline0> committing state from NULL to READY, pending PLAYING, next PAUSED 0:00:03.798967844 4372 0x7f19ec00f550 INFO GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<pipeline0> notifying about state-changed NULL to READY (PLAYING pending) 0:00:03.798994796 4372 0x7f19ec00f550 INFO GST_STATES gstelement.c:2786:gst_element_continue_state:<pipeline0> continue state change READY to PAUSED, final PLAYING 0:00:03.799017509 4372 0x7f19ec00f550 INFO GST_STATES gstbin.c:2479:gst_bin_element_set_state:<appsink0> current READY pending VOID_PENDING, desired next PAUSED 0:00:03.799042206 4372 0x7f19ec00f550 INFO GST_STATES gstbin.c:2935:gst_bin_change_state_func:<pipeline0> child 'appsink0' is changing state asynchronously to PAUSED 0:00:03.799082192 4372 0x7f19ec00f550 INFO GST_STATES gstbin.c:2479:gst_bin_element_set_state:<pipewiresrc0> current READY pending VOID_PENDING, desired next PAUSED 0:00:03.799135955 4372 0x7f19ec00f550 INFO basesrc gstbasesrc.c:1430:gst_base_src_do_seek:<pipewiresrc0> seeking: time segment start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:00.000000000, duration 99:99:99.999999999 0:00:03.799180299 4372 0x7f19ec00f550 INFO task gsttask.c:516:gst_task_set_lock: setting stream lock 0x7f19c809e250 on task 0x55950d7815f0 0:00:03.799212170 4372 0x7f19ec00f550 INFO GST_PADS gstpad.c:6291:gst_pad_start_task:<pipewiresrc0:src> created task 0x55950d7815f0 0:00:03.799335184 4372 0x55950d739700 INFO GST_ELEMENT_PADS gstelement.c:1013:gst_element_get_static_pad: no such pad 'sink' in element "pipewiresrc0" 0:00:03.799443030 4372 0x55950d739700 FIXME default gstutils.c:4025:gst_pad_create_stream_id_internal:<pipewiresrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id 0:00:33.799634365 4372 0x7f19ec00f550 INFO GST_STATES gstelement.c:3091:gst_element_change_state:<pipewiresrc0> have FAILURE change_state return 0:00:33.799758031 4372 0x7f19ec00f550 INFO GST_STATES gstelement.c:2678:gst_element_abort_state:<pipewiresrc0> aborting state from READY to PAUSED 0:00:33.799893749 4372 0x7f19ec00f550 INFO GST_STATES gstbin.c:2944:gst_bin_change_state_func:<pipeline0> child 'pipewiresrc0' failed to go to state 3(PAUSED) 0:00:33.799939146 4372 0x55950d739700 WARN basesrc gstbasesrc.c:3127:gst_base_src_loop:<pipewiresrc0> error: Internal data stream error. 0:00:33.800215893 4372 0x55950d739700 WARN basesrc gstbasesrc.c:3127:gst_base_src_loop:<pipewiresrc0> error: streaming stopped, reason not-negotiated (-4) 0:00:33.800119018 4372 0x7f19ec00f550 INFO GST_STATES gstelement.c:2806:gst_element_continue_state:<appsink0> completed state change to READY 0:00:33.800405925 4372 0x55950d739700 INFO GST_ERROR_SYSTEM gstelement.c:2271:gst_element_message_full_with_details:<pipewiresrc0> posting message: Internal data stream error. 0:00:33.800554999 4372 0x7f19ec00f550 INFO GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<appsink0> notifying about state-changed READY to READY (VOID_PENDING pending) 0:00:33.800747476 4372 0x55950d739700 INFO GST_ERROR_SYSTEM gstelement.c:2298:gst_element_message_full_with_details:<pipewiresrc0> posted error message: Internal data stream error. 0:00:33.800904104 4372 0x7f19ec00f550 INFO GST_STATES gstelement.c:2806:gst_element_continue_state:<pipewiresrc0> completed state change to READY 0:00:33.801017771 4372 0x55950d739700 INFO GST_EVENT gstpad.c:5946:gst_pad_send_event_unchecked:<appsink0:sink> Received event on flushing pad. Discarding 0:00:33.801112722 4372 0x7f19ec00f550 INFO pipeline gstpipeline.c:533:gst_pipeline_change_state:<pipeline0> pipeline is not live 0:00:33.801306852 4372 0x7f19ec00f550 INFO GST_STATES gstelement.c:3091:gst_element_change_state:<pipeline0> have FAILURE change_state return 0:00:33.801202313 4372 0x55950d739700 INFO task gsttask.c:368:gst_task_func:<pipewiresrc0:src> Task going to paused [2022-12-19T16:09:04Z ERROR librustdesk::server::wayland] REMOVE ME ===================================== wayland scrap error Element failed to change its state [2022-12-19T16:09:04Z ERROR librustdesk::server::wayland] Failed scrap Element failed to change its state ``` Full GST logs (`GST_DEBUG=5`): [gst.log](https://github.com/rustdesk/rustdesk/files/10261272/gst.log) PipeWire logs: ``` Dec 20 02:29:39 laptop.remote pipewire[725]: mod.rt: Can't find xdg-portal: (null) Dec 20 02:29:39 laptop.remote pipewire[725]: mod.rt: found session bus but no portal Dec 20 02:29:39 laptop.remote pipewire[725]: [0:00:27.638255252] [725] INFO Camera camera_manager.cpp:299 libcamera v0.0.2 Dec 20 02:30:07 laptop.remote pipewire[725]: pw.context: params Spa:Enum:ParamId:EnumFormat: 0:0 Invalid argument (input format (no more input formats)) Dec 20 02:30:07 laptop.remote pipewire[725]: default: Object: size 96, type Spa:Pod:Object:Param:Format (262147), id Spa:Enum:ParamId:EnumFormat (3) Dec 20 02:30:07 laptop.remote pipewire[725]: default: Prop: key Spa:Pod:Object:Param:Format:mediaType (1), flags 00000000 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Id 2 (Spa:Enum:MediaType:video) Dec 20 02:30:07 laptop.remote pipewire[725]: default: Prop: key Spa:Pod:Object:Param:Format:mediaSubtype (2), flags 00000000 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Id 1 (Spa:Enum:MediaSubtype:raw) Dec 20 02:30:07 laptop.remote pipewire[725]: default: Prop: key Spa:Pod:Object:Param:Format:Video:format (131073), flags 00000000 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Choice: type Spa:Enum:Choice:None, flags 00000000 20 4 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Id 8 (Spa:Enum:VideoFormat:BGRx) Dec 20 02:30:07 laptop.remote pipewire[725]: pw.context: params Spa:Enum:ParamId:EnumFormat: 1:0 Invalid argument (output format (no more input formats)) Dec 20 02:30:07 laptop.remote pipewire[725]: default: Object: size 296, type Spa:Pod:Object:Param:Format (262147), id Spa:Enum:ParamId:EnumFormat (3) Dec 20 02:30:07 laptop.remote pipewire[725]: default: Prop: key Spa:Pod:Object:Param:Format:mediaType (1), flags 00000000 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Id 2 (Spa:Enum:MediaType:video) Dec 20 02:30:07 laptop.remote pipewire[725]: default: Prop: key Spa:Pod:Object:Param:Format:mediaSubtype (2), flags 00000000 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Id 1 (Spa:Enum:MediaSubtype:raw) Dec 20 02:30:07 laptop.remote pipewire[725]: default: Prop: key Spa:Pod:Object:Param:Format:Video:format (131073), flags 00000000 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Id 8 (Spa:Enum:VideoFormat:BGRx) Dec 20 02:30:07 laptop.remote pipewire[725]: default: Prop: key Spa:Pod:Object:Param:Format:Video:modifier (131074), flags 00000018 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Choice: type Spa:Enum:Choice:Enum, flags 00000000 96 8 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Long 72057594037927935 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Long 72057594037927935 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Long 144115206334822913 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Long 144115206334822657 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Long 144115206334806273 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Long 144115188080056833 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Long 144115188080056577 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Long 144115188075858433 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Long 144115188075858177 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Long 0 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Prop: key Spa:Pod:Object:Param:Format:Video:size (131075), flags 00000000 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Rectangle 1920x1080 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Prop: key Spa:Pod:Object:Param:Format:Video:framerate (131076), flags 00000000 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Fraction 0/1 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Prop: key Spa:Pod:Object:Param:Format:Video:maxFramerate (131077), flags 00000000 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Fraction 60/1 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Fraction 1/1 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Fraction 60/1 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Object: size 184, type Spa:Pod:Object:Param:Format (262147), id Spa:Enum:ParamId:EnumFormat (3) Dec 20 02:30:07 laptop.remote pipewire[725]: default: Prop: key Spa:Pod:Object:Param:Format:mediaType (1), flags 00000000 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Id 2 (Spa:Enum:MediaType:video) Dec 20 02:30:07 laptop.remote pipewire[725]: default: Prop: key Spa:Pod:Object:Param:Format:mediaSubtype (2), flags 00000000 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Id 1 (Spa:Enum:MediaSubtype:raw) Dec 20 02:30:07 laptop.remote pipewire[725]: default: Prop: key Spa:Pod:Object:Param:Format:Video:format (131073), flags 00000000 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Id 7 (Spa:Enum:VideoFormat:RGBx) Dec 20 02:30:07 laptop.remote pipewire[725]: default: Prop: key Spa:Pod:Object:Param:Format:Video:size (131075), flags 00000000 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Rectangle 1920x1080 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Prop: key Spa:Pod:Object:Param:Format:Video:framerate (131076), flags 00000000 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Fraction 0/1 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Prop: key Spa:Pod:Object:Param:Format:Video:maxFramerate (131077), flags 00000000 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Fraction 60/1 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Fraction 1/1 Dec 20 02:30:07 laptop.remote pipewire[725]: default: Fraction 60/1 Dec 20 02:30:07 laptop.remote pipewire[725]: pw.link: (68.0 -> 71.0) negotiating -> error (no more input formats) ``` **How did you install RustDesk?** build from source (https://github.com/rustdesk/rustdesk/commit/1054715891c4e73ad9b164acec6dadecfc599a65) **RustDesk version and environment** [gst-plugins.log](https://github.com/rustdesk/rustdesk/files/10261317/gst-plugins.log) [gst-inspect-pipewiresrc.log](https://github.com/rustdesk/rustdesk/files/10261318/gst-inspect-pipewiresrc.log) `sway -V` output: ``` 00:00:00.000 [sway/main.c:343] Sway version 1.7 00:00:00.000 [sway/main.c:344] wlroots version 0.15.1 00:00:00.003 [sway/main.c:120] Linux laptop.remote 6.0.12-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Thu, 08 Dec 2022 11:03:40 +0000 x86_64 GNU/Linux 00:00:00.003 [sway/main.c:136] Contents of /etc/lsb-release: 00:00:00.003 [sway/main.c:120] DISTRIB_ID="Arch" 00:00:00.003 [sway/main.c:120] DISTRIB_RELEASE="rolling" 00:00:00.003 [sway/main.c:120] DISTRIB_DESCRIPTION="Arch Linux" ... ```
deekerman 2026-02-20 23:19:44 -05:00
Author
Owner

@rustdesk commented on GitHub (Dec 19, 2022):

#763

@rustdesk commented on GitHub (Dec 19, 2022): #763
Author
Owner

@kawalain commented on GitHub (Dec 20, 2022):

@rustdesk The same error occurs in nightly.

The reason I built from the source is that I could not obtain debug logs using the GST_DEBUG environment variable with the compiled RustDesk file that I could install from GitHub.

@kawalain commented on GitHub (Dec 20, 2022): @rustdesk The same error occurs in [nightly](https://github.com/rustdesk/rustdesk/releases/tag/nightly). The reason I built from the source is that I could not obtain debug logs using the `GST_DEBUG` environment variable with the compiled RustDesk file that I could install from GitHub.
Author
Owner

@rustdesk commented on GitHub (Dec 20, 2022):

pr welcome.

@rustdesk commented on GitHub (Dec 20, 2022): pr welcome.
Author
Owner

@kawalain commented on GitHub (Dec 20, 2022):

https://github.com/H-M-H/Weylus/issues/155#issuecomment-1120327869
github.com/H-M-H/Weylus@55301e0541

Kinda works with this code but wrong colors.

Screenshot_20221220-234642

@kawalain commented on GitHub (Dec 20, 2022): https://github.com/H-M-H/Weylus/issues/155#issuecomment-1120327869 https://github.com/H-M-H/Weylus/commit/55301e05416171afb359fe9580b7038f22038f9d?diff=split Kinda works with this code but wrong colors. ![Screenshot_20221220-234642](https://user-images.githubusercontent.com/81617583/208694346-e51a0cab-4bb2-4b60-a22c-6ae02e36f015.png)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rustdesk-rustdesk#1164
No description provided.