Hi peeps i was editing and copying presets to my config and during an edit it freezes and when I go back to the run mode I only have 3 presets or less then all the presets I had. It usually has over 20 presets with the presets that are missing are all the configured in the config.h file.
My question is how do I troubleshoot this?
the sdtest output is showing average speed 1134.51 kb/s 12.86 simultaneous audio streams
i’m running the sdtest all
i will check the results but what is a good result?
SD speed seems fine, is this a one time occurrence or an everytime occurrence? What specifically were you editing when it happened?
I was adding more presets using the copy preset and then I exit the edit mode turn off the saber, go to the next preset and enter edit mode again. It seems to happen when I’m selecting the fonts and turning it pretty quickly so it might be spamming the font wav files
I also notice it when I use the webusb as well. But that is how I edit the presets.
You want to allow time for the changes to be written to the .ini file. I would recommend going slowly and letting each step complete rather than spamming your way through it. Each change needs to be written to the SD, so give it a second or two before making the next change.
1 Like
This seems like weird advice, because writing to the SD card is a blocking operation. No other code runs during that time, so it’s not possible to go make another change “while it’s writing”.
Of course, it is still possible that doing things too fast causes problems, but the reason for that would be something else.
I see, makes sense. Any ideas on cause then, my only thought was corruption of the .ini but could it be something else?
Prime suspect is still a bad SD card, but it could be something else. Like maybe path names that are too long, or running out of memory. Anything that causes a crash in the middle of writing the file could cause this. (Although, it kind of shouldn’t since there are checksums and stuff and if it dies in the middle, it should just use the old file…)
How many presets are in the config file itself? Maybe it’s three presets because all presets.ini files were corrupted somehow?
i opened it with the unlock tool and it didn’t look like it was corrupted.
but that’s a possibility, I’ll try to see if I can reproduce it with more details.
e.g. with the webusb If I leave it unattended then it times out and I have to close the webusb and disconnect the usb and reconnect.
So are there only three presets in the file?
I reprogrammed it trying to reproduce the issue. it’s now 10 default and I added 9 more using the webusb. but I’ll try to add the other jedi and sith fonts using the edit mode.