Cog icon indicating copy to clipboard operation
Cog copied to clipboard

Update resets columns

Open ghost opened this issue 2 years ago • 4 comments

Whenever there's an update to Cog, downloading and installing the update from within Cog resets my column settings to the default.

Example: Before the update:

Screen Shot 2023-09-03 at 8 53 52 AM

After the update (just now):

Screen Shot 2023-09-03 at 8 54 27 AM

Please make Cog stop doing that. Thank you!

ghost avatar Sep 03 '23 16:09 ghost

This seems to be a bug with the UserDefaults container that is used to store these settings. I have no idea why it's doing it, either. It doesn't seem to do it on any more recent macOS versions, either. Anything Big Sur or newer doesn't seem to be affected.

Apple is also making it harder to debug this, by removing Rosetta debugging from Xcode.

kode54 avatar Sep 03 '23 21:09 kode54

Agreed, I should have mentioned that this is High Sierra. Let me know if I can do more to help debug, such as looking in the prefs file.

ghost avatar Sep 03 '23 22:09 ghost

I don't know that it's the prefs file at all. The issue seems to happen on anything older than Big Sur (11.0), and I don't know how long it's been going on.

kode54 avatar Oct 09 '23 00:10 kode54

It seems that this might have something to do with restarting the computer. I was using Cog just fine, but then because of a schedule power outage I shut down the computer. When the power outage was over and I started up the computer again, Cog had reset its columns to the defaults. So it seems as if Cog is not writing out the column settings to persistent storage in a way that it can use to reconstruct them when relaunched from a cold start. Sorry, I know I'm just hand-waving, but I'm trying to give as much info as I can, when I encounter it.

ghost avatar Dec 10 '23 01:12 ghost

This was a bug with column state memory, which I have rewritten to not use system methods of saving the playlist state.

kode54 avatar Jun 12 '25 09:06 kode54