WiiFlow_Lite icon indicating copy to clipboard operation
WiiFlow_Lite copied to clipboard

DSI Exception when you have too many games

Open ggtylerr opened this issue 1 year ago • 4 comments
trafficstars

Describe the bug If the wii games folder contains too many files (roughly 1000?) a DSI exception occurs when selecting it. This is, what I assume to be, due to the file list being loaded into memory, and there not being enough to accomadate for it.

To Reproduce Steps to reproduce the behavior:

  1. Acquire a large amount of games somehow
  2. Select the folder in Settings -> Custom Paths -> Wii Games
  3. App hangs for a little bit, then exception occurs.

What version of WiiFlow Lite v5.4.9

On Wii or Wii U vWii Wii U

Screenshots IMG_20240410_195248

Additional context It's worth noting that this is not a problem unique to WiiFlow Lite - USBLoaderGX and even WiiXplorer have this same issue. It's able to load it up to a certain point, so it seems as though the Wii / vWii is simply too underpowered to handle it. That being said, you could definitely workaround this issue - maybe only load 500 files at a time.

ggtylerr avatar Apr 11 '24 00:04 ggtylerr

Update: It might be a problem with my drive? I have no idea. My original wbfs folder has 900 games now and I seperated the other 347 into a different one - the Wii crashes when going into that. So I thought it was a corrupt file. But it isn't. When you put any of the files in there into its own folder, the Wii can't see any of the folder contents, and then up to a certain file count, it just gives up and throws an exception. My initial guess would be a corrupt sector, but it's viewable and perfectly usable on Windows. Plus, I had roms in that folder that are now unviewable. Even did a chkdsk and SMART check, and everything looks good. I have no clue, maybe it's how homebrew handles NTFS partitions? Is there a shared library for this that WiiFlow uses?

ggtylerr avatar Apr 11 '24 03:04 ggtylerr

Would you mind testing with the current version 5.5.4-1? Save your SD:/wiiflow folder before, cause the settings and database files are migrated to a new format and going back leads to an error.

eku avatar Apr 11 '24 06:04 eku

Still getting a DSI exception :/ Here's a better pic of the dump. IMG_20240411_033242.jpg

ggtylerr avatar Apr 11 '24 07:04 ggtylerr

I would guess an out of memory. But @Fledge68 can certainly analyse the dump better.

eku avatar Apr 21 '24 10:04 eku