Bug: Multiple system tray icons continuously spawning (Zombie Icons)
Duplicate Check
- [x] I confirm I searched for existing reports and found no duplicates.
Describe the Bug
When the application is running, it continuously spawns new instances of the system tray icon instead of updating the existing one. This results in dozens of identical media/play icons stacking up in the Windows tray overflow menu.
Actual Behavior: The application abandons the old system tray icons without sending an exit command to Windows, creating a brand-new icon for every state change. These abandoned "zombie" icons remain in the tray until the user hovers over them with the mouse cursor, which forces Windows Explorer to manually ping and clear the dead processes.
Environment:
OS: Windows 10
Additional Context: Using MediaFlayout by https://github.com/krlvm/MediaFlyout
Steps to Reproduce
Using MediaFlayout by https://github.com/krlvm/MediaFlyout Install MediaFlayout, and start the SimpMusic (installed via install script)
Expected Behavior
Expected Behavior: The application should maintain and update a single system tray icon. Old icons should be properly destroyed/unregistered from the system tray whenever the playback state changes.
App Version
1.7.0
Android Version
Windows Laptop
Device Model
AMD R5 3500U Vega 8 iGPU
Custom ROM
- [ ] I am using a custom ROM
Custom ROM Name (if applicable)
No response
Screenshots (optional)
Log / Error Details
NA
Please update to v2.2.0 and check whether this still happens, since 1.7.0 is several releases behind. SimpMusic's own tray icon is a single round app icon, while MediaFlyout says it shows its own tray icon and hides it when nothing is playing, so the stacked play icons may be coming from MediaFlyout. Does it still happen with MediaFlyout closed? If it does, please send a screen recording of the tray while you play, pause and skip songs.
Automatic reply — the maintainer may follow up.