Connection cut off after I hit a button
Please provide the following info.
**_NVidia Geforce Experience version: 3.4.0.70 **Moonlight Embedded version: 2.3.0 **Moonlight Embedded running on: Raspberry Pi 3 via shortcut in RetroPie **Output of Moonlight Embedded: segmentation fault, several numbers displayed
What is the expected result? running as usual What happens instead of that? connection is cut off
I updated to moonlight embedded 2.3.0 today.
When I start streaming, it does connect and opens the startscreen of steam. It works and does play the music until I hit any button or the directional pad (xbox360 wireless controller) and then the connection is cut off, saying "segmentation fault".
With the previous version I hadn't any problems at all.
Edit: If I avoid using the xbox360 wireless Controller, using keyboard and mouse, it works, until I press any button / direction on the x360 controller. Do I have to reconfigure / remap it? Steam detects XInput correctly, but when I hit a button, I'm out...
Moonlight Embedded 2.3.0 works fine with controllers on ArchLinux ARM. So probably there is something wrong with the Debian build or your setup. But there is not much to go on if you only provide a very general error string "Segmentation Fault"
I'm sorry, don't know where to find a logfile for further Information. If I start moonlight, steam big picture mode appears and plays the background Music. If I hit any button or directions on the xbox360 wireless controller, streaming stops and then I can read "851 segmentation fault" or "868 segmentation fault" or "886 segmentation fault" - the number changes everytime I try it again.
If I move the thumbsticks or hit buttons while moonlight is starting (RTSP handshake, initializing and starting the streams) i get the notice: "Error - cannot keep up".
I use RetroPie 4.1.26 (premade image for the pi) and start moonlight out of the RetroPie Surface using a shortcut with the following commands after the IP: -1080 -60 fps -Bitrate -surround -mapping /(location of my mapping file) -app Steam
With all previous versions of Moonlight the controller and the streaming worked without any problems. In RetroPie itself and all the emulators there are also no problems.
If I start Moonlight without the "-mapping" command, it also stops streaming when I hit any button, saying "unmapped button".
Did I anything wrong updating from existing Moonlight 2.2.3 to Moonlight 2.3.0 just using: "sudo apt-get update" followed by "sudo apt-get install moonlight-embedded"?
You can try to run sudo apt-get upgrade to do a full system upgrade. After installing Raspbian I can only confirm the Debian build is still working fine with gamepads.
Ok, thank you. In order to upgrade, I first had to run sudo apt-get autoremove. Otherwise it did nothing, only saying, that there are packages no longer required. After autoremove I was able to run sudo apt-get upgrade. Then I ran sudo apt-get update.
But in the end I got the same issue... it crashes back to the RetroPie menu as soon as I hit a button / direction... I noticed today that after the the segmentation fault is displayed, it says that moonlight 2.2.2 was started. I'll try now installing moonlight 2.3.0 by downloading and compiling. Perhaps there is a problem by just doing the update.
Edit: Hours later... I'm stuck. Compiling the newest CMake I get:
pi@retropie:~/moonlight-embedded-2.3.0/build $ sudo cmake ../ -- Could NOT find Freescale (missing: FREESCALE_INCLUDE_DIR KERNEL_INCLUDE_DIR VPU_LIBRARY) -- Could NOT find Amlogic (missing: AMLOGIC_INCLUDE_DIR AMCODEC_LIBRARY AMADEC_LIBRARY AMAVUTILS_LIBRARY) -- Checking for module 'sdl2>=2.0.4' -- Found sdl2, version 2.0.5 -- Checking for module 'libavcodec' -- Found libavcodec, version 56.1.0 -- Checking for module 'libavutil' -- Found libavutil, version 54.3.0 -- Checking for module 'x11-xcb' -- Found x11-xcb, version 1.6.2 -- Checking for module 'vdpau' -- Found vdpau, version 1.1.1 -- Checking for module 'libpulse-simple' -- Found libpulse-simple, version 5.0 -- Checking for module 'libcec>=3.0.0' -- Found libcec, version 3.0.1 -- Configuring done -- Generating done -- Build files have been written to: /home/pi/moonlight-embedded-2.3.0/build
Freescale and AMLogic missing...
Running make:
pi@retropie:~/moonlight-embedded-2.3.0/build $ sudo make [ 1%] Building C object libgamestream/CMakeFiles/moonlight-common.dir//third_party/moonlight-common-c/reedsolomon/rs.c.o /home/pi/moonlight-embedded-2.3.0/third_party/moonlight-common-c/reedsolomon/rs.c: In function ‘reed_solomon_new’: /home/pi/moonlight-embedded-2.3.0/third_party/moonlight-common-c/reedsolomon/rs.c:417:9: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for (int row = 0; row < rs->shards; row++) { ^ /home/pi/moonlight-embedded-2.3.0/third_party/moonlight-common-c/reedsolomon/rs.c:417:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code /home/pi/moonlight-embedded-2.3.0/third_party/moonlight-common-c/reedsolomon/rs.c:418:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for (int col = 0; col < data_shards; col++) ^ /home/pi/moonlight-embedded-2.3.0/third_party/moonlight-common-c/reedsolomon/rs.c:437:9: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for (int j = 0; j < parity_shards; j++) { ^ /home/pi/moonlight-embedded-2.3.0/third_party/moonlight-common-c/reedsolomon/rs.c:438:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for (int i = 0; i < data_shards; i++) ^ libgamestream/CMakeFiles/moonlight-common.dir/build.make:470: recipe for target 'libgamestream/CMakeFiles/moonlight-common.dir//third_party/moonlight-common-c/reedsolomon/rs.c.o' failed make[2]: *** [libgamestream/CMakeFiles/moonlight-common.dir/__/third_party/moonlight-common-c/reedsolomon/rs.c.o] Error 1 CMakeFiles/Makefile2:200: recipe for target 'libgamestream/CMakeFiles/moonlight-common.dir/all' failed make[1]: *** [libgamestream/CMakeFiles/moonlight-common.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2
Something with reedsolomon - cannot compile...
How do I downgrade to Moonlight 2.2.3 or solve the reedsolomon-issue? I'm thinking about giving up and using my laptop and Steam Inhome Streaming or just buying a long HDMI-cable...
Edit2: I've tried an old "Impact Colour Rumble Pad" USB-Controller. Works perfect with the RetroPie menu and the emulators, but there is the same after starting Moonlight. :-(
Edit3: Tried to compile Moonlight 2.2.3, getting the error:
pi@retropie:~/moonlight-embedded-2.2.3/build $ sudo make install [ 32%] Built target moonlight-common [ 51%] Built target gamestream [ 61%] Built target moonlight-pi [ 63%] Building C object CMakeFiles/moonlight.dir/src/input/cec.c.o /home/pi/moonlight-embedded-2.2.3/src/input/cec.c: In function ‘cec_init’: /home/pi/moonlight-embedded-2.2.3/src/input/cec.c:80:14: error: ‘ICECCallbacks’ has no member named ‘keyPress’ g_callbacks.keyPress = &on_cec_keypress; ^ CMakeFiles/moonlight.dir/build.make:230: recipe for target 'CMakeFiles/moonlight.dir/src/input/cec.c.o' failed make[2]: *** [CMakeFiles/moonlight.dir/src/input/cec.c.o] Error 1 CMakeFiles/Makefile2:106: recipe for target 'CMakeFiles/moonlight.dir/all' failed make[1]: *** [CMakeFiles/moonlight.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2
So something is wrong with the input.
Edit4:
I managed it to compile Moonlight 2.2.2 100% and now it says: libcec.so.3 cannot open shared object file: no such file or Directory (2 times) and: failed to initialize libcec Interface after starting the stream and hitting a buton: segmentation fault...
Why CEC now? I already tried the second HDIM-port on my Sony - no change. Perhaps it has also CEC.
Older versions of Moonlight-embedded can just be obtained from http://archive.itimmer.nl/raspbian/moonlight/pool/main/m/moonlight-embedded/ and installed with dpkg -i "deb filename" There are some obstacles with compiling because of the old versions Debian is using. Therefore libcec is disabled in my builds for Debian and I'm using a patch from debian/patches/install.patch (in the raspbian/jessie branch) to fix issues with compiling and cmake.
How do I install the patch? I'm to stupid, sorry. Somehow now I cannot connect anymore. "Server not found". I whish I simply could uninstall moonlight-embedded completeliy and then reinstall it, but I don't know how to do. After "sudo apt-get remove moonlight-embedded" it is still there, because it knows the command "moonlight".
A patch can be applied to the sourcecode using patch -p1 < "filename patch". But since moonlight is still available after removal you probably had installed multiple versions of Moonlight Embedded at the same time. For example a package version and a self-compiled version. Which explains why you get a segmentation fault as the code for sending buttons has changed and probably a older version of an helper library got loaded. You have to remove all libgamestream.so and libmoonlight-common.so and the moonlight binary from your system before reinstalling Moonlight Embedded. You can locate the path of the binary using which moonlight