Connecting gets stuck after state ND_SINK_STATE_WAIT_SOCKET on Samsung J Series (UE55JU6580)
When trying to connect, the TV's UI recognizes the connection attempt, but gets canceled after a few seconds.
Version: 0.90.5-1 from aur
I noticed a an EAP packet with Code 4 (Failure) in the dump of the p2p-channel.pcapng.
Log:
% GST_DEBUG=*rtsp*:5 G_MESSAGES_DEBUG=all gnome-network-displays
(gnome-network-displays:91407): GLib-GIO-DEBUG: 20:56:12.267: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
(gnome-network-displays:91407): GLib-DEBUG: 20:56:12.323: unsetenv() is not thread-safe and should not be used after threads are created
(gnome-network-displays:91407): Gtk-DEBUG: 20:56:12.323: Connecting to session manager
** (gnome-network-displays:91407): DEBUG: 20:56:12.502: NdScreencastPortal: Aquired Portal proxy
** (gnome-network-displays:91407): DEBUG: 20:56:12.503: task is: 0x5635b761a8f0
** (gnome-network-displays:91407): DEBUG: 20:56:12.505: NdPulseaudio: Querying sink info by name
** (gnome-network-displays:91407): DEBUG: 20:56:12.505: NdPulseaudio: Error querying sink info
** (gnome-network-displays:91407): DEBUG: 20:56:12.505: NdPulseaudio: Got a sink info for the expected name
** (gnome-network-displays:91407): DEBUG: 20:56:12.523: WFDP2PRegistry: Found a new device, creating provider
** (gnome-network-displays:91407): DEBUG: 20:56:12.524: WfdP2PProvider: Discover is now set to 1
** (gnome-network-displays:91407): DEBUG: 20:56:12.549: WFDP2PRegistry: Got NMClient
** (gnome-network-displays:91407): DEBUG: 20:56:12.563: NdScreencastPortal: Received CreateSession response
** (gnome-network-displays:91407): DEBUG: 20:56:12.563: simple variant lookup: /org/freedesktop/portal/desktop/session/1_1075/gnd1272385910
** (gnome-network-displays:91407): DEBUG: 20:56:12.567: NdScreencastPortal: Received SelectSource response
(gnome-network-displays:91407): GdkPixbuf-DEBUG: 20:56:12.580: gdk_pixbuf_from_pixdata() called on:
(gnome-network-displays:91407): GdkPixbuf-DEBUG: 20:56:12.580: Encoding raw
(gnome-network-displays:91407): GdkPixbuf-DEBUG: 20:56:12.580: Dimensions: 16 x 16
(gnome-network-displays:91407): GdkPixbuf-DEBUG: 20:56:12.580: Rowstride: 64, Length: 1048
(gnome-network-displays:91407): GdkPixbuf-DEBUG: 20:56:12.580: Copy pixels == false
(gnome-network-displays:91407): GdkPixbuf-DEBUG: 20:56:12.942: gdk_pixbuf_from_pixdata() called on:
(gnome-network-displays:91407): GdkPixbuf-DEBUG: 20:56:12.942: Encoding raw
(gnome-network-displays:91407): GdkPixbuf-DEBUG: 20:56:12.942: Dimensions: 16 x 16
(gnome-network-displays:91407): GdkPixbuf-DEBUG: 20:56:12.943: Rowstride: 64, Length: 1048
(gnome-network-displays:91407): GdkPixbuf-DEBUG: 20:56:12.943: Copy pixels == false
** (gnome-network-displays:91407): DEBUG: 20:56:16.001: NdScreencastPortal: Received Start response
** (gnome-network-displays:91407): DEBUG: 20:56:16.001: Got a stream with node ID: 39
** (gnome-network-displays:91407): DEBUG: 20:56:16.663: WFDP2PProvider: Found a new sink with peer 0x5635b7816190 on device 0x5635b77d41f0
** (gnome-network-displays:91407): DEBUG: 20:56:16.663: SinkList: Adding a sink
** (gnome-network-displays:91407): DEBUG: 20:56:16.882: WFDP2PProvider: Found a new sink with peer 0x5635b7816340 on device 0x5635b77d41f0
** (gnome-network-displays:91407): DEBUG: 20:56:16.882: SinkList: Adding a sink
** (gnome-network-displays:91407): DEBUG: 20:56:17.859: Found x264enc for video encoding.
** (gnome-network-displays:91407): DEBUG: 20:56:17.859: Found fdkaacenc for audio encoding.
** (gnome-network-displays:91407): DEBUG: 20:56:17.859: Found avenc_aac for audio encoding.
** (gnome-network-displays:91407): DEBUG: 20:56:17.859: Found faac for audio encoding.
** (gnome-network-displays:91407): DEBUG: 20:56:17.860: Got state change notification from streaming sink to state ND_SINK_STATE_ENSURE_FIREWALL
** (gnome-network-displays:91407): DEBUG: 20:56:17.862: WfdP2PProvider: Discover is now set to 0
** (gnome-network-displays:91407): DEBUG: 20:56:17.864: NdFirewalld: Firewalld does not seem to be installed. Code will assume that no firewall will be configured.
** (gnome-network-displays:91407): DEBUG: 20:56:17.864: NdWfdP2PSink: Got firewall information
** (gnome-network-displays:91407): DEBUG: 20:56:17.865: Got state change notification from streaming sink to state ND_SINK_STATE_WAIT_P2P
** (gnome-network-displays:91407): DEBUG: 20:56:17.917: NdWfdP2PSink: Got P2P connection
0:00:05.765324721 91407 0x5635b70dd580 DEBUG rtspmountpoints rtsp-mount-points.c:131:gst_rtsp_mount_points_init:<GstRTSPMountPoints@0x5635b767dec0> created
** (gnome-network-displays:91407): DEBUG: 20:56:17.918: Found x264enc for video encoding.
** (gnome-network-displays:91407): DEBUG: 20:56:17.918: Found fdkaacenc for audio encoding.
** (gnome-network-displays:91407): DEBUG: 20:56:17.918: Found avenc_aac for audio encoding.
** (gnome-network-displays:91407): DEBUG: 20:56:17.918: Found faac for audio encoding.
0:00:05.765616625 91407 0x5635b70dd580 INFO rtspmountpoints rtsp-mount-points.c:354:gst_rtsp_mount_points_add_factory: adding media factory 0x5635b7187650 for path /wfd1.0
0:00:05.765646465 91407 0x5635b70dd580 DEBUG rtspserver rtsp-server.c:882:gst_rtsp_server_create_socket:<WfdServer@0x5635b72a83d0> getting address info of 0.0.0.0/7236
0:00:05.765906390 91407 0x5635b70dd580 DEBUG rtspserver rtsp-server.c:967:gst_rtsp_server_create_socket:<WfdServer@0x5635b72a83d0> opened sending server socket
0:00:05.765934994 91407 0x5635b70dd580 DEBUG rtspserver rtsp-server.c:994:gst_rtsp_server_create_socket:<WfdServer@0x5635b72a83d0> listening on server socket 0x5635b71d6280 with queue of 5
** (gnome-network-displays:91407): DEBUG: 20:56:17.918: Got state change notification from streaming sink to state ND_SINK_STATE_WAIT_SOCKET
** (gnome-network-displays:91407): DEBUG: 20:57:21.251: WFDP2PProvider: Peer removed
** (gnome-network-displays:91407): DEBUG: 20:57:21.251: MetaSink: No usable sink is left, object has become invalid.
** (gnome-network-displays:91407): DEBUG: 20:57:21.251: SinkList: Removing a sink
** (gnome-network-displays:91407): DEBUG: 20:57:31.252: WFDP2PProvider: Peer removed
** (gnome-network-displays:91407): DEBUG: 20:57:31.252: MetaSink: No usable sink is left, object has become invalid.
** (gnome-network-displays:91407): DEBUG: 20:57:31.252: SinkList: Removing a sink
0:01:24.454535520 91407 0x5635b70dd580 DEBUG rtspserver rtsp-server.c:1310:watch_destroyed:<WfdServer@0x5635b72a83d0> source destroyed
** (gnome-network-displays:91407): DEBUG: 20:57:36.607: WfdServer: Finalize
0:01:24.454687841 91407 0x5635b70dd580 DEBUG rtspserver rtsp-server.c:277:gst_rtsp_server_finalize:<WfdServer@0x5635b72a83d0> finalize server
0:01:24.454709555 91407 0x5635b70dd580 DEBUG rtspmountpoints rtsp-mount-points.c:146:gst_rtsp_mount_points_finalize:<GstRTSPMountPoints@0x5635b767dec0> finalized
** (gnome-network-displays:91407): DEBUG: 20:57:36.607: WfdMediaFactory: Finalize
0:01:24.454774328 91407 0x5635b70dd580 INFO rtspthreadpool rtsp-thread-pool.c:276:gst_rtsp_thread_pool_finalize: finalize pool 0x5635b781ca80
** (gnome-network-displays:91407): DEBUG: 20:57:36.607: Got state change notification from streaming sink to state ND_SINK_STATE_ERROR
I also tried to start with NETWORK_DISPLAYS_H264_ENC=x264enc
as this was reported to help in #199 (closed), but it does not in my case.