s-victor / TinyPedal

Free and Open Source telemetry overlay application for racing simulation
GNU General Public License v3.0
74 stars 7 forks source link

Config resetted sometimes #54

Closed fralbo closed 1 month ago

fralbo commented 1 month ago

Hello, That's now the 3rd time widget's config is completely reseted when I start TinyPedal. All widget's are ON and stored at the left of the screen. I saw there are some backups but they only contain 66ko of '0' !?! I don't know how does it happen. I use version 2.14.0 with LMU. Here are my setting files. LMP2.json LMP2-backup 2024-07-05 14-51-56.json

s-victor commented 1 month ago

Hi, thanks for reporting. The issue is likely happened when the APP tries to save preset the "last time", but somehow failed to save correctly. By default, the APP will retry up to 5 times if saving fails, and I would guess for some reason (probably system or CPU very busy) that all those 5 attempts failed.

I will try improve the saving system to avoid such issue in the coming days.

Meanwhile you can manually make backups in case it happens again. Or, download source code and manually edit and increase attempts value at line 171 in https://github.com/s-victor/TinyPedal/blob/master/tinypedal/setting.py and the APP run from source (or build).

s-victor commented 1 month ago

New improvements to saving system is included in v2.15.1 update: https://github.com/s-victor/TinyPedal/releases/tag/v2.15.1

Let me know if it helps.

fralbo commented 1 month ago

Ok, thanks a lot. If I well understand, changes we make on live are supposed to be saved on the fly on the current preset?

s-victor commented 1 month ago

Correct. There is one exception, which the main config window position is only saved on APP exit (if position has changed).

fralbo commented 1 month ago

Hello, No more problems up to now. Thanks a lot.

s-victor commented 1 month ago

Thanks, I'll close the issue now.