-
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
Settings functions causes crash(Fixed by @nopid!) #14
Comments
This is really annoying because it makes it impossible to store anything more than a high score. |
Thanks for trying McAirpos! Could you please try to run the game directly from the Linux command line(not inside an X or ssh terminal emulator) and check if there are any differences? The game will hang on exit/reset, and you would need to use the keyboard(default mappings would work for keyboard)/EV_KEY controller with working button mappings, and the correct /dev/input/eventX for "SCANCODES=" directly in /sd/arcade.cfg. You can exit with a combination of CTRL+C and CTRL+D or reboot. There seems to be some differences in support for extensions between the web similator and compiling on various hardware. Idealy it would be nice also to test and map if there are differences between the uf2 images of games for Microsoft's own RPi image and the .elf file downloaded for RPi Linux(My impression is that they should be the same(contains the same executable code), but the different runtime environments might be at play). Happy to hear back from you with results, and to see if there's anything I can do, or whether this is on Microsoft's side and maybe a flavor of the differences in support for HW-extensions: |
Hi @SuperPupperDoggo, |
Closing due to inactivity and lacking feedback from the author. Issue unresolved. Suspect that the setting blocks do not compile natively for the RPi from @makecode.com. Encourage the author and others who have similar experiences to open an issue @https://github.com/microsoft/pxt-arcade/issues |
Ok, I'll try that |
How do I unclose issue |
Originally posted by @SuperPupperDoggo in https://github.com/Vegz78/McAirpos/issues/19#issuecomment-883768057 Ok, hope to hear back from you with some results. I will close this issue under same assumption as last time in 5 days if we haven't heard from you. |
I did some testing, and it appears that it doesn't crash if the executable is in the home directory, but if it's in the /roms/makecode folder it does |
Fixes issue Vegz78#14 (Attempting to use settings functions causes crash)
Update: Still seems to happen though... |
Thanks for looking into this, your quick reply and PR, @SuperPupperDoggo! It would indeed be in accordance with my intentions that as many as possible of the MakeCode Arcade functions and extensions also should work natively and with McAirpos. But my old basic Unix training from the Airforce makes me a little wary about setting write permissions to groups and others, especially the latter. Could you please:
I am also sorry to inform that I might need a little time figuring out how to handle a pull request, as I am currently only on my laptop and I have only once before done a PR, and that was from your side of the repo... ;-) Hope to hear back from you again soon! |
Ok. Saw this just now. I would really appreciate, as a start, the link requested in point 3 above, so I, and other minds brighter than me and frequenting the MakeCode corners of GitHub, could help investigate. PS: Any help from anyone in this matter is really appreciated! -My 10-year-old son is the family's expert using MakeCode, I am just a guy who stumbled over a way to demo his game creations on the big screen for last year's family Christmas dinner... ;-) |
Hi again @SuperPupperDoggo, It’s really hard for me to follow up this issue or get a clue about what is wrong or what I might do without testing one of your games using the settings functions you mention. What do you think? |
Ok, here's a program that uses them: |
I am finally back from vacation and just tested an .elf compilation of your program linked to above from the CLI on my RPi4. I am not really sure what to make of my observations:
I really do not know what to conclude from this yet, or what to change. Maybe I could add a function inside launCharc that changes permissions to the .elf.data folder once it is created after the first game launch. But then again, the .elf games seem to have running processes with the pi user as owner, so it shouldn't really make a difference... Is there maybe some sort of caching at play here somewhere that I am not familiar with? Do you have any suggestions or know about anyone who might shed some light. At the moment, i will keep this issue open for further investigation, but I conclude from my tests and your last comment, that your pull request might not be a spot on solution, so I will close it until we find out more. Looking forwared to hearing back from you(and maybe others) with further tests and working theories! |
Today I tested again on my RPi4 the same file, but with a different file name and permissions 755 and everything worked fine. I will continue to search for and test other MakeCode Arcade programs utilizing the settings namespace/extension on other hardware and OS'es. Any new insights from your side or anyone else? I have also reached out for further help here: Hoping to hear back from you soon! Here is the underlying pxt code, for those inclined and competent to review it and maybe find some answers there: |
I've found 5 more MCA games on the forum that are using the settings namespace and tested on 3 different Raspberry Pis. I think that I now can make the following conclusions:
A work-around for the 2nd point, for instance in an Since the 2nd point seems to be a bug in the pxt-arcade compiler itself, I've opened an issue there, which I hope will be resolved some time in the future: Here are my the projects that I have tested, which you and others might try, as well:
With that, I am closing this issue until further notice or pending a fix from Microsoft. |
UPDATE 2022.06.05 by @Vegz78:
This issue was finally fixed by @nopid for Raspberry Pis!:
microsoft/pxt-arcade#3812 (comment)
Check out the fix already rolled out on arcade.makecode.com/beta here!
@SuperPupperDoggo's original post:
Occurs with the settings blocks and JavaScript/python functions.
The text was updated successfully, but these errors were encountered: