exelix11 / SysDVR

Stream switch games to your PC via USB or network
GNU General Public License v2.0
1.48k stars 89 forks source link

[Bug] Switch: Long switch #132

Closed User8395 closed 2 years ago

User8395 commented 3 years ago

Describe the bug SysDVR is taking a long time to switch modes

To Reproduce Open SysDVR via hbmenu, then switch mode and re open.

Expected behavior I open a game, and go back to SysDVR, then it gives me the mode menu and I can connect

Setup information

Additional context None

exelix11 commented 3 years ago

Do you mean the "Sysdvr is switching modes, launch a game to complete the process" message ? It happens because if you switch modes while streaming or try to connect while there's no game running sysdvr will try to get a frame from the game and get stuck as the game is paused/not running so not producing any. The solution is, as the messaage says, to launch a compatible game so sysdvr can complete the operation. The preferred way would be to use the homebrew launcher with title takeover on a game that supports video recording, that will prevent this message from happening.

User8395 commented 3 years ago

I launched Splatoon 2 and completed a level. I come back to SysDVR and it still gives me the message.

The preferred way would be to use the homebrew launcher with title takeover on a game that supports video recording, that will prevent this message from happening.

What do you mean by "title takeover"?

lKomus commented 3 years ago

I also have this problem, I believe this happened as early as v4.0.1.

To give more details: this doesn't happen every time you switch modes. Sometimes, when you switch between modes in the settings app, it will stay stuck switching modes and you can't do anything about it.

In the old version of the settings app, it would say a message like Sys-DVR couldn't respond (I don't remember clearly.)

I remember that using the Sys-DVR client while it's stuck gives an error.

I have tried booting multiple games but it does nothing. The only way to "solve" this is to reboot your Switch.

exelix11 commented 3 years ago

What do you mean by "title takeover"?

Press R while launching a game launches the homebrew menu with full ram access and recording support depending on the game you use as base.

The way lKomus described it i think i might have observed this behavior as well some times but in dev builds it's hard to say, guess as there's two different reports now i'll try to do some tests.

To be clear does this happen when using the settings app with title takeover or just with the album applet ?

lKomus commented 3 years ago

It's been a while since I've done this... I would have probably used the album applet but I'd say 90% of the time it doesn't get stuck. I remember trying to report this and finding a sure way to trigger this and I couldn't find anything. It just happened randomly, I would try to switch modes 5 times in a row and things would be normal. Can't be more helpful than that sadly.

The reason I would switch modes is that I typically use USB to stream with Sys-DVR but then I would launch another homebrew that uses USB, so I'd make Sys-DVR use another mode. Then when I'm done I would switch back to USB. That's how I noticed that Sys-DVR sometimes gets stuck switching modes.

exelix11 commented 3 years ago

All i can say is that the first condition to trigger this is to get the "launch a game to complete the operation" message, and to do that you need to open the home menu while streaming so sysdvr gets stuck waiting for video data. At that point switch modes, then relaunch the settings app right away and you'll get that message. Pretty sure it doesn't happen with title takeover cause that will keep sending frames to sysdvr while switching. Thing is this is a scenario i test and works fine for me so you probably need to do it with a specific timing or other steps in between to get stuck like this.

gianmef commented 2 years ago

hey just chiming in because I've been having this followed by atmosphere panic error when I try to reboot to payload, (I know this is an old topic, sorry if I shouldn't be answering here) I'm always using title takeover to access the homebrew menu. I'm not sure if this is related since I only did it once, but when I switched to USB mode and set it to be the "on boot" option I had no problem. when I try to switch to TCP it seem to be always stuck on the "switching modes" screen and after I open any game it still won't change. I will try to set it to be "on boot" later, to check if it works. when I tried to reboot to payload on the homebrew menu (my file is set to reboot directly to hekate) it displayed an panic error on atmosphere, but after the reboot the sysdvr settings went back to usual (it works as USB, my on boot option, but I still can't change to TCP).

exelix11 commented 2 years ago

Latest release should fix this issue.