MGSwipeTableCell icon indicating copy to clipboard operation
MGSwipeTableCell copied to clipboard

Hang on swipe in iOS 14.4

Open toby5box opened this issue 3 years ago • 6 comments

Hi,

Testers on real phones and simulators (including me) are seeing a hang in swiping that does not occur on iOS 13.

At the same time, the log is spammed with these messages:

2021-04-14 15:04:48.790955-0400 BuildupDev[19163:221235] [Snapshotting] 
View (0x7f9e0a172800, BUTableViewCell) drawing with afterScreenUpdates:YES 
inside CoreAnimation commit is not supported.

(In our app, @interface BUTableViewCell : MGSwipeTableCell)

CPU is on 95% and memory continually rises so it looks something like an infinite loop. Screen Shot 2021-04-14 at 7 40 39 PM

Has anyone else reproduced this?

toby5box avatar Apr 14 '21 19:04 toby5box

Looks like the hang can be localised to imageFromView.

toby5box avatar Apr 15 '21 22:04 toby5box

I'm experiencing very similar behaviour. imageFromView causes the memory so spike until the app crashes.

TobiasRe avatar May 20 '21 20:05 TobiasRe

I'm going to look into it. Can you reproduce it using any of the demos? https://github.com/MortimerGoro/MGSwipeTableCell/tree/master/demo/

MortimerGoro avatar May 20 '21 21:05 MortimerGoro

I'm getting this too iOS 4.5 iPhone 12 Pro Max. Doesn't happen on simulator

tylerweitzman avatar Jun 21 '21 22:06 tylerweitzman

I was able to fix by downgrading all the way down to version 1.6.6. Now it's no longer crashing, though it still hangs for a few seconds. Sadly, this is not very reproducible. I was able to consistently reproduce it only in a specific user's account in our app, and only by performing a fixed series of steps navigating to another view in the navigation, performing an action in that view, returning, to the root view, and then swiping and tapping.

tylerweitzman avatar Jun 21 '21 22:06 tylerweitzman

Same experience here. App quickly runs out of memory and crashes. Will try reverting to 1.6.6

aldukeman avatar Jul 08 '21 21:07 aldukeman