TagStudio
TagStudio copied to clipboard
[Bug]: Portable launch goes background (No UI presented) if language set to Russian
Checklist
- [x] I am using an up-to-date version.
- [x] I have read the documentation.
- [x] I have searched existing issues.
TagStudio Version
Alpha v9.5.6
Operating System & Version
Windows 11
Description
Just downloaded portable version, tested out, changed language to Russian, closed the app Now, when I try to launch it, it goes background. The process is present in task manager and loads both my CPU and RAM, but no GUI is visible
Expected Behavior
It should open like the first time?
Steps to Reproduce
- Launch portable
- Change language to Russian
- Close and try to open the app
Logs
If only I knew where to find logs... or settings file But I have a screenshot
Just found settings.toml under %appdata%/tagstudio. Changing language to EN reverts the issue
For some reason setting ES produces the same issue But FR works fine Gotta just stop my investigation here
Recreated on Windows 10 22H2
Tagstudio gets stuck initialising the MainMenuBar, specifically at the end of setup_file_menu with a call to 'assign_mnemonics' which results in an infinite loop. Commenting out the call to assign_mnemonics causes the program to load fine.
Investigating into why it gets stuck in an infinite loop its obvious to see what has happened. When taking over from a weaker weighted action the mnemonic marker is never removed from the label (or it shouldntve been there to begin with) which causes the infinite loop. removing the mnemonic marker when overtaking fixes the issue of tagstudio not opening. i'll test more and submit a pr with the fix
The bug specifically happens when two actions in the same menu have a conflicting hardcoded mnemonic (which is invalid anyway and should not happen in the first place)