moonlight-stream / moonlight-qt

GameStream client for PCs (Windows, Mac, Linux, and Steam Link)
GNU General Public License v3.0
10.31k stars 603 forks source link

Can't find app #238

Closed eregnier closed 5 years ago

eregnier commented 5 years ago

Describe the bug The moonlight command always exit and returns Can't find app XXX

Steps to reproduce I setup a batocera distribution on a PC that is a linux for retrogaming. It includes the moonlight app that seems to work for many peoples, However, on my side when I run any app in the listed ones (or the manually added ones) and I run them, the error messages in the logs says that app are not found.

Screenshots If applicable, add screenshots to help explain your problem. If the issue is related to video glitching or poor quality, please include screenshots.

Affected games all

Moonlight settings (please complete the following information) Settings are default ones of batocera distribution

https://github.com/batocera-linux/batocera.linux/blob/master/board/batocera/fsoverlay/usr/share/batocera/datainit/system/configs/moonlight/moonlight.conf

Client PC details (please complete the following information)

Server PC details (please complete the following information) windows 10

Moonlight Logs (please attach)

2019-05-27 09:50:17 INFO (emulatorlauncher.py:68):main(): Running system: moonlight
2019-05-27 09:50:17 DEBUG (unixSettings.py:21):__init__(): Creating parser for /userdata/system/recalbox.conf
2019-05-27 09:50:17 DEBUG (unixSettings.py:72):loadAll(): Looking for global.* in /userdata/system/recalbox.conf
2019-05-27 09:50:17 DEBUG (unixSettings.py:72):loadAll(): Looking for moonlight.* in /userdata/system/recalbox.conf
2019-05-27 09:50:17 DEBUG (emulatorlauncher.py:71):main(): Settings: {'core': u'moonlight', 'showFPS': 'false', 'ratio': 'auto', u'retroachievements.hardcore': u'0', u'retroachievements.verbose': u'0', 'smooth': u'1', u'retroachievements': u'0', 'bezel': 'default', 'video_threaded': False, u'retroachievements.screenshot': u'0', u'retroachievements.leaderboards': u'0', 'emulator': u'moonlight', 'rewind': True, u'shaderset': u'none', 'forceNoBezel': False, 'videomode': u'1920x1080'}
2019-05-27 09:50:17 INFO (emulatorlauncher.py:73):main(): emulator: moonlight, core: moonlight
2019-05-27 09:50:17 INFO (emulatorlauncher.py:84):main(): current video mode: 1280x720
2019-05-27 09:50:17 INFO (emulatorlauncher.py:85):main(): wanted video mode: default
2019-05-27 09:50:17 INFO (emulatorlauncher.py:90):main(): resolution: 1280x720
2019-05-27 09:50:17 INFO (emulatorlauncher.py:113):runCommand(): command: LANG=fr_FR.UTF-8 TERM=linux SHELL=/bin/sh CONSOLE=/dev/console XAUTHORITY=/userdata/system/.Xauthority XDG_DATA_DIRS=/userdata/system/configs PREVLEVEL=N label=BATOCERA PATH=/sbin:/usr/sbin:/bin:/usr/bin SHLVL=4 PWD=/ WINDOWPATH=2 RUNLEVEL=S DISPLAY=:0 BOOT_IMAGE=/boot/linux HOME=/userdata/system LC_ALL=fr_FR.UTF-8 _=/usr/bin/python INIT_VERSION=sysvinit-2.90 /usr/bin/moonlight stream -config /userdata/system/configs/moonlight/moonlight.conf -app steamcmd (buildbot_steam-relclient-win32-builder_steam_rel_client_win32@steam-relclient-win32-builder)

2019-05-27 09:50:17 INFO (emulatorlauncher.py:114):runCommand(): command: ['/usr/bin/moonlight', 'stream', '-config', '/userdata/system/configs/moonlight/moonlight.conf', '-app', 'steamcmd (buildbot_steam-relclient-win32-builder_steam_rel_client_win32@steam-relclient-win32-builder)\n']
2019-05-27 09:50:17 INFO (emulatorlauncher.py:115):runCommand(): env: {'LANG': 'fr_FR.UTF-8', 'TERM': 'linux', 'SHELL': '/bin/sh', 'CONSOLE': '/dev/console', 'XAUTHORITY': '/userdata/system/.Xauthority', 'XDG_DATA_DIRS': '/userdata/system/configs', 'PREVLEVEL': 'N', 'label': 'BATOCERA', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'SHLVL': '4', 'PWD': '/', 'WINDOWPATH': '2', 'RUNLEVEL': 'S', 'DISPLAY': ':0', 'BOOT_IMAGE': '/boot/linux', 'HOME': '/userdata/system', 'LC_ALL': 'fr_FR.UTF-8', '_': '/usr/bin/python', 'INIT_VERSION': 'sysvinit-2.90'}
Can't find app steamcmd (buildbot_steam-relclient-win32-builder_steam_rel_client_win32@steam-relclient-win32-builder)

2019-05-27 09:50:19 INFO (emulatorlauncher.py:229):<module>: Exiting configgen with status 255

Additional context Anything else you think may be relevant to the issue

I tried to add manually steam as allowed apps in nvidia geforce exerience stream menu and also tried to use existing ones. the error is the same.

The error is this Can't find app steamcmd (buildbot_steam-relclient-win32-builder_steam_rel_client_win32@steam-relclient-win32-builder I think this is some internal moonlight problem, but I don't mind what does it means : Is windows not finding the app in its path ? is it geforce configuration error ? is it client side where "app" is not properly registered ? I did not take time to explore Moonlight code at the moment to know more.

cgutman commented 5 years ago

You're using Moonlight Embedded not Moonlight Qt, so this isn't the right bug tracker for you.

However, the error is because the launcher is passing a bogus app name to moonlight. The (buildbot_steam-relclient-win32-builder_steam_rel_client_win32@steam-relclient-win32-builder) crap is from your launch command, not Moonlight itself.

Check the manually added games in GeForce Experience and assuming you didn't name your manually added app with all that build string crap in it, use the correct name in your Moonlight launch command. If you did, rename it in GFE to something more reasonable.

If the names in GFE are correct and you have no idea where it gets all the extra junk from, you should file a bug on Batocera for passing garbage data to Moonlight.