PowerToys
PowerToys copied to clipboard
Color Picker Custom format name crash
Microsoft PowerToys version
0.65.0
Installation method
PowerToys auto-update, WinGet
Running as admin
No
Area(s) with issue?
ColorPicker
Steps to reproduce
- Create custom format and name somthing. I named it Test and made it in format #RrXGgXBbX
- Rename it to HEX
- PowerToys closes
- I try to redo but another name (HEX (#)) but it closes again.
- Now I it's crashing when I try to acces the Color Picker page in the settings. I can still use the picker
✔️ Expected Behavior
Not Crash
❌ Actual Behavior
PowerToys crashes when I go to the Color Picker settings page.
Other Software
No response
/bugreport
Hi there!
We need a bit more information to really debug this issue. Can you add a "Report Bug" zip file here? You right click on our system tray icon and just go to report bug. Then drag the zipfile from your desktop onto the GitHub comment box in this issue. Thanks!
Hi @arvidkarlsson!
Thanks for finding this issue!
Whit custom color formats the idea is that the name identifies the color format. Therefore it should be unique and a not empty string. You proved, that the code wasn't good enough to prevent the user to create 'bad' color formats (with name empty or duplicated). Thanks for that! The provided fixes should fix this and also loading of such a settings file should be possible (those color fomats with wrong names present in the settings file will be skipped). I suppose you managed to fix your settings, but if not, plese find the settings.json file, it should be in the directory c:\Users\
Hi, I am not sure if the fix covered it, but I just came across a different issue similar to this one. I created a format named "rgba" and later decided I wanted to have the name uppercase. So I went to edit the format, but as soon as I typed the "B" in "RGB" (without saving), the app would crash. I got around it by typing "RGA" and then putting the "B" in place later. I suppose it has something to do with a clash with the "RGB" default format. However, this crashes the app before you can add anything else, so giving a format a name that would start with a name of an already existing format crashes it.
@Pandicon Does this still happen with the latest version of PowerToys? /needinfo
Nope, since at least 0.70 in case of a name conflict it just doesn't let me save the format, which is something I would expect.
Thanks for quick confirmation
This is already fixed and available since PowerToys v0.70.0