Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interacting with certain UI elements of Apple Music causes the scraper to break #105

Closed
21mtd opened this issue May 9, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@21mtd
Copy link

21mtd commented May 9, 2024

Version Info
AMWin-RP v1.4.5 (region: VN)
Apple Music 1.4.6.85 (1.1030.21762.0)

Describe the bug

Open a song context menu (right click or click ... of a song in a playlist)
image
or ... of the current song info
image

Apple Music song panel is not initialised or missing bug appears in log, which also kills the RP.

  • If you close it fast, the bug goes away by itself, RP resumed.
  • If you choose Add to playlist then pick a playlist, the bug persists until you restart Apple Music app.

This happens in previous AMWin versions too I think.

Log Files
image

@jwl-7
Copy link

jwl-7 commented May 17, 2024

This issue occurs after opening any context menu in Apple Music. The problem is Windows Automation UI will no longer find the "bridge" child window with the classname Microsoft.UI.Content.DesktopChildSiteBridge. I used inspect.exe to analyze the windows for any changes. When a context menu is opened, a new PopupHost pane appears as the very next child window under the main Apple Music window. While this appears to be the only tree structure change, you'll find that you cannot navigate to the 'bridge' window as a sibling from any other panel on the same level.

System Info:

  • Windows 11 23H2
  • Apple Music 1.1030.21762.0

@PierreSchwang
Copy link

I'm currently having similar issues and can reproduce that. Interestingly, using EnumChildWindows from the win32 API, I can at least find the window (though it takes tremendously longer). But I can't work with that window handle either. I'm using https://github.com/mmarquee/ui-automation and convert the HWND from JNA back into a Wrapper from the library but can't access any descendants whatsoever.

Using "Accessibility Insights for Windows" by Microsoft all Elements including their properties can still be accessed - so I guess it would be interesting to know how they resolve all elements and children. It is Open Source, but I'm not that fit in C# / .NET and have no idea where to look remotely: https://github.com/microsoft/accessibility-insights-windows

@PKBeam PKBeam added the bug Something isn't working label Oct 6, 2024
@PKBeam PKBeam changed the title Open context menu (right click a song) causes Apple Music song panel missing Interacting with certain UI elements of Apple Music causes the scraper to break Oct 7, 2024
@PKBeam
Copy link
Owner

PKBeam commented Oct 7, 2024

This should be fixed in the next release.

@PKBeam
Copy link
Owner

PKBeam commented Oct 7, 2024

Fixed in 1.4.9.

Feel free to reopen if you still have this issue.

@PKBeam PKBeam closed this as completed Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants