WordPress-iOS icon indicating copy to clipboard operation
WordPress-iOS copied to clipboard

NSInternalInconsistencyException: Expected a popover view, found (null)

Open sentry-io[bot] opened this issue 10 months ago • 6 comments

Sentry Issue: JETPACK-IOS-60

NSInternalInconsistencyException: Expected a popover view, found (null)
  File "main.swift", line 7, in main
...
(18 additional frame(s) were not displayed)

sentry-io[bot] avatar Apr 15 '24 15:04 sentry-io[bot]

Thanks for reporting! 👍

dangermattic avatar Apr 15 '24 15:04 dangermattic

There seems to be a crash in SiteStatsPeriodTableViewControllerDeprecated:

NSInternalInconsistencyException: Expected a popover view, found (null)
Error
13:31:39
ui.lifecycle

{
beingPresented: false,
parentViewController: UIPageViewController,
screen: SiteStatsPeriodTableViewControllerDeprecated
}

The issue it a bit confusing because it looks like there are more crashes rolled into it:

the cell returned from -collectionView:cellForItemAtIndexPath: does not have a reuseIdentifier - cells must be retrieved by calling -dequeueReusableCellWithReuseIdentifier:forIndexPath:

It looks like it might be in the Stats area, and it's currently in a top 3 or crashes. @staskus, can you folks look into it, please?

Hi

kean avatar Apr 15 '24 15:04 kean

@kean thanks for notifying me. I'll take a look

staskus avatar Apr 15 '24 16:04 staskus

Yes, there are more crashes rolled into this one Sentry report. https://docs.google.com/spreadsheets/d/1GniPO2fF-8-5G4LW9C2C2C_yijE2d_Xnsq07n3rpRNE/edit#gid=0

The most popular for 24.5 is the cell returned from -collectionView:cellForItemAtIndexPath: does not have a reuseIdentifier happening in ReaderSelectInterestsViewController. Which is an issue I reported before here https://github.com/wordpress-mobile/WordPress-iOS/issues/22932

Stats crash doesn't look to be as crucial but I'll make sure it's taken care of.

staskus avatar Apr 15 '24 18:04 staskus

the cell returned from -collectionView:cellForItemAtIndexPath: does not have a reuseIdentifier - cells must be retrieved by calling -dequeueReusableCellWithReuseIdentifier:forIndexPath:

👋 FYI: For this issue, I've created #23158 to fix/mitigate it.

dvdchr avatar May 06 '24 11:05 dvdchr

NSInternalInconsistencyException: Expected a popover view, found (null)。How did you solve this problem? I also encountered this problem on iPad. Can you help me?

mzhgogo avatar Sep 10 '24 12:09 mzhgogo