gmg137 / netease-cloud-music-gtk

Linux 平台下基于 Rust + GTK 开发的网易云音乐播放器
GNU General Public License v3.0
1.5k stars 89 forks source link

无法播放歌曲,Connection #1 to host interface3.music.163.com left intact #272

Closed Aleksanaa closed 5 months ago

Aleksanaa commented 5 months ago

Describe the bug

无法播放绝大部分歌曲(有的能加载30秒,重新加载就不能播放了),播放时显示

[2024-02-08T10:14:41Z DEBUG netease_cloud_music_gtk4::application] 播放歌曲: SongInfo { id: 1474719424, name: "Sommerwind", singer: "Vanessa Mai", album: "Sommerwind", album_id: 94619457, pic_url: "http://p4.music.126.net/ATS2ka2oehIYq5bG1Dm8sA==/109951165290685096.jpg", duration: 155924, song_url: "http://m801.music.126.net/20240208183941/396175d8a423fb70a338a7c30b9b29ba/jdymusic/obj/wo3DlMOGwrbDjj7DisKw/9025669308/765d/4afa/18ba/4b028837586d6ecf3ba76936f2aef8f1.mp3", copyright: VipOnlyHighRate }
[2024-02-08T10:14:41Z DEBUG isahc::client] send_async; method=GET uri=http://p4.music.126.net/ATS2ka2oehIYq5bG1Dm8sA==/109951165290685096.jpg?param=140y140
[2024-02-08T10:14:41Z DEBUG isahc::handler] handler;
[2024-02-08T10:14:41Z DEBUG isahc::handler] handler; id=0
[2024-02-08T10:14:41Z DEBUG isahc::handler] Host p4.music.126.net:80 was resolved.
[2024-02-08T10:14:41Z DEBUG isahc::handler] IPv6: , , , , , , , 
[2024-02-08T10:14:41Z DEBUG isahc::handler] 
[2024-02-08T10:14:41Z DEBUG isahc::handler]   Trying [some::thing]:80...
[2024-02-08T10:14:41Z DEBUG isahc::handler] Connected to p4.music.126.net () port 80
[2024-02-08T10:14:41Z DEBUG isahc::handler] Connection cache is full, closing the oldest one
[2024-02-08T10:14:41Z DEBUG isahc::handler] Connection #5 to host p4.music.126.net left intact

