Crash only happening on iPhone 7 and 7 Plus

Hi all,

I really hope that someone can help me with the following issue. I’m unable to figure out why it’s crashing.
I’ve tested the app on iPhone 6 and 6S without any issues.

This crash seems to only happen on iPhone 7 and 7 Plus.
I would really appreciate if anyone could help me with this or even just point me in the right direction.

Below is the Crashlytics log:

#0. Crashed: com.apple.main-thread
0 InstaVidLite 0x10006dfc4 specialized SignInViewController.signInButtonPressed(UIButton) → () (SignInViewController.swift:110)
1 InstaVidLite 0x10006b868 @objc SignInViewController.signInButtonPressed(UIButton) → () (SignInViewController.swift)
2 UIKit 0x1878d6484 -[UIApplication sendAction:to:from:forEvent:] + 96
3 UIKit 0x1878d6404 -[UIControl sendAction:to:forEvent:] + 80
4 UIKit 0x1878c08b8 -[UIControl _sendActionsForEvents:withEvent:] + 452
5 UIKit 0x1878d5cf0 -[UIControl touchesEnded:withEvent:] + 584
6 UIKit 0x187e66c90 _UIGestureEnvironmentSortAndSendDelayedTouches + 4484
7 UIKit 0x187e62d28 _UIGestureEnvironmentUpdate + 1164
8 UIKit 0x187e62848 -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:] + 408
9 UIKit 0x187e61b04 -[UIGestureEnvironment _updateGesturesForEvent:window:] + 268
10 UIKit 0x1878d0a44 -[UIWindow sendEvent:] + 2960
11 UIKit 0x1878a152c -[UIApplication sendEvent:] + 340
12 UIKit 0x18808ea54 __dispatchPreprocessedEventFromEventQueue + 2736
13 UIKit 0x1880884bc __handleEventQueue + 784
14 CoreFoundation 0x1819f4278 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24
15 CoreFoundation 0x1819f3bc0 __CFRunLoopDoSources0 + 524
16 CoreFoundation 0x1819f17c0 __CFRunLoopRun + 804
17 CoreFoundation 0x181920048 CFRunLoopRunSpecific + 444
18 GraphicsServices 0x1833a6198 GSEventRunModal + 180
19 UIKit 0x18790c2fc -[UIApplication _run] + 684
20 UIKit 0x187907034 UIApplicationMain + 208
21 InstaVidLite 0x1001145a8 main (AppDelegate.swift:17)
22 libdispatch.dylib 0x1809045b8 (Missing)

#0. Crashed: com.apple.main-thread
0 InstaVidLite 0x10006dfc4 specialized SignInViewController.signInButtonPressed(UIButton) → () (SignInViewController.swift:110)
1 InstaVidLite 0x10006b868 @objc SignInViewController.signInButtonPressed(UIButton) → () (SignInViewController.swift)
2 UIKit 0x1878d6484 -[UIApplication sendAction:to:from:forEvent:] + 96
3 UIKit 0x1878d6404 -[UIControl sendAction:to:forEvent:] + 80
4 UIKit 0x1878c08b8 -[UIControl _sendActionsForEvents:withEvent:] + 452
5 UIKit 0x1878d5cf0 -[UIControl touchesEnded:withEvent:] + 584
6 UIKit 0x187e66c90 _UIGestureEnvironmentSortAndSendDelayedTouches + 4484
7 UIKit 0x187e62d28 _UIGestureEnvironmentUpdate + 1164
8 UIKit 0x187e62848 -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:] + 408
9 UIKit 0x187e61b04 -[UIGestureEnvironment _updateGesturesForEvent:window:] + 268
10 UIKit 0x1878d0a44 -[UIWindow sendEvent:] + 2960
11 UIKit 0x1878a152c -[UIApplication sendEvent:] + 340
12 UIKit 0x18808ea54 __dispatchPreprocessedEventFromEventQueue + 2736
13 UIKit 0x1880884bc __handleEventQueue + 784
14 CoreFoundation 0x1819f4278 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24
15 CoreFoundation 0x1819f3bc0 __CFRunLoopDoSources0 + 524
16 CoreFoundation 0x1819f17c0 __CFRunLoopRun + 804
17 CoreFoundation 0x181920048 CFRunLoopRunSpecific + 444
18 GraphicsServices 0x1833a6198 GSEventRunModal + 180
19 UIKit 0x18790c2fc -[UIApplication _run] + 684
20 UIKit 0x187907034 UIApplicationMain + 208
21 InstaVidLite 0x1001145a8 main (AppDelegate.swift:17)
22 libdispatch.dylib 0x1809045b8 (Missing)

