J-D-K/JKSM

Consistent crash when there are no title with save data

MasterHoover opened this issue · 4 comments

After reformatting my microSD card, I reinstalled JKSM and it kept crashing when selecting title.

I finally noticed the crash stopped when I generated a save file for at least one title.

J-D-K commented

Where exactly does it crash? Immediately or when you select titles?

Edit: Derp, nevermind. My menus don't handle being empty on 3ds I think. I thought it kicked you back if nothing was found. I'll check it out later.

J-D-K commented

Sorry, I've had a lot going on and I'm juggling too much. Does this help the issue at all? I double checked, and it shouldn't allow you to select titles if the vector is empty.
JKSM.zip

Thanks for looking into it. With the new version you provided, I can still crash when selecting title.

Though while trying to test it I noticed that the cause of the issue was more specific. Sorry about that.

To reproduce the issue, I used these steps:

  1. Uninstalled every app which had save data.
  2. Deleted the "nand" and "titles" files in the JKSM folder of the microSD card.
  3. When launching the app, a scan occurs.
  4. Selecting title causes the crash.
  5. The crash persist even when reinstalling the apps from Step 1 until a save data is created for one of the titles.

Here's some notes about the steps above:

  1. In Step 1, deleting all save data with JKSM instead of uninstalling the apps does not reproduce the crash, even when deleting the "nand" and "titles" files.
  2. When uninstalling the titles without deleting the "nand" and "titles" files, selecting "Titles" in JKSM does not cause a crash. A message stating "No titles found. Try reloading titles!" appears instead.

Hoped that helps!

This is still an issue