Skip to content

iOS 26.3.1 removeObservers 崩溃 #1630

Description

@djp-djp-djp

描述bug
线上偶现控制器 deinit 的时候移除监听崩溃,崩溃原因
*** Terminating app due to uncaught exception 'NSRangeException', reason: 'Cannot remove an observer <MetaKit.MainStateRefreshFooter 0x171a57300> for the key path "contentOffset" from <UITableView 0x171b60000> because it is not registered as an observer.'

不是因为 superView 不是 scrollView 引起的,崩溃原因已经指出是 UITableView 了

必现/偶发?
偶发

怎么样重现这个bug
目前未复现

你期望的结果是什么?
有没有防护办法

截图

运行环境

  • iPhone15
  • iOS 26.3.1
  • Xcode 26.3

额外的

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions