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

オープン
#26,315 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
半日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
ios, swift

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

[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

主要言語
Swift
スター
3.9k
フォーク
1.2k
平均マージ
1日 23時間
マージ済み PR(30日)
136

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wordpress-mobile/WordPress-iOS のほかの issue

wordpress-mobile/WordPress-iOS の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。