From 6c2c2e6ae7dc67239d8a74e41a3006730bc537dc Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Thu, 2 Nov 2023 18:18:08 -0400 Subject: [PATCH] More logging to try and pin down LazilyDecoding EXC_BAD_ACCESS --- Tusker/Screens/Timeline/TimelineViewController.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tusker/Screens/Timeline/TimelineViewController.swift b/Tusker/Screens/Timeline/TimelineViewController.swift index d28587c6..b822b49a 100644 --- a/Tusker/Screens/Timeline/TimelineViewController.swift +++ b/Tusker/Screens/Timeline/TimelineViewController.swift @@ -574,6 +574,11 @@ class TimelineViewController: UIViewController, TimelineLikeCollectionViewContro var count = 0 while count < 5 { count += 1 + + let crumb = Breadcrumb(level: .info, category: "TimelineViewController") + crumb.message = "scrollToItem, attempt=\(count)" + SentrySDK.addBreadcrumb(crumb) + let origOffset = self.collectionView.contentOffset self.collectionView.layoutIfNeeded() self.collectionView.scrollToItem(at: indexPath, at: .centeredVertically, animated: false)