Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

Taskbar icon sometimes unresponsive

Open ericswpark opened this issue 2 years ago • 28 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Is your issue described in the documentation?

  • [X] I have read the documentation

Is your issue present in the nightly release?

  • [X] This issue is 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

ericswpark avatar Jan 25 '24 23:01 ericswpark

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

ReenigneArcher avatar Jan 25 '24 23:01 ReenigneArcher

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

ericswpark avatar Jan 26 '24 13:01 ericswpark

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.

predprey2 avatar Feb 20 '24 07:02 predprey2

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 avatar Feb 29 '24 14:02 ReenigneArcher

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

ReenigneArcher avatar Feb 29 '24 14:02 ReenigneArcher

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

predprey2 avatar Mar 09 '24 12:03 predprey2

@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.

ericswpark avatar Mar 09 '24 13:03 ericswpark

same bug,need restarting service then resume fine.

yebr avatar Mar 22 '24 09:03 yebr

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.

Darkhost1999 avatar Apr 20 '24 07:04 Darkhost1999

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.

ReenigneArcher avatar Apr 20 '24 12:04 ReenigneArcher

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 avatar Apr 20 '24 14:04 Darkhost1999

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.

Darkhost1999 avatar Apr 20 '24 14:04 Darkhost1999

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.

ReenigneArcher avatar Apr 20 '24 14:04 ReenigneArcher

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.

ericswpark avatar Apr 20 '24 15:04 ericswpark

Still happening on Version 0.23.1.9288775351dc04c1b3b09d6fe432096e7571396f.

tvoracek avatar May 05 '24 19:05 tvoracek

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.

ns6089 avatar May 08 '24 17:05 ns6089

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!

LizardByte-bot avatar Aug 07 '24 10:08 LizardByte-bot

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

ericswpark avatar Aug 07 '24 12:08 ericswpark

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.

psyke83 avatar Aug 14 '24 14:08 psyke83

@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...

ns6089 avatar Aug 14 '24 14:08 ns6089