Crash/Exception thrown in UITableView initialization stack

Hello,

We are seeing an intermittent crash when initializing a base UITableView with Apple's [initWithFrame:style:] initializer.

Crash stack:

Role:               Foreground
OS Version:         iOS 26.1
Exception Type:     EXC_BREAKPOINT 
Exception Subtype:  KERN_INVALID_ADDRESS


EXC_BREAKPOINT: 

0   libswiftCore.dylib +0x1358c0 _assertionFailure(_:_:file:line:flags:)
1   UIKitCore +0x1fdca0          0x188c26ca0 (0x188c26b20 + 384)
2   UIKitCore +0x1ffa60          0x188c28a60 (0x188c2890c + 340)
3   UIKitCore +0x2012d0          0x188c2a2d0 (0x188c2a1ec + 228)
4   UIKitCore +0x200f20          0x188c29f20 (0x188c29cac + 628)
5   UIKitCore +0x200428          0x188c29428 (0x188c29384 + 164)
6   UIKitCore +0x18af7f4         -[UITableMetricsAdapter _updateSharedSectionMetricsForListGeometry:]
7   UIKitCore +0x201da8          -[UITableMetricsAdapter tableBackgroundColor]
8   UIKitCore +0x1643a44         ___39-[UITableView _applyAppearanceDefaults]_block_invoke
9   UIKitCore +0x196f3d0         +[UIView _performSystemAppearanceModifications:]
10  UIKitCore +0x1643978         -[UITableView _applyAppearanceDefaults]
11  UIKitCore +0x202854          -[UITableView _setupTableViewCommon]
12  UIKitCore +0x1643760         -[UITableView initWithFrame:style:]
13  Application +0x30b6a40             closure #1 in variable initialization expression of MyAppClass.tableView
14  Application +0x30b6ef0             MyAppClass.init(frame:)

Has anyone else seen something like this? Any insights or advice is much appreciated, thank you!

Thanks for the post. I love crash files and you came to the correct place as they are better developers here that can help you with a crash. The interesting issue is that is crashing on swift core lib?

However will be a great idea you follow this recommendations to post a crash file with all the information that can help them figure it out.

Kindly submit a comprehensive crash report, adhering to the guidelines outlined in Posting a Crash Report.

https://developer.apple.com/forums/thread/688669

Have you test it with iOS 26.2?

In my modest opinion and without code nor much besides the header, the crash you're encountering, suggests that there might be an attempt to access memory that's either invalid or no longer valid. Ensure that the object or table or table items managing the isn't being deallocated prematurely. Any strong reference cycles or unintentional over-release could lead to accessing a dangling pointer. If the table view is being loaded from a storyboard or XIB, ensure there are no mismatches or incorrect configurations in the interface builder that could cause initialization issues.

To isolate the issue, try creating a minimal example within a new project that initializes a using . If the issue persists, it might point towards an environment or configuration problem.

Looking forward to see more information about this issue!

Thanks,

Albert Pascual
  Worldwide Developer Relations.

Crash/Exception thrown in UITableView initialization stack
 
 
Q