leits / MeetingBar

🇺🇦 Your meetings at your fingertips in the macOS menu bar
https://meetingbar.app
Apache License 2.0
4.54k stars 203 forks source link

Bug: High CPU usage #716

Open rafaelzlisboa opened 7 months ago

rafaelzlisboa commented 7 months ago

macOS version

14.4.1 (23E224)

MeetingBar version

4.8.0

Installation source

Homebrew

Calendars provider

Google Calendar

Bug description

First of all, thank you very much for MB! Really appreciate the work you folks have put into the app, which is super useful for me and others on my team :)

I'm opening this issue because I'm experiencing high CPU usage on MeetingBar. On my work 16-inch, 2021 Apple M1 Pro it's consistently taking 10-20% CPU.

Reproduction steps

No response

Expected behavior

No response

Screenshots/screen recordings

No response

Additional context

Seems similar to issues reported before #597 and #623.

Had this problem on 4.6.0 and updated to 4.8.0 and the problem persists.

In search of anything more useful for you to work with, I went to the Console app and tried to find the MeetingBar application logs. Found it interesting that this line seems to appear a lot, though I couldn't quite figure what it means or if that's expected or if that's the issue (didn't find this exact line on the source code):

default 21:32:50.458985+0200    MeetingBar  [0x1166a7490] activating connection: mach=false listener=false peer=false name=com.apple.textkit.nsattributedstringagent
default 21:32:54.936252+0200    MeetingBar  [0x1267806a0] activating connection: mach=false listener=false peer=false name=com.apple.textkit.nsattributedstringagent
default 21:32:55.193105+0200    MeetingBar  [0x124e9f280] activating connection: mach=false listener=false peer=false name=com.apple.textkit.nsattributedstringagent
default 21:32:55.218806+0200    MeetingBar  [0x1064281b0] activating connection: mach=false listener=false peer=false name=com.apple.textkit.nsattributedstringagent
default 21:32:55.332218+0200    MeetingBar  [0x10653dac0] activating connection: mach=false listener=false peer=false name=com.apple.textkit.nsattributedstringagent
default 21:32:55.444941+0200    MeetingBar  [0x1246c7260] activating connection: mach=false listener=false peer=false name=com.apple.textkit.nsattributedstringagent
rafaelzlisboa commented 7 months ago

Some new findings:

When I checked yesterday the CPU usage was normal (<1%). I pulled up the Console and recorded some logs and didn't see anything related to "activating connection". In fact, there seemed to be no logs at all from MeetingBar for the period it was running. Now I checked again and it's back up to 10%-20% usage, and I see the activating connection logs. I didn't reboot my computer over the weekend neither restart the application

KenSmz commented 5 months ago

Hello,

I’ve noticed that when I enable the “Show details in submenu” option in the settings of MeetingBar, the CPU usage significantly increases. This behavior is consistent and reproducible.

System Information: