mikebrady / shairport-sync

AirPlay and AirPlay 2 audio player
Other
7.02k stars 567 forks source link

[Problem]: iOS 18 beta 1 Breaks AirPlay 1 Support #1866

Open b3ll opened 2 weeks ago

b3ll commented 2 weeks ago

What happened?

Fully aware that betas aren't expected to be supported until they're public, but just wanted to give a heads up here :(

Built from development branch and it works fine with 17.5 but 18.0b1 fails to connect.

AirPlay 2 seems to work just fine (minus remote controls, as expected), but AirPlay 1 will connect and then if you attempt to play any music it'll fail on the device saying it failed to connect. Still looking into things, but nothing was immediately obvious from the verbose output. Will keep looking into it and follow up here if I notice anything!

Relevant log output

     0.000015111 "rtsp.c:5204" Join watchdog thread.
     0.000055945 "rtsp.c:617" Connection 1: Watchdog Exit.
     0.000053278 "rtsp.c:5206" Delete watchdog mutex.
     0.000005388 "rtsp.c:5209" Connection 1: Closed.
     0.000009556 "rtsp.c:5431" Connection 1: RTSP thread exit.
     1.110821573 "dacp.c:503" mutex_lock "&dacp_server_information_lock".
     2.000065721 "dacp.c:503" mutex_lock "&dacp_server_information_lock".
     2.000060333 "dacp.c:503" mutex_lock "&dacp_server_information_lock".
     2.000061017 "dacp.c:503" mutex_lock "&dacp_server_information_lock".
     2.000060517 "dacp.c:503" mutex_lock "&dacp_server_information_lock".
     2.000068536 "dacp.c:503" mutex_lock "&dacp_server_information_lock".
     2.000076295 "dacp.c:503" mutex_lock "&dacp_server_information_lock".
     2.000062073 "dacp.c:503" mutex_lock "&dacp_server_information_lock".
     2.000062314 "dacp.c:503" mutex_lock "&dacp_server_information_lock".
     2.000063721 "dacp.c:503" mutex_lock "&dacp_server_information_lock".
     2.000062091 "dacp.c:503" mutex_lock "&dacp_server_information_lock".
     2.000063554 "dacp.c:503" mutex_lock "&dacp_server_information_lock".
     2.000063370 "dacp.c:503" mutex_lock "&dacp_server_information_lock".
     0.476877129 "rtsp.c:700" mutex_lock "&conns_lock".
     0.000048870 "rtsp.c:703" Found RTSP connection thread 1 in a non-running state.
     0.000037871 "rtsp.c:706" Connection 1: deleted.
     0.000038889 "common.c:1687" mutex_unlock "&conns_lock" at "rtsp.c:716".
     0.000035666 "rtsp.c:727" Airplay Volume for new connections is -24.000000.
     0.000061871 "rtsp.c:5713" Connection 2: New connection from fe8 to self at fe8.
     0.000080889 "rtsp.c:5729" Successfully created RTSP receiver thread 2.
     0.000030851 "rtsp.c:5267" mutex_lock "&conns_lock".
     0.000008204 "common.c:1687" mutex_unlock "&conns_lock" at "rtsp.c:5274".
     0.000014852 "rtsp.c:667" mutex_lock "&conns_lock".
     0.000059611 "common.c:1687" mutex_unlock "&conns_lock" at "rtsp.c:689".
     0.001339944 "rtsp.c:782" msg_init message 7
     0.000006797 "rtsp.c:896" RTSP Message Received: "OPTIONS * RTSP/1.0".
     0.000010796 "rtsp.c:927"     CSeq: 0.
     0.000012278 "rtsp.c:927"     DACP-ID: 2000000009C.
     0.000011667 "rtsp.c:927"     Active-Remote: 0000000009.
     0.000004870 "rtsp.c:927"     User-Agent: AirPlay/800.55.3.
     0.000005444 "rtsp.c:782" msg_init message 8
     0.000004111 "rtsp.c:5293" Connection 2: Received an RTSP Packet of type "OPTIONS":
     0.000004556 "rtsp.c:5295"   Type: "CSeq", content: "0"
     0.000004037 "rtsp.c:5295"   Type: "DACP-ID", content: "2B4000000009C"
     0.000004000 "rtsp.c:5295"   Type: "Active-Remote", content: "3000000009"
     0.000003963 "rtsp.c:5295"   Type: "User-Agent", content: "AirPlay/800.55.3"
     0.000003907 "rtsp.c:5295"   No Content Plist. Content length: 0.
     0.000005963 "rtsp.c:2666" OPTIONS request
     0.000003815 "rtsp.c:2666"   Type: "CSeq", content: "0"
     0.000003871 "rtsp.c:2666"   Type: "DACP-ID", content: "200000009C"
     0.000003944 "rtsp.c:2666"   Type: "Active-Remote", content: "3000000009"
     0.000012815 "rtsp.c:2666"   Type: "User-Agent", content: "AirPlay/800.55.3"
     0.000013278 "rtsp.c:2666"   No Content Plist. Content length: 0.
     0.000008129 "rtsp.c:2667" Connection 2: OPTIONS
     0.000004797 "rtsp.c:5354" Connection 2: RTSP Response:
     0.000004037 "rtsp.c:5355"   Response Code: 200.
     0.000003759 "rtsp.c:5355"   Type: "CSeq", content: "0"
     0.000003926 "rtsp.c:5355"   Type: "Server", content: "AirTunes/105.1"
     0.000003926 "rtsp.c:5355"   Type: "Public", content: "ANNOUNCE, SETUP, RECORD, PAUSE, FLUSH, TEARDOWN, OPTIONS, GET_PARAMETER, SET_PARAMETER"
     0.000004629 "rtsp.c:5355"   No Content Plist. Content length: 0.
     0.000022334 "rtsp.c:872" msg_free freed message 8
     0.000009370 "rtsp.c:872" msg_free freed message 7
     0.000003963 "rtsp.c:5267" mutex_lock "&conns_lock".
     0.000004481 "common.c:1687" mutex_unlock "&conns_lock" at "rtsp.c:5274".
     0.076817889 "rtsp.c:782" msg_init message 9
     0.000005723 "rtsp.c:896" RTSP Message Received: "OPTIONS * RTSP/1.0".
     0.000010037 "rtsp.c:927"     CSeq: 1.
     0.000013870 "rtsp.c:927"     DACP-ID: 2B00000009C.
     0.000009018 "rtsp.c:927"     Active-Remote: 300000039.
     0.000004463 "rtsp.c:927"     User-Agent: AirPlay/800.55.3.
     0.000005000 "rtsp.c:782" msg_init message 10
     0.000004037 "rtsp.c:5293" Connection 2: Received an RTSP Packet of type "OPTIONS":
     0.000004149 "rtsp.c:5295"   Type: "CSeq", content: "1"
     0.000003870 "rtsp.c:5295"   Type: "DACP-ID", content: "2B40000000009C"
     0.000004000 "rtsp.c:5295"   Type: "Active-Remote", content: "30000000939"
     0.000003889 "rtsp.c:5295"   Type: "User-Agent", content: "AirPlay/800.55.3"
     0.000003926 "rtsp.c:5295"   No Content Plist. Content length: 0.
     0.000004426 "rtsp.c:2666" OPTIONS request
     0.000004092 "rtsp.c:2666"   Type: "CSeq", content: "1"
     0.000003871 "rtsp.c:2666"   Type: "DACP-ID", content: "2B0000C09C"
     0.000003926 "rtsp.c:2666"   Type: "Active-Remote", content: "300000000039"
     0.000003963 "rtsp.c:2666"   Type: "User-Agent", content: "AirPlay/800.55.3"
     0.000003888 "rtsp.c:2666"   No Content Plist. Content length: 0.
     0.000003834 "rtsp.c:2667" Connection 2: OPTIONS
     0.000012074 "rtsp.c:5354" Connection 2: RTSP Response:
     0.000013333 "rtsp.c:5355"   Response Code: 200.
     0.000009759 "rtsp.c:5355"   Type: "CSeq", content: "1"
     0.000008260 "rtsp.c:5355"   Type: "Server", content: "AirTunes/105.1"
     0.000004092 "rtsp.c:5355"   Type: "Public", content: "ANNOUNCE, SETUP, RECORD, PAUSE, FLUSH, TEARDOWN, OPTIONS, GET_PARAMETER, SET_PARAMETER"
     0.000004482 "rtsp.c:5355"   No Content Plist. Content length: 0.
     0.000013833 "rtsp.c:872" msg_free freed message 10
     0.000005833 "rtsp.c:872" msg_free freed message 9
     0.000003908 "rtsp.c:5267" mutex_lock "&conns_lock".
     0.000004315 "common.c:1687" mutex_unlock "&conns_lock" at "rtsp.c:5274".
     0.030461796 "rtsp.c:782" msg_init message 11
     0.000004944 "rtsp.c:896" RTSP Message Received: "OPTIONS * RTSP/1.0".
     0.000009704 "rtsp.c:927"     CSeq: 2.
     0.000009815 "rtsp.c:927"     DACP-ID: 2B47B11B4A26C09C.
     0.000004333 "rtsp.c:927"     Active-Remote: 30000000009.
     0.000004315 "rtsp.c:927"     User-Agent: AirPlay/800.55.3.
     0.000005074 "rtsp.c:782" msg_init message 12
     0.000003889 "rtsp.c:5293" Connection 2: Received an RTSP Packet of type "OPTIONS":
     0.000004000 "rtsp.c:5295"   Type: "CSeq", content: "2"
     0.000003889 "rtsp.c:5295"   Type: "DACP-ID", content: "2B400000000C09C"
     0.000003963 "rtsp.c:5295"   Type: "Active-Remote", content: "3028607939"
     0.000004018 "rtsp.c:5295"   Type: "User-Agent", content: "AirPlay/800.55.3"
     0.000003889 "rtsp.c:5295"   No Content Plist. Content length: 0.
     0.000004260 "rtsp.c:2666" OPTIONS request
     0.000003740 "rtsp.c:2666"   Type: "CSeq", content: "2"
     0.000003834 "rtsp.c:2666"   Type: "DACP-ID", content: "2B400000000C09C"
     0.000003926 "rtsp.c:2666"   Type: "Active-Remote", content: "3028607939"
     0.000012555 "rtsp.c:2666"   Type: "User-Agent", content: "AirPlay/800.55.3"
     0.000013037 "rtsp.c:2666"   No Content Plist. Content length: 0.
     0.000010482 "rtsp.c:2667" Connection 2: OPTIONS
     0.000008796 "rtsp.c:5354" Connection 2: RTSP Response:
     0.000004074 "rtsp.c:5355"   Response Code: 200.
     0.000003722 "rtsp.c:5355"   Type: "CSeq", content: "2"
     0.000003759 "rtsp.c:5355"   Type: "Server", content: "AirTunes/105.1"
     0.000004056 "rtsp.c:5355"   Type: "Public", content: "ANNOUNCE, SETUP, RECORD, PAUSE, FLUSH, TEARDOWN, OPTIONS, GET_PARAMETER, SET_PARAMETER"
     0.000004426 "rtsp.c:5355"   No Content Plist. Content length: 0.
     0.000010667 "rtsp.c:872" msg_free freed message 12
     0.000008666 "rtsp.c:872" msg_free freed message 11
     0.000010611 "rtsp.c:5267" mutex_lock "&conns_lock".
     0.000009278 "common.c:1687" mutex_unlock "&conns_lock" at "rtsp.c:5274".
     0.018529111 "rtsp.c:1335" Connection 2: Connection closed by client.
     0.000005685 "rtsp.c:5425" Connection 2: Terminate RTSP connection.
     0.000009871 "rtsp.c:5110" Connection 2: unspecified stream rtsp_conversation_thread_func_cleanup_function called.
     0.000010537 "rtsp.c:2817" Connection 2: TEARDOWN (Classic AirPlay).
     0.000004685 "player.c:3645" Connection 2: player_stop.
     0.000004389 "player.c:3647" mutex_lock "&conn->player_create_delete_mutex".
     0.000004667 "player.c:3665" Connection 2: no player thread.
     0.000004833 "activity_monitor.c:131" mutex_lock "&activity_monitor_mutex".
     0.000020722 "rtsp.c:5121" Connection 2: terminating  -- closing timing, control and audio sockets...
     0.000005352 "rtsp.c:5142" Connection 2: terminating -- closing RTSP connection socket 13: from fe80:02 to self at fe80::da300.
     0.000023704 "rtsp.c:5202" Cancel watchdog thread.
     0.000012907 "rtsp.c:5204" Join watchdog thread.
     0.000098593 "rtsp.c:617" Connection 2: Watchdog Exit.
     0.000040000 "rtsp.c:5206" Delete watchdog mutex.
     0.000010907 "rtsp.c:5209" Connection 2: Closed.
     0.000010519 "rtsp.c:5431" Connection 2: RTSP thread exit.

System Information.

Raspberry Pi 5

Configuration Information.

/* Doesn't really seem relevant to attach as it fails regardless of configuration */

PulseAudio or PipeWire installed?

How did you install Shairport Sync?

Built from source

Check previous issues

mikebrady commented 2 weeks ago

Very interesting indeed, thanks. Let’s hope for the best.

BrokeTechEnthusiast commented 6 days ago

Doesn’t appear to be fixed as of iOS 18 Dev Beta 2.