Posts

Post not yet marked as solved
9 Replies
4.6k Views
Hello Apple Developer, we recently found that on some devices of IOS 13, there is a [UITableView _updateVisibleCellsNow:] Crash recursive call, the following is the stackThread 1 Queue : com.apple.main-thread (serial)#0 0x00000001a1bb02fc in lookUpImpOrForward () #1 0x00000001a1ba1110 in object_getMethodImplementation () #2 0x00000001a16a2084 in _NSIsNSString () #3 0x00000001a1581f04 in -[NSTaggedPointerString isEqual:] () #4 0x00000001a1615850 in CFEqual () #5 0x00000001a16b407c in CFBasicHashFindBucket () #6 0x00000001a15dd19c in CFDictionaryGetValue () #7 0x00000001a974071c in -[UIView(Rendering) contentMode] () #8 0x00000001a8fada64 in -[_UIImageContentLayout initWithSource:target:] () #9 0x00000001a8fad7b4 in +[_UIImageContentLayout layoutForSource:inTarget:] () #10 0x00000001a97013bc in -[UIImageView _layoutForImage:] () #11 0x00000001a9701fe4 in -[UIImageView _setImageViewContents:] () #12 0x00000001a9702f38 in -[UIImageView _updateState] () #13 0x00000001a9704830 in -[UIImageView _setViewGeometry:forMetric:] () #14 0x00000001a96e18f0 in -[UIScrollView _layoutVerticalScrollIndicatorWithBounds:effectiveInset:contentOffset:fraction:additionalInset:cornerAdjust:showing:recalcSize:] () #15 0x00000001a96e129c in -[UIScrollView _adjustScrollerIndicators:alwaysShowingThem:] () #16 0x00000001a96cfc84 in -[UIScrollView setContentOffset:] () #17 0x00000001a94a0e2c in -[UITableView setContentOffset:] () #18 0x00000001a96ec9f8 in -[UIScrollView _adjustContentOffsetIfNecessary] () #19 0x00000001a9492688 in -[UITableView _restoreOrAdjustContentOffsetWithRowCount:initialContentInsetTop:] () #20 0x00000001a9481e64 in -[UITableView _updateVisibleCellsNow:] () #21 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #22 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #23 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #24 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #25 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #26 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #27 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #28 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #29 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #30 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #31 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #32 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #33 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #34 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #35 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #36 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #37 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #38 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #39 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #40 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #41 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #42 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #43 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #44 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () ............. #2185 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2186 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2187 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2188 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2189 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2190 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2191 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2192 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2193 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2194 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2195 0x00000001a9481e8c in -[UITableView _updateVisibleCellsNow:] () #2196 0x00000001a949e8d0 in -[UITableView layoutSubviews] () #2197 0x00000001a9752a94 in -[UIView(CALayerDelegate) layoutSublayersOfLayer:] () #2198 0x00000001a4059818 in -[CALayer layoutSublayers] () #2199 0x00000001a405e03c in CA::Layer::layout_if_needed(CA::Transaction*) () #2200 0x00000001a4069800 in CA::Layer::layout_and_display_if_needed(CA::Transaction*) () #2201 0x00000001a3fc0804 in CA::Context::commit_transaction(CA::Transaction*, double) () #2202 0x00000001a3fea680 in CA::Transaction::commit() () #2203 0x00000001a93026a8 in _afterCACommitHandler () #2204 0x00000001a1612b24 in __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ () #2205 0x00000001a160da24 in __CFRunLoopDoObservers () #2206 0x00000001a160dff0 in __CFRunLoopRun () #2207 0x00000001a160d7ac in CFRunLoopRunSpecific () #2208 0x00000001a080f180 in GSEventRunModal () #2209 0x00000001a92da244 in UIApplicationMain ()This Crash has some strange phenomena:1. Appears only on some devices: I have a lot of devices, this Crash only appears on the iPhone 6Plus2. If you interrupt the debugging during the debugging process, there is a certain probability that Crash does not appear, unless you delete the app and rebuild it, you can continue to reproduce Crash3. It seems that the problem is in the layoutSubView: method of the UITableViewIn addition, I noticed that iOS 13 seems to have modified the implementation of [UITableView layoutSubViews]. In iOS 12,it call[UITableView _updateVisibleCellsNow:isRecursive:]and in IOS 13,it Call[UITableView _updateVisibleCellsNow:]This problem has been bothering me for a long time, please give me some help.
Posted Last updated
.
Post not yet marked as solved
1 Replies
467 Views
Hello, our app recently encountered a strange Crash on iPhone 6 iOS 9~11。The feature of this Crash is that it only appears on iPhone 6 and iOS 11. SIGSEGV appears when I first call this method after launch. -[UINavigationController setNavigationBarHidden:animated:]This kind of crash occurs very frequently, but it only appears on some devices multiple times. We didn't find a solution and hope to get help.Here is some part of Crash reportHardware Model: iPhone7,2Process: XXXXXXX [3007]Path: /var/containers/Bundle/Application/78DB882E-6D00-4D02-AC5F-E3F3B97D8A97/XXXXXXX.appIdentifier: XXXXXXXVersion: 9.6(196)-112_AppStoreCode Type: ARM-64 (Native)Parent Process: launchd [1]Date/Time: 2019-11-08 11:06:14.796 +0800OS Version: iPhone OS 11.2.5 (14A456)Report Version: 104Exception Type: SIGSEGVException Codes: SEGV_ACCERR at 0x0000000eb08fbec8Crashed Thread: 0Thread 0 Crashed:0 libobjc.A.dylib 0x0000000185825700 objc_object::release() + 41 CoreFoundation 0x0000000186d83a70 __CFRelease + 2122 libobjc.A.dylib 0x0000000185825fe0 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 7043 UIKit 0x000000018cc91780 ___45-[UIDevice(UIDevicePrivate) _graphicsQuality]_block_invoke + 20524 libdispatch.dylib 0x0000000185c5d1c0 __dispatch_client_callout + 165 libdispatch.dylib 0x0000000185c5dfb0 dispatch_once_f + 526 UIKit 0x000000018cc90f60 -[UIDevice(UIDevicePrivate) _graphicsQuality] + 1407 UIKit 0x000000018ccb3da0 -[_UIBackdropViewSettings initWithDefaultValuesForGraphicsQuality:] + 1728 UIKit 0x000000018ccb3b10 +[_UIBackdropViewSettings settingsForStyle:graphicsQuality:] + 9369 UIKit 0x000000018d1e8680 -[UIVisualEffectView _configureForCurrentEffect] + 38810 UIKit 0x000000018d1e7d10 -[UIVisualEffectView _commonInit] + 21611 UIKit 0x000000018d1e7eb0 -[UIVisualEffectView initWithEffect:] + 13212 UIKit 0x000000018d1e7de0 -[UIVisualEffectView initWithFrame:] + 4013 UIKit 0x000000018d59d3e0 __UIBarBackgroundCommonInit + 16014 UIKit 0x000000018d59d320 -[_UIBarBackground initWithFrame:] + 4815 UIKit 0x000000018ccb0580 -[UINavigationBar _commonNavBarInit] + 16416 UIKit 0x000000018ccaff10 -[UINavigationBar initWithFrame:] + 12817 UIKit 0x000000018cf9cea0 -[UINavigationController _navigationBarHiddenByDefault:] + 9218 UIKit 0x000000018cd8e390 -[UINavigationController _setNavigationBarHidden:edge:duration:] + 10419 UIKit 0x000000018cd8e310 -[UINavigationController setNavigationBarHidden:animated:] + 140...... Here I call -[UINavigationController setNavigationBarHidden:animated:] like this code list _myrootNavVC = [[MyNavigationController alloc] init]; [_myrootNavVC setNavigationBarHidden:YES animated:NO]; [_myrootNavVC setViewControllers:@[self] animated:NO];register status:Thread 0 crashed with ARM 64 Thread State: x0: 0x0000000170425ea0 x1: 0x0000000170425ea0 x2: 0x0000000000000008 x3: 0x0000000000000009 x4: 0x0000000000000041 x5: 0x0000000000000069 x6: 0x0000000000000035 x7: 000000000000000000 x8: 0x0000000eb08fbea8 x9: 0x00000001abc44600 x10: 0x0000000ffffffff8 x11: 0x0000000ffffffff8 x12: 0x00000001055441f0 x13: 0x000001a1abc442e1 x14: 0x0000000000008009 x15: 0x0000000000000a00 x16: 0x00000001abc442e0 x17: 0x0000000186cca060 x18: 000000000000000000 x19: 0x00000001abc47b70 x20: 0x000000017047c100 x21: 0x00000001702c0bd0 x22: 0x00000001702c0b60 x23: 0xffffffffffffffff x24: 0x0000000170425ea0 x25: 0x0000000000000004 x26: 0x000000000000000d x27: 0x00000000a7baadb1 x28: 0x0000000186d83f68 fp: 0x000000016fda8f50 lr: 0x0000000186e0a3d4 sp: 0x000000016fda8ef0 pc: 0x0000000185825704 cpsr: 0x20000000Binary Images 0x100054000 - 0x1036f3fff +MyApp arm64 <046fd0251a4c394ea34fd7de9235c969> /var/containers/Bundle/Application/78DB882E-6D00-4D02-AC5F-E3F3B97D8A97/MyApp.app/MyApp0x18578a000 - 0x1857dffff libc++.1.dylib arm64 <95f6dd603b933208ba95cc2d84613c54> /usr/lib/libc++.1.dylib0x186ca5000 - 0x187028fff CoreFoundation arm64 <c4824900d70e3fd5b01dbb079b63eae1> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation0x1877b0000 - 0x187a7efff Foundation arm64 <a6ad10553017396ebb4eba2a4ad331d8> /System/Library/Frameworks/Foundation.framework/Foundation0x18cc0d000 - 0x18d99afff UIKit arm64 <439dc80bfac033ed983e5bb8c416c452> /System/Library/Frameworks/UIKit.framework/UIKit0x18ac7d000 - 0x18b5d3fff JavaScriptCore arm64 <3a74efcce7283410ac8a55027b67d2ef> /System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore0x1873cf000 - 0x18773efff CFNetwork arm64 <ca09941bfd353bb8b6b679a0f14cad1e> /System/Library/Frameworks/CFNetwork.framework/CFNetwork0x185804000 - 0x185bddfff libobjc.A.dylib arm64 <56adf6a5a61b3ef1968bae3dd66e4893> /usr/lib/libobjc.A.dylib0x185c5c000 - 0x185c8bfff libdispatch.dylib arm64 <9da4900c6d953655bbfcc6b31c990e9c> /usr/lib/system/libdispatch.dylib0x185c8c000 - 0x185c90fff libdyld.dylib arm64 <b69bc0979de93e7c9cac9d89b284039f> /usr/lib/system/libdyld.dylib0x185d83000 - 0x185da7fff libsystem_kernel.dylib arm64 <04e6664af08030e1ad7d9f2249e47e18> /usr/lib/system/libsystem_kernel.dylib0x185e64000 - 0x185e6dfff libsystem_pthread.dylib arm64 <be17c5de3ff83a8695913479341c34ec> /usr/lib/system/libsystem_pthread.dylib0x1a03d9000 - 0x1a04adfff AVFAudio arm64 <291f828312d038c9aecd48a7069cc790> /System/Library/Frameworks/AVFoundation.framework/Frameworks/AVFAudio.framework/AVFAudio0x18893b000 - 0x18898afff FrontBoardServices arm64 <af1172067ff2304d9d3c8a2f92f04255> /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices0x18b7ea000 - 0x18c8d8fff WebCore arm64 <5f4c0a6773123239905a48919249deff> /System/Library/PrivateFrameworks/WebCore.framework/WebCore
Posted Last updated
.