OnionUI / Onion

OS overhaul for Miyoo Mini and Mini+
https://onionui.github.io
GNU General Public License v3.0
3.41k stars 215 forks source link

OnionLauncher stops loading certain systems on startup, works fine when launched with the shortcut in OnionOS #216

Closed rcnino closed 2 years ago

rcnino commented 2 years ago

The OnionLauncher is a great way to focus on my current rotation of games and really makes the Miyoo/Onion experience, but after a few days it stops loading certain systems on startup, yet it works perfectly when launched from the shortcut in App. I detailed my testing in this post: https://www.reddit.com/r/MiyooMini/comments/v223rc/onionlauncher_doesnt_start_games_on_startup_works/

I reinstalled OnionOS for the second time this week to fix it. Is there a way to resolve this without having to reinstall Onion? Maybe delete a cache file or check a config file for startup tasks?

Sichroteph commented 2 years ago

You seem to be an isolated case. Reading your previous post, it seems that your issue with the launcher is old, making it even more rare. From what I understand, you seem to do something in the next days after the installation that breaks the launcher. In order to help you I will need from you is to "break" the launcher, then to send me this file : Saves\CurrentProfile\lists\content_history.lpl

No custom rom hacks ?

rcnino commented 2 years ago

I was in the middle of a reinstall as I created this issue. OnionLauncher broke immediately after with Genesis. I can't say I know what I am doing that causes this to happen or I would mention it. I have only played this one ROM today which came with the Mini.

Github wouldn't accept the file as .lpl so I changed it to .txt content_history - Copy.txt

Olywa commented 2 years ago

The lpl doesn't really offer any clues (at least to me - maybe it helps @Sichroteph).

It makes no sense that it would work and later not (but still from Recents) so my suggestions may seem illogical but...

I also saw that you are using a new card (great, the included one is junk), are you using the USB card reader that came with the mini (it's also poorly made and we have seen this corrupt data/good cards).

rcnino commented 2 years ago

Not only from Recents, but it works like it's supposed to using the "Start launcher" app to manually start OnionLauncher and will continue to work until I power off. The issue only occurs when starting up after being powered off by pushing the power button to "Save + Shutdown".

Video of issue: https://1drv.ms/v/s!Ahsy1sR0QuXytIodJn0kPTVoQF9Niw?e=C1u1OH This demonstrates NeoGeo functioning correctly on startup using OnionLauncher but not SNES. Then it shows OnionLauncher functioning correctly from within the OS. Yes, I am demonstrate with a patched ROM, but the Miyoo plays it just fine so it can't be that.

Olywa commented 2 years ago

So do you ONLY have this issue when using patched roms?

Maybe you can try temporarily disabling auto loading of save states in retroarch?

*you can go back and delete the game override later.

Do this for a specific game that fails and then retest.

Sichroteph commented 2 years ago

@rcnino is it really only with rom hacks ?

rcnino commented 2 years ago

I disabled auto loading save states and it did not solve the problem.

@Sichroteph @Olywa this happens with ALL ROMS on the affected system.

Sichroteph commented 2 years ago

I fixed a bug that seems completely unrelated but still, did you use often the light sleep feature ? (Menu + power)

Sichroteph commented 2 years ago

I also reverted in 3.11 some binary hacks that affected the roms folder scan, could it help you too ?

rcnino commented 2 years ago

@Sichroteph I only use the single power button push to save + shutdown.

I updated to v3.11 today (delete all but BIOS, Roms, Saves, Themes). Launcher is still behaving the same.

My next troubleshooting step is to reinstall without my Save folder. I’ll post back with results.

Sichroteph commented 2 years ago

One save or one config you drag from before could indeed cause why your bug still after a full install. On my side I tried to reproduce your issue with the same rom but it works : https://youtu.be/ra7F91IM-5c I also parsed your history file but it seems fine. If I can recreate the issue I will be able to quickly help you.

rcnino commented 2 years ago

@Sichroteph @Olywa I figured it out: rewind.

I enable rewind with the settings 3, 100, 10. Play a bit to fill the buffer. Power off (save + shutdown), power on, issue occurs.

Interestingly, if I power on with rewind disabled then try to enable rewind, the system freezes and I have to Start+Select+L2+R2.

I dropped the buffer size to 20 and have no problems now. 20 MB is also plenty of rewind history for the games I’m playing, rom hacks and all ;-)

Olywa commented 2 years ago

...so... even after a 'clean install' you were first going into RA and increasing the RW buffer size by 80mb on those 'failing' systems before testing the issue? 😁

I believe the RW buffer feature pre-allocates ram for the purpose so 'losing' 100mb from the minis already very limited 128mb makes sense that it could cause some strange behaviour.

In any case, congrats! I'm glad you were able to figure it out. If you are satisfied that the issue is resolved maybe you can change the status to 'Closed'.

rcnino commented 2 years ago

The rewind settings were part of my Saves, so it would persist after reinstalling Onion. Since the games never had a problem running when launched from the shortcut, I didn’t make the connection. Starting with no saved configuration helped me find it.

Thank you @Olywa and @Sichroteph for your help.

Olywa commented 2 years ago

Good to know, thanks. Maybe this will at least provide another troubleshooting path for future strange or isolated issues (i.e. clean install without copying over the saves). We all learned something ;)

Thanks for closing :)

Sichroteph commented 2 years ago

That was interesting to read. And always satisfying to find the culprit. Glad it works fine now.