swiftbar / SwiftBar

Powerful macOS menu bar customization tool
https://swiftbar.app
MIT License
2.87k stars 91 forks source link

Plugins not updating #390

Open pmorange opened 10 months ago

pmorange commented 10 months ago

Describe the bug Swiftbar's plugin "clock with calendar" sometimes shows a time in the past. When it happens and I click on it it updates and then shows the correct time again. Other widgets I use may have the problem but as they show more static info, I can't always tell if they are up to date o not...

To Reproduce Steps to reproduce the behavior: Use my mac for some time. After a while, not always, the time is not correct as it has not been updated since some time ago...

Expected behavior The widgets are always updated as they should (based on their configuration).

Screenshots None available.

Environment:

Plugin Example: https://github.com/matryer/xbar-plugins/blob/main/Time/CalendarLite.1m.sh

Additional Context: => I have the plugin as CalendarLite.10s.sh so it should update every 10 seconds.

jpcanepa commented 10 months ago

+1 To this. I've seen this happening with the "world clock" plugin, and I feel it started happening with the update to macOS Sonoma.

I wonder if sleep/hibernate has something to do with this.

pmorange commented 10 months ago

+1 To this. I've seen this happening with the "world clock" plugin, and I feel it started happening with the update to macOS Sonoma.

I wonder if sleep/hibernate has something to do with this.

I've had problems before Sonoma. It's not so terrible so I did not submit an issue here before. Sometimes I think I have time before lunch for instance, and discover it's already lunch time when the plugin was telling me it was not so late... But it's annoying nevertheless.

melonamin commented 10 months ago

@pmorange @jpcanepa can you capture logs from Console.app? Open Console.app, start capturing the logs and minimize the app. As soon as you notice that SwiftBar missed the upudate cycle - go to Console.app and try to find the relevant part of the log.

Normal log looks like this:

Screenshot 2023-11-11 at 11 50 16

pmorange commented 10 months ago

Hi, It has been some time without anything happening, that's why I did not reply. I'll give you more information once it does, thanks.

pmorange commented 10 months ago

Hi, I am no admin on my mac so I can't easily activate the Console app. Where are the logs located so I can check them manually?

This morning the problem happened once again. I had started the mac yesterday and closed the lid until this morning. The plugins stopped updating at 8h42 when I opened my mac, until 8h56 when I clicked the status bar. But I usually have the mac on for many days, closing and opening the lid many times: the mac goes to sleep and wakes up many times without the problem ocurring.

I had a video so you could see it. In the video you could see that the battery plugin did not update either. But I double clicked on the video recording I just made and so it did not save on disk, my bad :-( I'm sorry I can't give many more details right now.

=> I could salvage the video:

https://github.com/swiftbar/SwiftBar/assets/8950440/7678b066-b3b8-4624-9076-e552d325ba5f