[2024-02-08T14:01:06Z DEBUG netease_cloud_music_gtk4::application] 播放歌曲: SongInfo { id: 28613680, name: "裏表ラバーズ×ロストワンの号哭", singer: "初音ミク", album: "最新热歌慢摇66", album_id: 2854052, pic_url: "http://p4.music.126.net/FZX7XAjsmEPGyVOqm4H7aQ==/109951166361039007.jpg", duration: 215000, song_url: "http://m7.music.126.net/20240208222606/ce3f776a093862f3dc9bc8cd5b72297a/ymusic/93e8/ae4f/1673/4e903ef25fb6caac7b607be6ddeb8e57.mp3", copyright: Free }
[2024-02-08T14:01:13Z DEBUG isahc::client] send_async; method=POST uri=https://interface3.music.163.com/eapi/song/enhance/player/url
[2024-02-08T14:01:13Z DEBUG isahc::handler] handler;
[2024-02-08T14:01:13Z DEBUG isahc::handler] handler; id=1
[2024-02-08T14:01:13Z DEBUG isahc::handler] processing: https://interface3.music.163.com/eapi/song/enhance/player/url
[2024-02-08T14:01:13Z DEBUG isahc::handler] Found bundle for host: 0x703b901b21c0 [can multiplex]
[2024-02-08T14:01:13Z DEBUG isahc::handler] Re-using existing connection with host interface3.music.163.com
[2024-02-08T14:01:13Z DEBUG isahc::handler] h2 [:method: POST]
[2024-02-08T14:01:13Z DEBUG isahc::handler] h2 [:scheme: https]
[2024-02-08T14:01:13Z DEBUG isahc::handler] h2 [:authority: music.163.com]
[2024-02-08T14:01:13Z DEBUG isahc::handler] h2 [:path: /eapi/song/enhance/player/url]
[2024-02-08T14:01:13Z DEBUG isahc::handler] h2 [accept-encoding: deflate, gzip]
[2024-02-08T14:01:13Z DEBUG isahc::handler] h2 [user-agent: Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Mobile Safari/537.36]
[2024-02-08T14:01:13Z DEBUG isahc::handler] h2 [accept: */*]
[2024-02-08T14:01:13Z DEBUG isahc::handler] h2 [accept-language: en-US,en;q=0.5]
[2024-02-08T14:01:13Z DEBUG isahc::handler] h2 [content-type: application/x-www-form-urlencoded]
[2024-02-08T14:01:13Z DEBUG isahc::handler] h2 [referer: https://music.163.com]
[2024-02-08T14:01:13Z DEBUG isahc::handler] h2 [cookie: os=pc; appver=2.7.1.198277; MUSIC_U=00B3297CD90C943F84D305A6B0810B788CFA7C1C713EF36D8B91E118AEA920E824AC1398BBCD483A0866C560A1D3A2993088AFDBB2D8D77CDD3EFF05EA65326ED09F6A21D596EA7ADF395D68F0A2E46AAAFD56F5A62F93F8BCB11EEA5DFDA583A88F5C9D6A5BC77F397577CF877F0F4AD2BB613764B234FD351FC95228CF62757E00DFE4801FE6EFFB95E7F222B1EDE2770FA16E86FD97FC8C07714575A21AD0EFC7F177E92F6A52ED6EE5F00CC68D1506A7C28EC59EDA7791EBEFB626CA9BC2BB4B76850D1C8486CD7C2D019BCE3295D50AFF468041B2B2BA75FF23F62C60946E8278465C8AAFE05877C2CD1155E41E79476C57B7443F22FA27FF308F715BBD651EB1CD9CECC83D96BA52910B0E52B29EE299D4F0113D1BBB4D0AD1207DEA9B43D7DE1BA47696D394890787538CC173A5AC4B8CE823678F7D3B32D8C1C7FF8DB0; NMTID=00O7rW6pKzIVGil3kQ4iP7ILF-l9ecAAAGNiBkTlA; __csrf=9473e29b5dc973feacd072fa8b03ab72]
[2024-02-08T14:01:13Z DEBUG isahc::handler] h2 [content-length: 360]
[2024-02-08T14:01:13Z DEBUG isahc::handler] Using Stream ID: 3
[2024-02-08T14:01:13Z DEBUG isahc::handler] We are completely uploaded and fine
[2024-02-08T14:01:13Z DEBUG isahc::handler] Connection #1 to host interface3.music.163.com left intact
[2024-02-08T10:21:33Z DEBUG isahc::client] send_async; method=POST uri=https://interface3.music.163.com/eapi/song/enhance/player/url
[2024-02-08T10:21:33Z DEBUG isahc::handler] handler;
[2024-02-08T10:21:33Z DEBUG isahc::handler] handler; id=0
[2024-02-08T10:21:33Z DEBUG isahc::handler] Found bundle for host: 0x7d5bf42be920 [can multiplex]
[2024-02-08T10:21:33Z DEBUG isahc::handler] Re-using existing connection with host interface3.music.163.com
[2024-02-08T10:21:33Z DEBUG isahc::handler] [HTTP/2] [7] OPENED stream for https://interface3.music.163.com/eapi/song/enhance/player/url
[2024-02-08T10:21:33Z DEBUG isahc::handler] [HTTP/2] [7] [:method: POST]
[2024-02-08T10:21:33Z DEBUG isahc::handler] [HTTP/2] [7] [:scheme: https]
[2024-02-08T10:21:33Z DEBUG isahc::handler] [HTTP/2] [7] [:authority: music.163.com]
[2024-02-08T10:21:33Z DEBUG isahc::handler] [HTTP/2] [7] [:path: /eapi/song/enhance/player/url]
[2024-02-08T10:21:33Z DEBUG isahc::handler] [HTTP/2] [7] [accept-encoding: deflate, gzip]
[2024-02-08T10:21:33Z DEBUG isahc::handler] [HTTP/2] [7] [user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:46.0) Gecko/20100101 Firefox/46.0]
[2024-02-08T10:21:33Z DEBUG isahc::handler] [HTTP/2] [7] [accept: */*]
[2024-02-08T10:21:33Z DEBUG isahc::handler] [HTTP/2] [7] [accept-language: en-US,en;q=0.5]
[2024-02-08T10:21:33Z DEBUG isahc::handler] [HTTP/2] [7] [content-type: application/x-www-form-urlencoded]
[2024-02-08T10:21:33Z DEBUG isahc::handler] [HTTP/2] [7] [referer: https://music.163.com]
[2024-02-08T10:21:33Z DEBUG isahc::handler] [HTTP/2] [7] [cookie: os=pc; appver=2.7.1.198277; MUSIC_U=0047D1DC657D9A1740010713ACCC91AF92562C426944EB9DB134396C6644FAE630CD5AFE734B5CF8DEC0B2292DD27A6921766D2FC384112E2DACB54D49DE6B8D75C571FABE8BF81E93113D9BEA0298DD8405C0C0E2923E4FF4E720626E0B795624450A1FE8CFDBE9166A82113886406B8C8FE0E5AE05BA8A9D656DE8E6C1AF79D5C038D390F00EE5249A37DC53A087926A680F3F947D9EC5A4C4A65DEF3977D73C067A08C4CCA8D556D91EF64D72EEEA14755E37A7451EF5F7B6EBA895E691D28CAB888397BDC8695A003AA73C585724BBEBBD689F908BE632A8BF4FC668FD8A31B4E974567731A14FAF55EEFC558A34CE443AD59B763BF43777775B67C59CDBD9DCE34761290A4FC8E3CEBDA6A855D75FDE0697BB10A469D501DE5CE02B75D12A646B739CE00A93EC96EE30BDAE7F132F4A98CC556DA5E882F5ED88037E6A81D1; NMTID=00Oe3KKPInmu24xn0iXm6FHp6iwe0EAAAGNiDpjoA; __csrf=b713db09481e9f426f111ee6ce04fce3]
[2024-02-08T10:21:33Z DEBUG isahc::handler] [HTTP/2] [7] [content-length: 360]
[2024-02-08T10:21:33Z DEBUG isahc::handler] We are completely uploaded and fine
[2024-02-08T10:21:33Z DEBUG isahc::handler] Connection #2 to host interface3.music.163.com left intact
[2024-02-08T10:21:33Z DEBUG netease_cloud_music_gtk4::application] 获取歌曲播放链接: [SongUrl { id: 1953104779, url: "http://m701.music.126.net/20240208184633/1dc442dad0e1f0c0a77121a832ea7556/jdymusic/obj/wo3DlMOGwrbDjj7DisKw/14841877892/4f78/8082/f092/cc5d0a94cc329a9e557e8aac2525f650.mp3", rate: 128000 }]
[2024-02-08T10:21:33Z DEBUG netease_cloud_music_gtk4::application] 播放歌曲: SongInfo { id: 1953104779, name: "越权访问-崩坏:星穹铁道", singer: "Hanser", album: "《崩坏:星穹铁道》银狼原创曲手书「越权访问」", album_id: 145975786, pic_url: "http://p4.music.126.net/OXXr7tRkox7OlpIvcaZuCg==/109951167507831115.jpg", duration: 185567, song_url: "http://m701.music.126.net/20240208184633/1dc442dad0e1f0c0a77121a832ea7556/jdymusic/obj/wo3DlMOGwrbDjj7DisKw/14841877892/4f78/8082/f092/cc5d0a94cc329a9e557e8aac2525f650.mp3", copyright: Free }

To Reproduce Steps to reproduce the behavior:

  1. 登录账户
  2. 播放歌曲
  3. See error

Expected behavior 所有歌曲都能正常播放

Screenshots 中间会闪过一个报错,不是很好截图到 2024-02-08T17:47:17,850083357+08:00

Desktop (please complete the following information):

Additional context 这是在更新2.3.0( https://github.com/NixOS/nixpkgs/pull/287212 )时发现的。2.2.0的更新也是我做的,当时测试歌曲应该能正常播放。现在拉取2.2.0的nixpkgs的commit(也就是说所有依赖版本和当时严格一致)可以复现同样的log,说明应该不是nix环境的问题,可能是上游API改变。之后请另外几个人测试了2.3.0,在挂代理(有异常登录提示,确认了)和不挂代理时测试了,均得到了相同的结果。

gstreamer的几个plugin已经添加依赖项了,ldd可以看到它们是正确链接的。

gmg137 commented 5 months ago

刚测试了下Campfire,在我的电脑可以正常播放,上游接口应该没问题。

打开调试在日志里可以看到歌曲的mp3链接,你试下直接用 gst-play 在命令行播放这个链接,看是否正常?

Aleksanaa commented 5 months ago

确实,链接复制出来可以播放,但是没有看到相关的错误日志

Aleksanaa commented 5 months ago

哦我知道了,libsoup3是ldopen的,需要加进LD_LIBRARY_PATH,这个问题之前见到过