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

Loop app slow to open with iOS 17 #2205

Open
marionbarker opened this issue Aug 10, 2024 · 0 comments
Open

Loop app slow to open with iOS 17 #2205

marionbarker opened this issue Aug 10, 2024 · 0 comments

Comments

@marionbarker
Copy link
Contributor

Describe the bug

Loop is much slower to open on an iOS 17 phone than on phones running iOS 15 or iOS 16.

Background

It "seems" to me that Loop has been slower to open recently following build from Xcode.

  • Today I tested the same code (LoopWorkspace main, commit 8060718) with three different test phones with three different operating systems, all using Xcode 15.4.
  • I also tested the same code with my Looping phone
  • All phones are connected to Apple Health
  • All phones have Loop already installed
  • The last phone is my personal Loop phone - I built straight Loop main with no customizations for the timing test (it has a lot more data on it than the other phones, which have Loop built but are not running in closed loop
phone iOS time from Loop opens until charts are populated
iPhone 7 plus 15.8.2 3 sec
iPhone 8 16.7.9 3 sec
iPhone SE 17.6 13 sec
iPhone 15 Pro 17.6 26 sec
  • Note there is a message about a log error that shows up only for iOS 17 phones about 10 seconds after the app opens to a blank screen.
    • That log error can be resolved using LoopWorkspace PR 183 Remove initial error about logging in Xcode debug log
    • After applying the code change, there is no difference in timing, it still takes about 10 sec for the first message to appear in the debug log for Xcode for an iOS phone and then more time for the screen to populate

Additional Information

The very first messages in the Xcode debug log (after the log error) is:

Couldn't read values in CFPrefsPlistSource<0x303738750> (Domain: group.com.7PT47XGDN4.loopkit.LoopGroup, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd
Type: Error | Timestamp: 2024-08-10 09:29:13.660321-07:00 | Library: CoreFoundation | Subsystem: com.apple.defaults | Category: User Defaults | TID: 0x42d87c
application(_:didFinishLaunchingWithOptions:) with launchOptions: nil
Type: Notice | Timestamp: 2024-08-10 09:29:15.484716-07:00 | Library: Loop | Subsystem: com.loopkit.Loop | Category: AppDelegate | TID: 0x42d87c

This same message appears for all phones, just shows up much more quickly for the iOS 15 and 16 phones than for iOS 17.

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

No branches or pull requests

1 participant