Closed ItzSwirlz closed 2 months ago
This was fixed with commit https://github.com/ItzSwirlz/Ristretto/commit/89e56be049b34e89ddf43c59a4b41b0606161e7f - this was a result of the Homebrew on Menu plugin which MCP_TitleCount did not account for, and thus caused an OOB write.
Mostly a regression of https://github.com/ItzSwirlz/Ristretto/commit/e2faa6c49740b396c911fd2b3b2d1bb4e7b72cc2 - but an important issue.
When sending a GET request for the titles, sometimes the console can freeze. However, I believe it is memory related as when I was doing the debugging for the crashes, sometimes it would happen exactly at the third title it registered to the json in. My guess is the Wii U ends up running out of memory or something goes wrong because of all the memory cramming that causes some invalid read/write?
While some memory management techniques can be done, clearly the Wii U Menu manages to get through every single system title without crashing. However, I have had pretty good success getting the titles while System Settings is active. Therefore I'm assuming that when titles like the Wii U Menu, or, Breath of the Wild (Not even going to test it because its definitely going to happen), that use lots of the hardware are in use, it makes it more unstable and likelier to cause a crash.
A band-aid solution is going to be, unfortunately, only allowing for titles to be obtained when the active title is something like System Settings where the title is not using as many resources, making a crash unlikely. Additionally, home automation plugins should try to get the list of system titles ideally as infrequently as possible: ideally only having a push button.