Skip to content

Interface Builder crash #2

@priore

Description

@priore

Hello,
layoutIfNeeded inside layoutSubviews cause a IB crash :

Process:               IBDesignablesAgentCocoaTouch [10402]
Path:                  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Overlays/IBDesignablesAgentCocoaTouch
Identifier:            IBDesignablesAgentCocoaTouch
Version:               8.3.3 (12089)
Code Type:             X86-64 (Native)
Parent Process:        launchd_sim [9099]
Responsible:           IBDesignablesAgentCocoaTouch [10402]
User ID:               501

Date/Time:             2017-09-17 20:54:19.913 +0200
OS Version:            Mac OS X 10.12.6 (16G29)
Report Version:        12
Anonymous UUID:        93CD3DD9-5B46-47DE-A6CA-91E31D2A575E


Time Awake Since Boot: 6400 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_PROTECTION_FAILURE at 0x00007fff50e94ff8
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [0]

VM Regions Near 0x7fff50e94ff8:
    MALLOC_TINY            00007f9dce800000-00007f9dcea00000 [ 2048K] rw-/rwx SM=PRV  
--> STACK GUARD            00007fff4d695000-00007fff50e95000 [ 56.0M] ---/rwx SM=NUL  stack guard for thread 0
    Stack                  00007fff50e95000-00007fff51695000 [ 8192K] rw-/rwx SM=COW  thread 0

Application Specific Information:
CoreSimulator 375.21 - Device: IBSimDeviceTypeiPad2x - Runtime: iOS 10.3 (14E8301) - DeviceType: IBSimDeviceTypeiPad2x

Thread 0 Crashed:
0   com.apple.QuartzCore          	0x0000000111285e10 CA::Transaction::ensure_compat() + 4
1   com.apple.QuartzCore          	0x00000001112cf324 -[CALayer actionForKey:] + 29
2   com.apple.QuartzCore          	0x00000001112caade actionForKey(CALayer*, CA::Transaction*, NSString*) + 76
3   com.apple.QuartzCore          	0x00000001112caa6c CA::Layer::begin_change(CA::Transaction*, unsigned int, objc_object*&) + 140
4   com.apple.QuartzCore          	0x00000001112cbdad CA::Layer::set_bounds(CA::Rect const&, bool) + 329
5   com.apple.QuartzCore          	0x00000001112cbfe0 -[CALayer setBounds:] + 156
6   com.apple.UIKit               	0x000000010ecc305f __27-[_UILabelLayer setBounds:]_block_invoke + 80
7   com.apple.UIKit               	0x000000010ecc2da1 -[_UILabelLayer _setFrameOrBounds:settingAction:] + 23
8   com.apple.UIKit               	0x000000010ecc2ffe -[_UILabelLayer setBounds:] + 155
9   com.apple.UIKit               	0x000000010e77a51b -[UIView(Geometry) setBounds:] + 560
10  com.apple.UIKit               	0x000000010e9560c9 -[UILabel setBounds:] + 144
11  com.apple.UIKit               	0x000000010e779e73 -[UIView(Geometry) _applyISEngineLayoutValuesToBoundsOnly:] + 598
12  com.apple.UIKit               	0x000000010e77a15e -[UIView(Geometry) _resizeWithOldSuperviewSize:] + 125
13  com.apple.CoreFoundation      	0x00000001125f4652 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 114
14  com.apple.CoreFoundation      	0x00000001125f456f -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 335
15  com.apple.UIKit               	0x000000010e778bcc -[UIView(Geometry) resizeSubviewsWithOldSize:] + 183
16  com.apple.UIKit               	0x000000010f09516d -[UIView(AdditionalLayoutSupport) _is_layout] + 168
17  com.apple.UIKit               	0x000000010e7850a6 -[UIView(Hierarchy) _updateConstraintsAsNecessaryAndApplyLayoutFromEngine] + 994
18  org.cocoapods.LUNField        	0x000000011d4970c9 -[LUNField layoutSubviews] + 89 (LUNField.m:138)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions