Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugins not updating #390

Open
1 task done
pmorange opened this issue Nov 6, 2023 · 5 comments
Open
1 task done

Plugins not updating #390

pmorange opened this issue Nov 6, 2023 · 5 comments

Comments

@pmorange
Copy link

pmorange commented Nov 6, 2023

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:

  • macOS version: Sonoma 14.1
  • SwiftBar version: 1.4.4 (461)

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.

  • I don't run Bartender/Dozer/etc. or tested the issue without it running
@jpcanepa
Copy link
Contributor

jpcanepa commented Nov 6, 2023

+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
Copy link
Author

pmorange commented Nov 6, 2023

+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
Copy link
Contributor

@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
Copy link
Author

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
Copy link
Author

pmorange commented Nov 20, 2023

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:

Screen.Recording.2023-11-20.at.08.56.19.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants