PKBeam / AMWin-RP

A Discord Rich Presence client for Apple Music's native Windows app.
GNU General Public License v3.0
509 stars 27 forks source link

Song recognition stops when Mini Player is open, can also cause Apple Music to become unresponsive with certain songs. #86

Closed RobinPerson closed 7 months ago

RobinPerson commented 7 months ago

Version Info Apple Music version 1.4.4.41 (1.1028.10497.0) AMWin-RP version 1.3.0

Describe the bug With AMWin-RP running, when the Mini Player is opened, it'll minimize the main Apple Music window and the recognized song for the Discord Rich presence will get lost and stop showing. Opening the main Apple Music window will make it recognize the song again, as long as the latest interaction within Apple Music was with the main window it'll keep the song recognized. If the last interaction was with the Mini Player, it'll stop recognizing the song again. (This behavior also happens with other non-main Apple Music windows, including the Status or Equalizer windows).

Additionally, with certain songs, while AMWin-RP is running, after opening the Mini Player and interacting with any of the Apple Music windows can cause Apple Music to freeze and become unresponsive. The song that triggers this for me is Rebirth by Savant & Julie Elven.

Have the symptoms of this bug already been reported in another issue? Not as far as I'm aware.

Log Files 2024-03-01.log

PKBeam commented 7 months ago

Likely the same issue as #83

PKBeam commented 7 months ago

should be fixed in v1.4.0.

RobinPerson commented 7 months ago

Seems that Apple Music becoming unresponsive with some songs while the Mini Player open and AMWin-RP is running is still an issue with v1.4.0.

image 2024-03-02.log

[09:58:31] Something went wrong while scraping: System.Runtime.InteropServices.COMException (0x80131505): 0x80131505
   at Interop.UIAutomationClient.IUIAutomationElement.FindAll(TreeScope scope, IUIAutomationCondition condition)
   at AMWin_RichPresence.AppleMusicClientScraper.FindFirstDescendantWithAutomationId(AutomationElement baseElement, String id)
   at AMWin_RichPresence.AppleMusicClientScraper.GetAppleMusicInfo()
   at AMWin_RichPresence.AppleMusicClientScraper.Refresh(Object source, ElapsedEventArgs e)
[09:58:36] Apple Music song panel (TransportBar) is not initialised or missing

I've found a few different songs that also cause this behavior, one of them is Yesterday by No Mana.

21mtd commented 6 months ago

can confirm those 2 songs also freezed my AM.

I notice both of them don't have Live Lyrics, maybe that's the cause? image

Pupalei commented 6 months ago

If it's song related, it's a LOT of songs. I simply can't use the mini player with any consistency when AMWin is running (AMWin is always running :-).

21mtd commented 6 months ago

can confirm those 2 songs also freezed my AM.

I notice both of them don't have Live Lyrics, maybe that's the cause? image

It's freezed again, and guess what, a song with no Live Lyrics https://music.apple.com/us/album/bad-romance/1699077081?i=1699077403

Pupalei commented 6 months ago

Nice find!