d0k3 / GodMode9

GodMode9 Explorer - A full access file browser for the Nintendo 3DS console :godmode:
GNU General Public License v3.0
2.07k stars 192 forks source link

[BUG] sys/emunand ticket.db gets corrupted after manually reinstalling firmware #857

Open cooolgamer opened 2 months ago

cooolgamer commented 2 months ago

So you want to report a bug? Hold on, there are ways you could make things easier for us:

Info about your system Include this info to make our work easier:

Help yourself Especially for any kind of boot issue ("GodMode9 doesn't boot"), but also in many other cases these steps make a lot of sense and we will ask you to do them anyways:

Have you actually read this? [X] I have read the information above

This is very specific and pretty rare, but when you want to manually do a ctrtransfer, so cleanup all ctrnand titles and install all firmware cias manually, there is a random chance that the ticket.db gets corrupted and everything fails to install because of this. I have no clue why this happens. This was tested on emunand and sysnand on new and old 3ds. This seems to happen after doing a lot of cia installation.

Wolfvak commented 3 weeks ago

@cooolgamer are you sure this happens "after doing a lot of cia installation"? Are you sure you're not installing something incorrectly? (just throwing out ideas)

It seems weird that it just breaks on its own after a certain amount of tickets are installed, especially if it's not consistent after doing things in the same order.

cooolgamer commented 3 weeks ago

Yes it's not consistent because if I repair the ticket.db, repeat the steps over, it works.

Also note that this happens during the cias installation and the next ones always fails.

Other note, titles are system apps (NAND), I don't know if the same thing can happen for SD titles.

It doesn't only happen to me, someone else also got this issue, I also tested on different systems, same result, there's a random chance of ticket.db being corrupted while installing a lot of NAND cia files.