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

Desktop widgets show "No data" #2115

Closed
janhink opened this issue Sep 9, 2024 · 16 comments
Closed

Desktop widgets show "No data" #2115

janhink opened this issue Sep 9, 2024 · 16 comments
Labels
bug Something isn't working

Comments

@janhink
Copy link

janhink commented Sep 9, 2024

Describe the bug
The Stats desktop widgets show "No data", although the app works and the stats are shown on menubar items correctly.

Details:

  • Device: Macbook Air M3, 16 GB RAM, 512 GB SSD
  • macOS: Sequoia 15.0
  • Application version: [e.g. 2.1.11]
image
@exelban exelban added the bug Something isn't working label Sep 9, 2024
@exelban exelban added this to Stats Sep 9, 2024
@exelban exelban moved this to Todo in Stats Sep 9, 2024
@F1248
Copy link

F1248 commented Sep 16, 2024

I'm experiencing the exact same bug for all five widgets Stats provides:

  • MacBook Air M1 (MacBookAir10,1)
  • macOS Sequoia 15.0 (24A335)
  • Stats 2.11.10 (596)

@jimmyxan
Copy link

exact same problem,

Details:

Device: MacBook Pro M3pro, 18 GB RAM, 512 GB SSD
macOS: Sequoia 15.0
Application version: 2.11.10

@DZL1943
Copy link

DZL1943 commented Sep 17, 2024

+1

@CherrySuryp
Copy link

Same here, after update to a new MacOS Sequoia widgets are not working.

MacBook Pro 14" M3 8GB RAM, 512GB SSD
MacOS: Sequoia 15.0
Stats Version: 2.11.10

image

@cosmic-latte
Copy link

The same issue here, I guess this is obviously caused by Sequoia changing some APIs.

@F1248
Copy link

F1248 commented Sep 17, 2024

When launching Stats, this error appears in Console:

Couldn't read values in CFPrefsPlistSource<0x600001ad0a20> (Domain: eu.exelban.Stats.widgets, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd

This seems to be a known occurrence and not new to macOS Sequoia:
https://developer.apple.com/forums/thread/738322

The error seems to cause userDefaults to be nil here:

private let userDefaults: UserDefaults? = UserDefaults(suiteName: "eu.exelban.Stats.widgets")

Which causes entry.value to remain nil:

if let raw = userDefaults?.data(forKey: "CPU@LoadReader"), let load = try? JSONDecoder().decode(CPU_Load.self, from: raw) {
entry.value = load
}

Which causes the widget to show No data here:

if let value = entry.value {

} else {
Text("No data")
}

I don't know how to fix this, but maybe this information will be helpful for someone to fix it.

@LordZeuss
Copy link

LordZeuss commented Sep 19, 2024

I am also experiencing the same issue, however it also applies to the widgets in notification center.

Screenshot 2024-09-19 at 8 16 44 AM

Macbook Air 15" M3
MacOS Version Sequoia 15.0
Most up to date Stats version.

@ufukcelen
Copy link

got same problem

MacBook Pro 14" M3 PRO 18GB RAM, 512GB SSD
MacOS: Sequoia 15.0
Stats Version: 2.11.10

Image

@dmercalli
Copy link

+1 here
MacBook Air 13" M2 8GB ram, 256SSD
MacOS Sequoia 15.0
Stats version 2.11.10

@arthurreynoob
Copy link

Same problem with the widgets but menu bar stats works fine

Macbook Air 13" M2 24GB ram, 512SSD
MacOS Sequoia 15.0
Stats version 2.11.10

@F1248
Copy link

F1248 commented Sep 24, 2024

Just out of interest, does this affect anyone on an Intel Mac?

@lcsvcn
Copy link

lcsvcn commented Sep 24, 2024

same issue here, m1 pro 2021, mac os sequoia too

exelban added a commit that referenced this issue Sep 28, 2024
… in macOS 15 but could break macOS 14. Since in the macOS 14 it was not working properly with the team ID prefix (#2115)
@exelban exelban closed this as completed Sep 29, 2024
@github-project-automation github-project-automation bot moved this from Ready to deploy to Done in Stats Sep 29, 2024
@CherrySuryp
Copy link

CherrySuryp commented Sep 29, 2024

@exelban
Problem persists after update. Now it doesn't display "No Data" but there's no metrics in widget

MacBook Pro 14 M3 8GB
MacOS: Sequoia 15
Stats Version: 2.11.13

image

@jagai
Copy link

jagai commented Oct 6, 2024

@CherrySuryp This might sound really dumb, but did you try "Settings" -> "Reset settings"? This helped me fix the issue with the widgets not displaying any data.

@CherrySuryp
Copy link

@jagai yeah, that helped, thanks😅

@Luk1nh4
Copy link

Luk1nh4 commented Oct 7, 2024

@CherrySuryp This might sound really dumb, but did you try "Settings" -> "Reset settings"? This helped me fix the issue with the widgets not displaying any data.

In my case I even formatted the system, but it didn't help, as I mentioned here >> #2167 only the CPU widget shows "no data"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests