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

Abierto
#26,315 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
Medio día
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
ios, swift

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

[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

Lenguaje dominante
Swift
Estrellas
3.9k
Forks
1.2k
Merge medio
1 d 23 h
PR fusionados (30 d)
136

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de wordpress-mobile/WordPress-iOS

Todos los issues de wordpress-mobile/WordPress-iOS

Issues similares

Más issues de Swift

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.