iPad: crash when tapping a Home dashboard card while it reloads (EXC_BAD_ACCESS in highlightView)

Aperta
#26,315 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
Mezza giornata
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
ios, swift

Direzione di ricerca

Build the Jetpack scheme and follow docs/simulator-sign-in.md to set up the iPad simulator. Reproduce the split-view refresh-and-tap sequence with Zombie Objects enabled; report the freed class and highlighted cell type, or note if you cannot reproduce the crash.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

[Status] Needs Plan [Status] Needs Repro [Type] Crash iPad My Site Simulator Testable

Split out of #20883. Its Sentry group (JETPACK-IOS-2X) has collected several unrelated EXC_BAD_ACCESS crashes, and this one has the clearest trigger.

Sentry snapshot (as of Oct 30, 2026)

JETPACK-IOS-2X (EXC_BAD_ACCESS: highlightView:). The group has 44 events in 90 days across all its patterns, and this pattern is the highlightView: one, seen in 3 of the 7 events sampled. Recent releases are 27.1 to 27.3, almost all on iOS 26.5 to 27.2.

A. iPad, tap on the My Site › Home dashboard: 3 of 7. All three are titled highlightView:.

  • The dashboard (BlogDashboardViewController, with UIHostingController<DashboardActivityLogListView>) had just reloaded after a sync burst. The crash follows within 1 to 3 seconds.
  • All three were in split view. There were no keyboard events.
  • Stack: UICollectionView touchesBegan → _highlightItemAtIndexPath → UICollectionViewCell setHighlighted: → UICellHighlightingSupport highlightView: (recursive) → objc_msgSend on a freed view.
Candidate code (hypothesis, not confirmed)
  • Pattern A: dashboard cards embed child UIHostingControllers and tear them down in prepareForReuse (DashboardActivityLogCardCell.swift:41-46) or teardownController() (DashboardTodayStatsNewCardCell.swift:161-168). If BlogDashboardViewModel.applySnapshot reconfigures or reuses a cell while a touch is highlighting it, UICellHighlightingSupport may still hold the hosting view it just removed.
Repro to try

Steps:

  1. Use an iPad simulator in split view, signed in to a WordPress.com site with the Activity Log and Today's Stats cards.
  2. Pull to refresh the Home dashboard, then tap cards repeatedly while it reloads. Repeat 20 or more times.
  3. Turn on Zombie Objects (Scheme › Diagnostics) so a freed view shows up as a named class.

Pass / report: a crash with Zombie Objects on names the freed class. Report that class, and the cell type being highlighted.

Event IDs: cb49982c0b50454fb257bf36a32af0a6, 5c145b8851094451a4659a1b540bc47f, 7992979d114b4bd5a005838cc4ba8a25

Build the Jetpack scheme and sign in using docs/simulator-sign-in.md, with bundle ID com.automattic.jetpack.

When you're done: post the results here. If you now have reliable steps, remove [Status] Needs Repro. If you found the cause and a fix approach, remove [Status] Needs Plan and add [Status] Ready for Dev. Remove Simulator Testable when you're finished.


Generated by Claude Code

Lingua principale
Swift
Stelle
3.9k
Fork
1.2k
Merge medio
1g 23h
PR unite (30g)
136

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wordpress-mobile/WordPress-iOS

Tutte le issue di wordpress-mobile/WordPress-iOS

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.