FLEXTool / FLEX

An in-app debugging and exploration tool for iOS
Other
14.05k stars 1.7k forks source link

Reddit v2022.34.0 crash #627

Closed objc-class closed 2 years ago

objc-class commented 2 years ago

Environment

Bug Report

Clicking on the views button when any view is selected will crash Reason: Invalid parameter not satisfying: depthsForViews.count == allViews.count Viewing 💩 Neap Objects also crashes

brendonjkding commented 2 years ago

Did some shallow research and found that Reddit implement -[PagedTab.SegmentItem hash]. So different PagedTab.SegmentItem object may return same hash, which causes depthsForViews.count < allViews.count.

NSExceptional commented 2 years ago

Is PagedTab.SegmentItem a UIView? So they're being added to allViews but only some are being kept because of the same hashes?

brendonjkding commented 2 years ago

Right, PagedTab.SegmentItem is kind of UIView. There are 9 PagedTab.SegmentItem on the home page, and all of them are in allViews but only 3 of them are kept in depthsForViews.