LizardByte / Sunshine

Self-hosted game stream host for Moonlight.
http://app.lizardbyte.dev/Sunshine/
GNU General Public License v3.0
19.12k stars 930 forks source link

Taskbar icon sometimes unresponsive #2065

Open ericswpark opened 9 months ago

ericswpark commented 9 months ago

Is there an existing issue for this?

Is your issue described in the documentation?

Is your issue present in the nightly release?

Describe the Bug

Sometimes right-clicking on the Sunshine taskbar icon does nothing

Expected Behavior

The taskbar context menu should show up

Additional Context

No response

Host Operating System

Windows

Operating System Version

11 23H2 (OS Build 22631.3007)

Architecture

64 bit

Sunshine commit or version

0.21.0

Package

Windows - Winget (Third Party)

GPU Type

Nvidia

GPU Model

RTX 3070 Ti

GPU Driver/Mesa Version

546.33

Capture Method (Linux Only)

No response

Config

origin_web_ui_allowed = pc

Apps

No response

Relevant log output

N/A
ReenigneArcher commented 9 months ago

This might just be a windows issue... does restarting "explorer.exe" resolve it?

ericswpark commented 9 months ago

Nope, it does not. And other taskbar icons work just fine.

predprey2 commented 8 months ago

I noticed the same issue too, since the earlier versions after the icon context menu was implemented. Restarting the service would workaround it though.

~I think it’s normally stuck in the streaming mode~. Also I normally power off all my display intermittently, not sure if that would be an issue. Finally, I think it normally happens after the service has been running for a long while, but I have all logging turned off, so that shouldn‘t be an issue.

ReenigneArcher commented 8 months ago

I normally power off all my display intermittently, not sure if that would be an issue.

It shouldn't have any effect on the tray icon, unless Sunshine is completely crashing.

ReenigneArcher commented 8 months ago

Please provide logs, or this will need to be closed.

predprey2 commented 7 months ago

Been using 0.21.0.5606840c8983b714a0e442c42d887a49807715e1, haven't encountered the issue for a week plus or so. Maybe one of the updates fixed it.

ericswpark commented 7 months ago

@predprey2 I'm still getting the issue on Sunshine version 0.22.0.

@ReenigneArcher here are the logs: https://gist.github.com/ericswpark/44427feea630febc9410270acabb2917 Although I don't see anything that is related.

I don't know if this is a reliable reproduction method, but in most cases I launched a session (Desktop app) with a client, then closed the session, without quitting the Desktop app. Then I left it like that for a couple of hours and the taskbar icon went unresponsive.

yebr commented 7 months ago

same bug,need restarting service then resume fine.

Darkhost1999 commented 6 months ago

I haven't been able to launch Sunshine from the taskbar at all for some time. Saw the changelog notes for the fix and was like yay! Went to test and found it wasn't fixed. Since launching from the app drawer isn't recommended but is my only way to launch the Sunshine interface I launch from the start menus app drawer if necessary which is just about never cause Sunshine is set as a startup app. Restart, quit, donate works fine. It's only open Sunshine that doesn't work.

ReenigneArcher commented 6 months ago

I haven't been able to launch Sunshine from the taskbar at all for some time. Saw the changelog notes for the fix and was like yay! Went to test and found it wasn't fixed. Since launching from the app drawer isn't recommended but is my only way to launch the Sunshine interface I launch from the start menus app drawer if necessary which is just about never cause Sunshine is set as a startup app. Restart, quit, donate works fine. It's only open Sunshine that doesn't work.

It is recommended to run Sunshine as a service, which is the default when using our installer.

Darkhost1999 commented 6 months ago

It is recommended to run Sunshine as a service, which is the default when using our installer.

That sounds correct, and that's how I have Sunshine set up. It starts automatically, runs automatically, and requires almost no configuration except for entering a PIN to authorize a device.

However, I've noticed that I can't use the "Open Sunshine" option from the Windows taskbar background processes drawer. The "Restart," "Donate," and "Quit" options work fine.

The logs indicate that the URL opens successfully and mention my Firefox installation, but the URL doesn't actually open. I have to either memorize the URL or open Sunshine from the Start menu app drawer to access the web interface.

Darkhost1999 commented 6 months ago

This morning approximately 7 hours ago I installed the nightly version 0.23.0.b4e6873649882ab0b9cd8b88e7d45e04f212cba6 and confirmed I was still experiencing the issue. All that I've changed since then is to install Moonlight from the Google Play Store instead of from the GitHub release tab and join Moonlight beta.

Just now when I tried opening from the taskbar it failed. I used the restart button on the taskbar and open again. Failed again. But when I opened the web interface from the start menu -> app drawer and clicked troubleshooting -> restart Sunshine now it seems the taskbar is working fine. Someone indicated this above in an earlier message I just thought they meant they hit restart in the taskbar icon. No, that doesn't work but restarting from the web interface does. To conclude, I restarted my PC and confirmed I'm not getting the issue anymore. I don't know if this is the same issue everyone else is having here in this ticket.

ReenigneArcher commented 6 months ago

You said you have it set as a startup app, which is not the same as a service. I think you had/have multiple instances of Sunshine running. One as a service and one as a "startup app"... I believe that is what is causing your problems.

ericswpark commented 6 months ago

FWIW @ReenigneArcher I'm the OP of the issue and I always had Sunshine running as a service. I don't think it's a multiple instance issue on my part.

tvoracek commented 5 months ago

Still happening on Version 0.23.1.9288775351dc04c1b3b09d6fe432096e7571396f.

ns6089 commented 5 months ago

I think there's rare deadlock in sunshine's tray thread, been there since notifications got introduced. Notifications stop appearing, and right-clicking on the tray icon doesn't bring up the menu. I trigger it semi-consistently once in a couple of days, just usually don't pay attention since streaming continues to work fine, it's only the tray icon.

LizardByte-bot commented 2 months ago

It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks!

ericswpark commented 2 months ago

Pretty sure it's still an issue, please leave it open

psyke83 commented 2 months ago

In case it helps troubleshooting efforts, this happens on my Windows 11 system on almost every boot. I suspect the unusually high failure rate is due to my streaming PC's user account being configured for automatic login.

ns6089 commented 2 months ago

@psyke83 I'm reproducing it 100% reliably on windows 10 too now, auto-login as well. But still have no idea what actually causes it. And iterating is slow because of the reboots...

Emtee88 commented 1 month ago

Same problem here. Hosting on Surface Go 4.

I found this problem (1st time happening) because I was starting moonlight to connect to my Surface, but it couldnt find it!

Before unlocking my surface, I made sure that the wifi was still on, so i tried pinging it. Ok, nothing wrong with wifi. I opened up my surface and unlocked it, just realizing that the tray icon is totally stuck.

Restarting service fixed it. First time happening here. I guess I cannot phase out RDP just yet, this is unreliable.