-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Mars Devices SNES USB] Game crash 6-8 secondes after launch on recalbox(detected&working controller, hdmi-fix installation script working for crash) #39
Comments
Thanks again for the kind words and for opening your issue here, where communication is a bit less restrained from waiting for approval for every post… Ok, so you have most likely ruled out the MCA games as the reason for the crashes, since the standard Jumpy Platformer etc. also crash. 👍 Next, could you please check the /tmp/McAirpos.log log file after a crash to check for hints about the crashes? You can also post it here if there are no obvious errors. Another thing that comes to mind from my own experience are controllers that are either configured incorrectly or with wiring issues, so that the exit button is pressed by mistake. You can rule this out by starting a game and only pressing for instance left and next time only jump, and maybe not press any buttons to see if you get same result. |
Info about the controller you are using is also useful. |
Wao, |
I just want to add that I will on break next week and I plan to design a small arcade cabinet for my co-workers with another RPi4 with a fresh install of recalbox so I'll get you udpdated about the Mc Airpos installation on this one. |
No worries, take your time. When you feel it is time, I could try to install McAirpos on the same Recalbox version image on my own RPi4 and see if something has changed from v8.0.0 and I can reproduce the crash. Either enter the Recalbox console or ssh into it from a PC and copy the log file to your /recalbox/share folder on the Recalbox. You can then find the file in the Recalbox network shared folder on your PC. Or use scp(or something similar) with same credentials as ssh to copy the log file from Recalbox to PC directly. Or ssh into Recalbox and cat log file and take a screenshot/picture of the screen. Post log file or picture here. |
Could also be worth trying to run the game with only keyboard connected and controller cable fully disconnected, just to rule out controller issue. |
Small correction from earlier, sorry:
|
So, I just tested a fresh Recalbox v8.0.2 Electron image downloaded directly from recalbox.com and flashed with Balena Etcher(which reported flash failed for some reason on verification, but seemed to work anyways...) on my Raspberry Pi 4. Then I installed McAirpos via ssh using the following command: Then I compiled, downloaded and copied over a fresh elf of the Jumpy Platformer game from arcade.makecode.com, opened from https://vegz78.github.io/McAirpos/. Everything seemed to work as it should out of the box, with HDMI audio and controls using a retro-bit gamepad. No crash. Since I am unable to reproduce your crash error condition on my system, it is a little difficult for me to remote diagnose what is going on on your system. But I hope you manage to post a copy of /tmp/McAirpos.log and that the log file tells us something, or figure this out in other ways, and I will try to help you as best I can remotely. PS: I will be away and unavailable from about now and over the weekend, hope you solve this in the meantime, and will be back to help late Sunday evening or next week. PS2: If you get no crash when disconnecting you controller's USB, I just remembered another issue that I discovered on certain setups with for instance the PS3 controller, in addition to the other controller issues mentioned above, which was a driver problem, where the controller constantly issued button presses, which "flooded" the system and could cause crashes. For all controller issues, it helps going into the console via ssh or locally, and testing with |
Hi,
Again, thank you for your fast answers, I am deeply confident and can't wait to get these games working :-) Take care |
Good evening, A bit more detailed version:
|
Not just a quick update, but a bit of a breakthrough; you now seem to have a working solution and I know the non-hdmi-fix script might have a problem worth further investigation. Do you actually carry audio over the HDMI to the screen, or via jack or usb speaker?
Copy the McAirpos.log log file from the folder /tmp to the folder /recalbox/share, and you can upload it here from the Recalbox shared network folder on your PC on the same local network.
Great! May I mention you in the main readme as the first one to successfully test the usb snes controller with McAirpos?
Beware that some extensions are not implemented for the RPi, and at least one needs a small workaround, like these:
Thanks again, good luck with your arcade project, happy retro game making and playing, and please give McAirpos a star on GitHub if it now works! |
Ok, back again, thanks for the star and good evening! I did another fresh image install of Recalbox v8.0.2 Electron, and installed McAirpos with the non-hdmi-fix installation script, as well; But I was unable to reproduce your crashes also here, running the same freshly compiled .elf of Jumpy Platformer. Jack audio also worked fine. However, I experienced a small new nuisance, where after an exit of Jumpy Platformer through McAirpos with jack audio, the audio device in the Recalbox main menu was set to HDMI audio, even though Recalbox was set and booted with jack audio for the main menu/other games.
|
Hello Vegz78, For the audio, I am using mini-jack (analogic, connected to a hifi amplifier with quite fat speakers). For my first tries with the non-hdmi McAirpos image and with the hdmi soud fix, I did not notice any problems with the sound. Except for the crash, sound was correctly set up and now it is still working as well. But I'll follow your instructions and try to re-install the first image (non-hdmi sound and give it a try) (I am still struggling to find the log file of McAirpos, I can't find any /temp files on the share folder. I'll get back to you soon when I find it). Thank you and take care 👍 |
Thanks for clarifying this point! It seems that there are other nuances to how audio is handled on different systems that I do not have the full overview of, like the hot plugging functionality you here describe. But the only certain thing I know, is that MakeCode Arcade games require ALSA sound driver(normally included), and that the desired audio card and submodule is located on position hw:0,0(The first audio card's first submodule, which is not always the case, and which causes no in-game sound or in-game sound on the wrong output if wrong, and potential crashes.)
It could be academically interesting to find out both why the non-HDMI McAirpos installation script caused crashes even though sound was working AND why the HDMI-fix installation script did not cause crashes and even functioning in-game sound via jack. On my tests on freshly burned Recalbox v8.0.2 Electron, I get hardcoded MCA in-game sound on either jack or HDMI, using the non-HDMI and HDMI-fix McAirpos installation scripts, respectively. But the most important thing is maybe to find a solution that works and then let it be... ;-)
You should not do this for my sake, and I would not recommend doing anything more if audio now works fine for you on your system.
The log file is written on every McAirpos game launch in the file /tmp/McAirpos.log, replaced on every launch and deleted on every reboot or whenever your system purges the /tmp folder.
Ditto! Since I understand that you have found a working solution for your current system(the HDMI-fix installation script) and the standard solution with the correct installation script probably will work on your later fresh image installations of Recalbox, like in my tests, I will now close this issue as resolved. You can of course continue posting here if you have more information relevant to this subject, and there is more detailed information regarding MakeCode Arcade games and audio to be found in this issue if you are interested. |
Hi,
So before posting about technical issues, I can't help myself to but to thank you for this amount of work to make available MMCA games to the recalbox. It is both a great and a generous ideas and, in my perspective, a great boost to creativity : being able to share these home made games in a retro gaming environnement is awesome :-)
So far the installation went fine and McAirpos gots installed on my recalbox 8.0.2 on raspberry pi 4. I downloaded the elf files of my games (but also some basic games from MMCA as "non-extension test games" like Falling Duck or Jumpy Plateformer).
The games are all launched successfully and, for 6-8 seconds, I got them working with controls and sound but after this time is ellapsed, the games suddently crash and get me back to the recalbox menu.
As I said in the MMCA forums, I will continue research on my side but I open the topic here as requested by Vegz78. I will let you know if I have some improvement from my perspective but I'll take any suggestions :-)
The text was updated successfully, but these errors were encountered: