Repository: OnionUI/Onion

Issue #845: Freezing/Locking up when pausing using game switcher, toggling Wi-Fi and resuming game
Created: 2023-05-29T16:37:19Z
Checklist

 I am reporting a bug in the Onion OS (Note that Onion devs can’t fix inherited issues with RA Cores)
 I have reviewed the Onion Wiki and did not find the answer
 I have searched the existing (open and closed) issues to ensure I do not log a duplicate

Onions OS Version
Onion V4.2.0 beta 3
Miyoo Firmware Version
202303262339
Provide a clear and concise description of the issue
When using the game switcher to pause the state of the game to toggle the Wi-Fi, upon trying to resume the game the console freezes with a black screen. I'm using retro achievements, so possibly this is causing an issue when it's trying to load. Hard shutdown is required. It only seems to do it if you are turning the Wi-Fi into the on state. Otherwise, turning off the Wi-Fi allows you to resume.
Steps to Reproduce
Make sure you are signed in to retroacheivements and the wifi is turned off.  Launch a game (i was testing using mGBA and gambette), pause the game using the menu button and press b to go back to the main menu. Head to settings and turn on the wifi. Press the menu button again. This should just freeze/leave you on a black screen.
Provide any additional context or information that may help us investigate your issue
Note that the reverse does not freeze the console (pausing, turning OFF the wifi, resuming).

Duplicate issue #848: Game Switcher Slow When RetroAchievements Enabled
Created: 2023-05-30T06:38:27Z
Checklist

 I am reporting a bug in the Onion OS (Note that Onion devs can’t fix inherited issues with RA Cores)
 I have reviewed the Onion Wiki and did not find the answer
 I have searched the existing (open and closed) issues to ensure I do not log a duplicate

Onions OS Version
4.2 beta 4
Miyoo Firmware Version
202303262339
Provide a clear and concise description of the issue
With wifi connected and RetroAchievements enabled, the game switcher becomes slow and unresponsive. This manifests in a few ways:

When loading a game from the game switcher, the "0%: Loading State" message will be visible for a long time, slowly counting up over the course of around 30 seconds.
The ROM will usually load without the game state (ie, normal loading) before the game state finally arrives.
When pressing the menu button to trigger the game switcher within a game, the device will freeze for about thirty seconds before the game switcher interface appears (presumably saving the state).
RetroAchievements will then login and operate as normal.
With RetroAchievements disabled, the game switcher operates as expected.

This seems to be wifi network dependent:

When connected to my home network (mesh network, otherwise fast and stable) it occurs
When connected to my phone hotspot it seems to be less prominent (still see the "double load" of the rom then the game state, but it happens a lot faster)

Steps to Reproduce

Enable wifi and connect to a wifi network
Enable RetroAchievements and provide login
From the main menu, press the menu button and select a game state
(observe time taken to load game state)
From within the game, press the menu button
(observe time taken to load game switcher)

Provide any additional context or information that may help us investigate your issue
This issue was present on 4.2 beta 2 as well.
Hardcore mode is disabled.

Closing comment (2023-05-30T15:22:27Z): Possibly related to #845