moonlight-android icon indicating copy to clipboard operation
moonlight-android copied to clipboard

"Lost connection to PC" when Game Count ~47

Open n1ckn4m3 opened this issue 10 years ago • 30 comments

I'm using a GPD XD with the latest SVN moonlight client, running GFE 2.8.1.21. When my list of games in GFE is greater than 47, attempting to connect via the Android client brings a 'Lost connection to PC' error message and the nVidia Streamer Service and nVidia Streamer Network Service stop without generating any errors in the event log.

If I remove a game from the library, stop NvBackend.exe, delete the GFE game cache files (%LocalAppData%\NVIDIA\NvBackend\journalBS.jour.dat and %LocalAppData%\NVIDIA\NvBackend\journalBS.main.xml), then restart the nVidia Streamer Service and GeForce Experience, I can again connect.

It doesn't seem to matter what game the 48th game is, I've removed multiples and tried multiples to see if any combination of games let me have more than 47 successfully, but in every case it crashes the nVidia Streamer Service and fails to connect.

EDIT: I've noticed that I can sometimes manually add games to SHIELD streaming without adding them to the GFE games list and it doesn't seem to cause the client to disconnect or the streamer services to crash unless I add box art, and not all box art makes it crash. Some larger pixel size (e.g., 3000x2000, way bigger than necessary anyways) would cause it to crash.

I wonder if GFE is just piping boxart that is too much for the GPD XD's 2GB of RAM?

Of other note, this is the rooted .APK. I had the same issue with the non-rooted .APK as well.

n1ckn4m3 avatar Jan 04 '16 01:01 n1ckn4m3

I'm experiencing the exact same issue.

I try to stream to my Amazon Fire TV (2nd gen). First i thought its a wireless issue but even wired it is the same thing.

DStBone avatar Jan 05 '16 17:01 DStBone

+1 Same issue with 53 games in GFE

edit: forgot to add some details

Device: Nexus 10 Host: I7-6700K, 16GB ram, GTX 970 OS: Windows 10 GFE: 2.8.1.21 Driver: 361.43

ghost avatar Jan 10 '16 12:01 ghost

I have the same exact problem. In the last days I ve been trying to find why this connection loss was happening. Fortunately I read this topic and now I understand the bug

ecranegro avatar Jan 12 '16 19:01 ecranegro

This might be the issue I'm having, I'm trying moonlight for the first time and "Nvidia Streamer Network Service" is exiting. This does NOT happen when I use my Nvidia Shield Portable, it gets the games fine. I have well over 48 games in my streaming list.

GFE: 2.9.1.22 OS: Windows 7 Pro Driver: 361.43

ManiacDC avatar Jan 22 '16 21:01 ManiacDC

I was having this issue and switching back to GFE 2.5 fixed it. Not sure if it's the same issue though...

OOPMan avatar Jan 23 '16 14:01 OOPMan

@cgutman I just did some testing and can conform that this does seem to be an issue tied to GFE >= 2.8 in conjunction with having more than a certain number of games in the library.

I tested with GFE 2.5, 2.8 and 2.9 in conjunction with two Android devices, my Note 10.1 (2014) and my XTreamer Prodigy 4K.

Under GFE 2.8 and 2.9 if I refresh the game list in GFE then attempt to connect with either Android device error "Connection to PC lost" occurs after Moonlight spends roughly a minute or so trying to sync the list of games from GFE.

This issue does not occur when running GFE 2.5. The issue also doesn't occur running GFE 2.8+ if I do not instruct GFE to scan my PC for games and simply allow it to only present Steam as an option for streaming.

The OP for this issue, @n1ckn4m3 theorized that the issue was related to the amount of RAM in his Android device but I'm not sure this is the cause of the issue (Unless the amount data sent from GFE to Moonlight during the sync process increased massively). Maybe there is some kind of infinite loop issue or something else due to some change in the data structures between GFE 2.5 and 2.8?

If possible this issue should be marked as high priority since the only ways around it are a pain...

OOPMan avatar Jan 23 '16 18:01 OOPMan

BTW, Moonlight PC also won't get the game list for me... might be the same issue.

ManiacDC avatar Jan 24 '16 03:01 ManiacDC

Here is my nvstreamsvc folder: https://drive.google.com/file/d/0B4sy4xxp8QsmMU5IQ3NPWVQxT00/view?usp=sharing

ManiacDC avatar Jan 24 '16 03:01 ManiacDC

@ManiacDC I imagine it is the same issue. This problem has now been posted in about 4 separate issues with various titles...

OOPMan avatar Jan 24 '16 04:01 OOPMan

This issue seems to be that when the app list response size gets too large, GFE throws a 500 internal server error back. GFE 2.8 added SOPS (resolution and FPS info) to each app, increasing the size of the response per app significantly. I was able to reproduce the issue with SHIELD Hub when using PIN based pairing on my Portable.

The bug isn't in Moonlight; it's in GFE's server. There's no workaround possible besides reducing the number of games in the list, but I've filed a bug with NVIDIA for the PIN-based repro with SHIELD Hub. For some reason, it doesn't happen when using account-based pairing.

@ManiacDC Can you confirm that if you remove your account from SHIELD Hub and pair via PIN (located in the settings of SHIELD Hub) that you also can't load the app list?

cgutman avatar Jan 24 '16 07:01 cgutman

@cgutman Good to know we have some clarity on this. Sounds like the GFE server is up to shit...

OOPMan avatar Jan 24 '16 08:01 OOPMan

@cgutman Is it possible to use account-based sharing with Moonlight?

OOPMan avatar Jan 24 '16 09:01 OOPMan

@cgutman Correct I can't load the app list when using pin based sharing on my shield portable, though the service doesn't seem to be crashing. Should I also report something to nvidia?

ManiacDC avatar Jan 24 '16 19:01 ManiacDC

@cgutman Any idea whether Nvidia have fixed this in GFE 2.10 or 2.11?

OOPMan avatar Feb 21 '16 20:02 OOPMan

I had to roll back to GFE 2.10 to get anything to Stream on any of my devices (Android, iOS, and Raspberry Pi).

djrockgt avatar Feb 21 '16 21:02 djrockgt

@cgutman I just tested with GFE 2.10 and it seems like this issue has been fixed. My GFE currently lists 51 games detected and I was able to connect with the latest version of Moonlight. Moonlight display 65 games in the list of stream-able games. I'm not sure what the disconnect is there but comparing the two game lists a bunch of indie games that GFE doesn't bother to optimise but seems happy to stream are display.

@ManiacDC @DStBone @ecranegro @TehRainbowGuy @n1ckn4m3 Can you guys confirm the issue is fixed with GFE 2.10 and the most recent Moonlight?

OOPMan avatar Feb 25 '16 08:02 OOPMan

I can confirm it now works with GFE 2.10.2.40 and Moonlight 4.5.3.

ghost avatar Feb 25 '16 10:02 ghost

Nice! Good to know that Nvidia actually fix their bugs ;-)

OOPMan avatar Feb 25 '16 10:02 OOPMan

Sorry, I since reformatted my PC and I don't have so many games installed now ...

I did verify that I can see the applist on Moonlight PC now though, but I only have 25 games installed.

ManiacDC avatar Feb 25 '16 15:02 ManiacDC

I think this can be closed - I had this problem and don't have it any more. Tested from OS X client and Android client. I'll confirm the NVidia versions after (if) the system comes back up after updates.

ghost avatar Mar 11 '16 06:03 ghost