Replies: 1 comment
-
|
Your diagnosis looks right the log gap between HomePage and the debounce firing is pretty clear evidence the sync is blocking the main isolate. It's the same pattern as #3898 but your report actually isolates it properly.No user-side workaround for this one, the fix has to come from the team. Worth opening it as a proper issue since you have solid evidence |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
[Auth] Desktop client freezes on launch and after periods of inactivity (main-thread stall)
App: Ente Auth, desktop (io.ente.auth.mac)
Platform: macOS
Versions affected: 4.3.2+432 and 4.4.23+1023 (both, see below)
Summary
The desktop client becomes unresponsive for several seconds (observed up to ~22s, occasionally never completing) at two points:
During the freeze the UI, menus, and code list are all unresponsive. Once the blocking sync resolves, the app is fast and subsequent syncs complete in under 300ms. This is not network latency and not data volume; the UI isolate is blocked.
Reproduction
Intermittent, with no reliable external trigger identified:
Evidence: this is a main-thread stall, not a network wait
The independent UpdateService debounce timer goes silent for the entire freeze and only fires at the moment the sync finally resolves, i.e. the whole UI isolate is blocked and everything queued flushes at once. A network wait on the sync request could not also stall the unrelated update-check timer.
Slow launch (~9.8s), 4.4.23+1023:
Here nothing logs between HomePage at 35.056 and the UpdateService debounce at 42.170. The event loop is blocked for those ~7 seconds, then the debounce and the sync completion both fire together. The same blocking sync runs on the periodic/idle-return path, which is consistent with the freeze also appearing after inactivity.
Network ruled out
curl against the same API host, warm, is consistently fast and stable, so transport is not the cause:
DNS, TCP connect, and TLS all finish inside ~30ms and server TTFB is ~220ms across repeated calls. The multi-second freezes are an order of magnitude larger than the entire wire round trip.
Notes that may help narrow it
0 entries fetched from remote.Cleared temp folderlaunch (15:34:32 above) froze for ~9.8s, while laterSkipping temp folder clearlaunches were both slow and (once) instant. No correlation.Expected behavior
Locally stored codes should render and remain usable immediately, with sync running in the background without ever blocking the UI, whether on launch or after the app has been idle.
Possibly related
#3898 ([Auth] Desktop Client Randomly Freezes) describes the same foreground-idle freeze and shows the same log signature (long gap between sync initiation and
entries fetched from remote), but without an identified cause. This report adds the main-thread-stall evidence and confirmation across versions.Beta Was this translation helpful? Give feedback.
All reactions