ggarra13 / mrv2

Professional player and review tool for vfx, animation and computer graphics.
https://mrv2.sourceforge.io
BSD 3-Clause "New" or "Revised" License
222 stars 14 forks source link

"Corruption in hotkeys preferences" #102

Closed SteffenDuenner closed 1 year ago

SteffenDuenner commented 1 year ago

Hi there,

with the latest versions of mrv2 I'm always getting this error message on startup:

ERROR: [keys] Corruption in hotkeys preferences. Hotkey Ctrl+s for Save Session will not be available. Already used in Save Image

I already deleted the prefs in ~/.filmaura but to no avail.

ggarra13 commented 1 year ago

Thanks for reporting that. You need to delete the ~/.filmaura/mrv2.keys.prefs and that should fix it. If it doens't let me know, and I'll look into it further.

ggarra13 commented 1 year ago

Alternatively, if you have already set your own hotkeys and don't want to lose them, you can go into Windows->Hotkeys and click on Save and that should solve the issues.

ggarra13 commented 1 year ago

I can verify that going to Windows->Hotkeys and hitting Save and overwriting the the default mrv2.keys.prefs fixes the issue.

SteffenDuenner commented 1 year ago

Thanks for your quick reply. Just hitting Save didn't help in my case, but deleting the ~/.filmaura/mrv2.keys.prefs file did. Strange thing is that yesterday I deleted the contents of the whole ~/.filmaura/ folder but that didn't work.

ggarra13 commented 1 year ago

That's weird. I am trying to figure out how the hotkey corruption happened, as I could not reproduce it by installing older released versions of mrv2. Did you compile from source by any chance (I might have mistakenly introduced the issue on some commit)? Also, you did not happen to keep the old mrv2.keys.prefs by any chance so I can take a look?

SteffenDuenner commented 1 year ago

Yes, I compile mrv2 myself so that might be the cause. I still have the mrv2.keys.prefs file that got created after I deleted the "original" one that showed this error message for the first time. IIRC this one also threw an error but I might be wrong. I attached it nonetheless.

mrv2.keys.prefs.zip

ggarra13 commented 1 year ago

Thanks for the hotkeys file. I was able to reproduce the issue, and I have made the hotkey message not appear when the reason is a new hotkey is added and you have already set hotkeys to the same hotkey.