#1. com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x1809f816c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1809f7fdc mach_msg + 72
2 CoreFoundation 0x1819f3cec __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x1819f1908 __CFRunLoopRun + 1132
4 CoreFoundation 0x181920048 CFRunLoopRunSpecific + 444
5 Foundation 0x182431a8c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x18245257c -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
7 UIKit 0x188281a2c -[UIEventFetcher threadMain] + 136
8 Foundation 0x18252f47c NSThread__start + 1024
9 libsystem_pthread.dylib 0x180adc850 _pthread_body + 240
10 libsystem_pthread.dylib 0x180adc760 _pthread_body + 282
11 libsystem_pthread.dylib 0x180ad9dac thread_start + 4

#2. Thread
0 libsystem_kernel.dylib 0x180a16a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x180ada178 _pthread_wqthread + 968
2 libsystem_pthread.dylib 0x180ad9da4 start_wqthread + 4

#3. Thread
0 libsystem_kernel.dylib 0x180a16a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x180ada178 _pthread_wqthread + 968
2 libsystem_pthread.dylib 0x180ad9da4 start_wqthread + 4

#4. com.twitter.crashlytics.ios.MachExceptionServer
0 InstaVidLite 0x100155320 CLSProcessRecordAllThreads (CLSProcess.c:376)
1 InstaVidLite 0x100155320 CLSProcessRecordAllThreads (CLSProcess.c:376)
2 InstaVidLite 0x1001551dc CLSProcessRecordAllThreads (CLSProcess.c:407)
3 InstaVidLite 0x100145988 CLSHandler (CLSHandler.m:26)
4 InstaVidLite 0x10014092c CLSMachExceptionServer (CLSMachException.c:446)
5 libsystem_pthread.dylib 0x180adc850 _pthread_body + 240
6 libsystem_pthread.dylib 0x180adc760 _pthread_body + 282
7 libsystem_pthread.dylib 0x180ad9dac thread_start + 4

#5. Thread
0 libsystem_kernel.dylib 0x180a16a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x180ada35c _pthread_wqthread + 1452
2 libsystem_pthread.dylib 0x180ad9da4 start_wqthread + 4

#6. com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x1809f816c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1809f7fdc mach_msg + 72
2 CoreFoundation 0x1819f3cec __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x1819f1908 __CFRunLoopRun + 1132
4 CoreFoundation 0x181920048 CFRunLoopRunSpecific + 444
5 CFNetwork 0x182111fd0 +[NSURLConnection(Loader) _resourceLoadLoop:] + 336
6 Foundation 0x18252f47c NSThread__start + 1024
7 libsystem_pthread.dylib 0x180adc850 _pthread_body + 240
8 libsystem_pthread.dylib 0x180adc760 _pthread_body + 282
9 libsystem_pthread.dylib 0x180ad9dac thread_start + 4

#7. Thread
0 libsystem_kernel.dylib 0x180a16a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x180ada35c _pthread_wqthread + 1452
2 libsystem_pthread.dylib 0x180ad9da4 start_wqthread + 4

#8. RLMRealm notification listener
0 libsystem_kernel.dylib 0x1809fc630 kevent + 8
1 Realm 0x1004d41f4 realm::_impl::ExternalCommitHelper::listen() (external_commit_helper.cpp:302)
2 Realm 0x1004d48b4 realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::Realm*)::$_0::__invoke(void*) (external_commit_helper.cpp:230)
3 libsystem_pthread.dylib 0x180adc850 _pthread_body + 240
4 libsystem_pthread.dylib 0x180adc760 _pthread_body + 282
5 libsystem_pthread.dylib 0x180ad9dac thread_start + 4

@martinjbt. Thanks very much for your question, and my apologies for the delayed response.

For complex technical questions like this, I honestly would recommend posting such questions on www.stackoverflow.com , and I can almost guarantee you that you will get a solution within 24 hours. :slight_smile:

I hope this helps!

All the best!