FPPopover icon indicating copy to clipboard operation
FPPopover copied to clipboard

Message sent to deallocated instance

Open CoderSpinoza opened this issue 11 years ago • 1 comments

I am currently using ARC in my project. I have run the target on iOS 6. Sometimes when I pop off a view controller that contains FPPopoverView, it crashes with the following error

[RecipeDetailViewController tableView:heightForRowAtIndexPath:]: message sent to deallocated

RecipeDetailViewController is the deallocated view controller that has been popped off. I think that the issue is due to the detailViewController being registered to the notification center and not being removed. The following is the stack for the thread causing crash.

stack

The following are the detailed stack.

  1. [FPPopoverController deviceOrientationDidChange:]

stack1

  1. [FPPopoverController setupView] stack2
  2. [FPPopoverController bestArrowDirectionAndFrameFromView] stack3
  3. [FPPopoverView setFrame:] stack4

Has anyone encountered this kind of issue while using it in ARC and IOS 6?

CoderSpinoza avatar Jun 16 '13 23:06 CoderSpinoza

I encounter similar memory issue, the app complain sending message to delocated instance. Workaround with disable arc on the FPPopover.

siuying avatar Jun 27 '13 09:06 siuying