Button Error

Hi,


While simulating my app, I all of a sudden get an error. I can't seem to find the solution. When I click a button to go back to the previous page, it crashes the app. Here is the console code.


2018-02-01 20:10:38.707814-0600 TapCars[86845:8711078] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/Julian/Library/Developer/CoreSimulator/Devices/4E67E16A-9BD8-44FA-8B27-7F8EC0828BD4/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles

2018-02-01 20:10:38.708398-0600 TapCars[86845:8711078] [MC] Reading from private effective user settings.

2018-02-01 20:10:38.712958-0600 TapCars[86845:8711179] Could not successfully update network info during initialization.

2018-02-01 20:10:38.788437-0600 TapCars[86845:8711078] [MC] Lazy loading NSBundle MobileCoreServices.framework

2018-02-01 20:10:38.789083-0600 TapCars[86845:8711078] [MC] Loaded MobileCoreServices.framework

2018-02-01 20:10:39.147955-0600 TapCars[86845:8711199] <Google> To get test ads on this device, call: request.testDevices = @[ kGADSimulatorID ];

2018-02-01 20:10:39.488720-0600 TapCars[86845:8711192] [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1757 received sct extension length is less than sct data length

2018-02-01 20:10:39.830521-0600 TapCars[86845:8711192] [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1757 received sct extension length is less than sct data length

2018-02-01 20:10:40.160719-0600 TapCars[86845:8711307] [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1757 received sct extension length is less than sct data length

2018-02-01 20:10:40.695869-0600 TapCars[86845:8711178] Month 13 is out of bounds

2018-02-01 20:10:40.949864-0600 TapCars[86845:8711199] [MediaRemote] [AVOutputContext] WARNING: AVF context unavailable for MRAVOutputContextCreateIndependentRoutingContext

2018-02-01 20:10:40.965858-0600 TapCars[86845:8711203] CoreAnimation: [EAGLContext renderbufferStorage:fromDrawable:] was called from a non-main thread in an implicit transaction! Note that this may be unsafe without an explicit CATransaction or a call to [CATransaction flush].

2018-02-01 20:10:40.971471-0600 TapCars[86845:8711203] CoreAnimation: [EAGLContext renderbufferStorage:fromDrawable:] was called from a non-main thread in an implicit transaction! Note that this may be unsafe without an explicit CATransaction or a call to [CATransaction flush].

>>>> frameSizeChanged = 4096

>>>> frameSizeChanged = 4096

2018-02-01 20:10:41.852131-0600 TapCars[86845:8711192] [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1757 received sct extension length is less than sct data length

2018-02-01 20:10:43.267640-0600 TapCars[86845:8711078] Warning: Attempt to present <TapCars.SettingsViewController: 0x7fb6c5130850> on <TapCars.GameViewController: 0x7fb6c250c690> whose view is not in the window hierarchy!

2018-02-01 20:10:44.151166-0600 TapCars[86845:8711177] [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1757 received sct extension length is less than sct data length

2018-02-01 20:10:44.161004-0600 TapCars[86845:8711307] [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1757 received sct extension length is less than sct data length

2018-02-01 20:10:44.287193-0600 TapCars[86845:8711177] [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1757 received sct extension length is less than sct data length

2018-02-01 20:10:44.294561-0600 TapCars[86845:8711177] [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1757 received sct extension length is less than sct data length

2018-02-01 20:10:54.171751-0600 TapCars[86845:8711078] Warning: Attempt to present <TapCars.StoreViewController: 0x7fb6c5155b40> on <TapCars.SettingsViewController: 0x7fb6c51504f0> whose view is not in the window hierarchy!

2018-02-01 20:11:07.633371-0600 TapCars[86845:8711078] -[TapCars.StoreViewController ad:]: unrecognized selector sent to instance 0x7fb6c2552cc0

2018-02-01 20:11:07.638939-0600 TapCars[86845:8711078] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[TapCars.StoreViewController ad:]: unrecognized selector sent to instance 0x7fb6c2552cc0'

*** First throw call stack:

(

0 CoreFoundation 0x000000010d0961ab __exceptionPreprocess + 171

1 libobjc.A.dylib 0x000000010b5bdf41 objc_exception_throw + 48

2 CoreFoundation 0x000000010d116a34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132

3 UIKit 0x000000010fafa761 -[UIResponder doesNotRecognizeSelector:] + 295

4 CoreFoundation 0x000000010d0190a8 ___forwarding___ + 1432

5 CoreFoundation 0x000000010d018a88 _CF_forwarding_prep_0 + 120

6 UIKit 0x000000010f8cc275 -[UIApplication sendAction:to:from:forEvent:] + 83

7 UIKit 0x000000010fa494a2 -[UIControl sendAction:to:forEvent:] + 67

8 UIKit 0x000000010fa497bf -[UIControl _sendActionsForEvents:withEvent:] + 450

9 UIKit 0x000000010fa486ec -[UIControl touchesEnded:withEvent:] + 618

10 UIKit 0x000000010f941bbb -[UIWindow _sendTouchesForEvent:] + 2807

11 UIKit 0x000000010f9432de -[UIWindow sendEvent:] + 4124

12 UIKit 0x000000010f8e6e36 -[UIApplication sendEvent:] + 352

13 UIKit 0x0000000110229434 __dispatchPreprocessedEventFromEventQueue + 2809

14 UIKit 0x000000011022c089 __handleEventQueueInternal + 5957

15 CoreFoundation 0x000000010d039231 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17

16 CoreFoundation 0x000000010d0d8e41 __CFRunLoopDoSource0 + 81

17 CoreFoundation 0x000000010d01db49 __CFRunLoopDoSources0 + 185

18 CoreFoundation 0x000000010d01d12f __CFRunLoopRun + 1279

19 CoreFoundation 0x000000010d01c9b9 CFRunLoopRunSpecific + 409

20 GraphicsServices 0x00000001149ce9c6 GSEventRunModal + 62

21 UIKit 0x000000010f8ca5e8 UIApplicationMain + 159

22 TapCars 0x000000010aac71a7 main + 55

23 libdyld.dylib 0x0000000112ac2d81 start + 1

)

libc++abi.dylib: terminating with uncaught exception of type NSException

(lldb)

Replies

You read data from the network when tapping the button ?


Seems you have an encryption problem ; may be the length of payload.


Can have a look here, if tha-t may help.

h ttps://stackoverflow.com/questions/47490484/how-to-fix-boringssl-length-error-in-swift-4