metabolist / metatext

A free, open-source iOS Mastodon client.
https://metabolist.org/metatext
GNU General Public License v3.0
727 stars 102 forks source link

crash immediately after tapping Mute on a user #230

Closed alexbbrown closed 1 year ago

alexbbrown commented 1 year ago

Describe the bug

I tapped mute on a user The app crashed

To Reproduce Steps to reproduce the behavior:

  1. In my personal timeline
  2. A post from a stranger
  3. Appeared boosted into my timeline
  4. I tapped the stranger name
  5. I saw their profile
  6. I tapped mute
  7. The app crashed

Expected behavior

Should not crash

Screenshots If applicable, add screenshots to help explain your problem.

(please complete the following information):

Additional context Add any other context about the problem here.

I have crash report but can't upload it

last message in log is

2600:3c03::f03c:93ff:feaa:7c45.443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0[802.11], ipv4, ipv6, dns)] received notification connection_idle",
  "2022-11-22 22:29:28.0930 -0800 default 0x021d7 0x0 Metatext[399] (CFNetwork): Task <B3143293-46C5-40C0-8FB8-D41477300E32>.<48> finished successfully",
  "2022-11-22 22:29:28.2432 -0800   error 0x0174a 0x0 Metatext[399] (UIKitCore): Warning once only: UITableView was told to layout its visible cells and other contents without being in the view hierarchy (the table view or one of its superviews has not been added to a window). This may cause bugs by forcing views inside the table view to load and perform layout without accurate information (e.g. table view bounds, trait collection, layout margins, safe area insets, etc), and will also cause unnecessary performance overhead due to extra layout passes. Make a symbolic breakpoint at UITableViewAlertForLayoutOutsideViewHierarchy to catch this in the debugger and see what caused this to occur, so you can avoid this action altogether if possible, or defer it until the table view has been added to a window. Table view: <UITableView: 0x10609d400; frame = (0 0; 428 926); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x283c7a700>; backgroundColor = <UIDynamicSystemColor: 0x2827696c0; name = tableBackgroundColor>; layer = <CALayer: 0x283272140>; contentOffset: {0, -91}; conte..."
]

backtrace ends

Thread 0 Crashed::   Dispatch queue: com.apple.main-thread
0   Metatext                               0x1042df3e0
1   Metatext                               0x1042e3110
2   Metatext                               0x104294f94
3   libswiftUIKit.dylib                    0x19b178ff4 closure #1 in UICollectionViewDiffableDataSource.init(collectionView:cellProvider:) + 220
4
alexbbrown commented 1 year ago

It was this post https://mstdn.social/@KCN/109391116781737395

alexbbrown commented 1 year ago

As boosted by Nathan here: IMG_0137

vollkorntomate commented 1 year ago

The issue is already known and tracked in #48.