Repository navigation
Skip empty runtime drain breadcrumbs on iOS - #324
Open
tiensonqin wants to merge 1 commit into
Open
tiensonqin wants to merge 1 commit into
tiensonqin wants to merge 1 commit into
Conversation
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The latest LOGSEQ-IOS-B event (build 80, iOS 18.7.12, Journals,
presentation=none) has a main-thread stack of SwiftUI Observation work (GraphHost.runTransaction → AG::Subgraph::update → installObservationSlow → _NativeDictionary.copy) with no app frames. Its 50 retained breadcrumbs were 24runtimedrain_begin/drain_endpairs plus two hosting-controller lifecycle entries. The empty drains pushed out the navigation, UI-state, and user-action breadcrumbs that could identify the trigger.drainEffectsnow usesLogseqCrashReporting.RuntimeDrain:drain_beginwith the drain's original start timestamp.finish()recordsdrain_end, preceded bydrain_beginif that was not already recorded, when the drain did work or ran for at least 100 ms.Limitation: a slow drain that never returns and never receives an effect records no pair. Sentry's thread samples still cover a hang in that state.
This is diagnostic only and does not change UI behavior. The breadcrumb code is now gated on
os(iOS) && LOGSEQ_ENABLE_SENTRY.Validation:
sentry-callback-isolationcheck passes, including a new case: "fast empty drains preserve UI breadcrumbs; work and slow drains retain both markers."swift testwas not run.Implemented in session Reproduce and fix IOS-B layout hang
Review with Devin · Open in Devin Desktop