0 Replies
      Latest reply on Nov 8, 2019 2:30 PM by 952920767@qq.com
      952920767@qq.com Level 1 Level 1 (0 points)

        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 report

         

        Hardware Model: iPhone7,2

        Process: XXXXXXX [3007]

        Path: /var/containers/Bundle/Application/78DB882E-6D00-4D02-AC5F-E3F3B97D8A97/XXXXXXX.app

        Identifier: XXXXXXX

        Version: 9.6(196)-112_AppStore

        Code Type: ARM-64 (Native)

        Parent Process: launchd [1]

         

         

        Date/Time: 2019-11-08 11:06:14.796 +0800

        OS Version: iPhone OS 11.2.5 (14A456)

        Report Version: 104

         

        Exception Type: SIGSEGV

        Exception Codes: SEGV_ACCERR at 0x0000000eb08fbec8

        Crashed Thread: 0

         

         

        Thread 0 Crashed:

        0  libobjc.A.dylib                0x0000000185825700 objc_object::release() +  4

        1  CoreFoundation                 0x0000000186d83a70 __CFRelease +  212

        2  libobjc.A.dylib                0x0000000185825fe0 (anonymous namespace)::AutoreleasePoolPage::pop(void*) +  704

        3  UIKit                          0x000000018cc91780 ___45-[UIDevice(UIDevicePrivate) _graphicsQuality]_block_invoke +  2052

        4  libdispatch.dylib              0x0000000185c5d1c0 __dispatch_client_callout +  16

        5  libdispatch.dylib              0x0000000185c5dfb0 dispatch_once_f + 52

        6  UIKit                          0x000000018cc90f60 -[UIDevice(UIDevicePrivate) _graphicsQuality] +  140

        7  UIKit                          0x000000018ccb3da0 -[_UIBackdropViewSettings initWithDefaultValuesForGraphicsQuality:] +  172

        8  UIKit                          0x000000018ccb3b10 +[_UIBackdropViewSettings settingsForStyle:graphicsQuality:] +  936

        9  UIKit                          0x000000018d1e8680 -[UIVisualEffectView _configureForCurrentEffect] +  388

        10 UIKit                          0x000000018d1e7d10 -[UIVisualEffectView _commonInit] +  216

        11 UIKit                          0x000000018d1e7eb0 -[UIVisualEffectView initWithEffect:] +  132

        12 UIKit                          0x000000018d1e7de0 -[UIVisualEffectView initWithFrame:] +  40

        13 UIKit                          0x000000018d59d3e0 __UIBarBackgroundCommonInit +  160

        14 UIKit                          0x000000018d59d320 -[_UIBarBackground initWithFrame:] +  48

        15 UIKit                          0x000000018ccb0580 -[UINavigationBar _commonNavBarInit] +  164

        16 UIKit                          0x000000018ccaff10 -[UINavigationBar initWithFrame:] +  128

        17 UIKit                          0x000000018cf9cea0 -[UINavigationController _navigationBarHiddenByDefault:] +  92

        18 UIKit                          0x000000018cd8e390 -[UINavigationController _setNavigationBarHidden:edge:duration:] +  104

        19 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: 0x20000000

         

        Binary Images

            

        0x100054000 - 0x1036f3fff +MyApp arm64 <046fd0251a4c394ea34fd7de9235c969> /var/containers/Bundle/Application/78DB882E-6D00-4D02-AC5F-E3F3B97D8A97/MyApp.app/MyApp

        0x18578a000 - 0x1857dffff libc++.1.dylib arm64 <95f6dd603b933208ba95cc2d84613c54> /usr/lib/libc++.1.dylib

        0x186ca5000 - 0x187028fff CoreFoundation arm64 <c4824900d70e3fd5b01dbb079b63eae1> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation

        0x1877b0000 - 0x187a7efff Foundation arm64 <a6ad10553017396ebb4eba2a4ad331d8> /System/Library/Frameworks/Foundation.framework/Foundation

        0x18cc0d000 - 0x18d99afff UIKit arm64 <439dc80bfac033ed983e5bb8c416c452> /System/Library/Frameworks/UIKit.framework/UIKit

        0x18ac7d000 - 0x18b5d3fff JavaScriptCore arm64 <3a74efcce7283410ac8a55027b67d2ef> /System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore

        0x1873cf000 - 0x18773efff CFNetwork arm64 <ca09941bfd353bb8b6b679a0f14cad1e> /System/Library/Frameworks/CFNetwork.framework/CFNetwork

        0x185804000 - 0x185bddfff libobjc.A.dylib arm64 <56adf6a5a61b3ef1968bae3dd66e4893> /usr/lib/libobjc.A.dylib

        0x185c5c000 - 0x185c8bfff libdispatch.dylib arm64 <9da4900c6d953655bbfcc6b31c990e9c> /usr/lib/system/libdispatch.dylib

        0x185c8c000 - 0x185c90fff libdyld.dylib arm64 <b69bc0979de93e7c9cac9d89b284039f> /usr/lib/system/libdyld.dylib

        0x185d83000 - 0x185da7fff libsystem_kernel.dylib arm64 <04e6664af08030e1ad7d9f2249e47e18> /usr/lib/system/libsystem_kernel.dylib

        0x185e64000 - 0x185e6dfff libsystem_pthread.dylib arm64 <be17c5de3ff83a8695913479341c34ec> /usr/lib/system/libsystem_pthread.dylib

        0x1a03d9000 - 0x1a04adfff AVFAudio arm64 <291f828312d038c9aecd48a7069cc790> /System/Library/Frameworks/AVFoundation.framework/Frameworks/AVFAudio.framework/AVFAudio

        0x18893b000 - 0x18898afff FrontBoardServices arm64 <af1172067ff2304d9d3c8a2f92f04255> /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices

        0x18b7ea000 - 0x18c8d8fff WebCore arm64 <5f4c0a6773123239905a48919249deff> /System/Library/PrivateFrameworks/WebCore.framework/WebCore