Updated INI Values not Used When CopyQ Starts - Suspect Memory Corruption
- Dominant language
- C++
- Stars
- 12.3k
- Forks
- 593
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 9
Description
**Describe the bug**
I'm using "**notification_bg**" value as my "canary". If the INI works non-native notifications should display on black on yellow. When the INI fails it is white on black.
This didn't happen in the previous release I was using (v4.3 I think on Windows 10) but happens in 6.1.0 (at least for the same data/ini file).
**Files for Test Case/Reproduction**
[1. MoreComplex-Fails-[get white on black]-copyq-DBAREIS-TOOLS-commands.zip](https://github.com/hluk/CopyQ/files/8713595/1.MoreComplex-Fails-.get.white.on.black.-copyq-DBAREIS-TOOLS-commands.zip)
[2. MoreComplex-Works-[Only added blank lines between sections]-copyq-DBAREIS-TOOLS-commands.zip](https://github.com/hluk/CopyQ/files/8713596/2.MoreComplex-Works-.Only.added.blank.lines.between.sections.-copyq-DBAREIS-TOOLS-commands.zip)
**To Reproduce**
Steps to reproduce the behavior (on COPYQ 6.1.0):
1. Stop CopyQ 6..1.0
2. COPY the INI I have attached (1.MoreComplex-Fails-[get white on black]-copyq-DBAREIS-TOOLS-commands.zip)
3. Start CopyQ
4. Do something that causes a notification (invalid command etc)
5. It will not have the correct colors
6. Repeat the above with the INI from "1.MoreComplex-Works-[Only added blank lines between sections]-copyq-DBAREIS-TOOLS-commands.zip"
7. It will now display with the correct colors
Note that I initially thought the INI handling needed these blank lines but I can make other non related data changes and get it to work which suggests some sort of in memory corruption of the INI object.
**Expected behavior**
The values in the INI should always be used.
**Version, OS and Environment**
(Get details from `copyq version` command if possible.)
- 6.1.0, neither "..\..\copyq version" or "..\..\copyq copyq version" works
- Windows 11
**Tried for a Very Simple Text Case but that worked**
[copyq-DBAREIS-TOOLS[very simple-works].zip](https://github.com/hluk/CopyQ/files/8713597/copyq-DBAREIS-TOOLS.very.simple-works.zip)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.