Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My app is rejected with Exception EXC_BREAKPOINT (SIGTRAP)

I tested my app on iPhone and iPad devices and it works fine, also I tested it on iOS 10.1.1 and on IPV6 network and it also works fine but after uploading my app to the app store, it is rejected because it crashes when login if the device is offline or on Wifi. They gave me a crash report and after I symplocited it, I get thhis Info :

Date/Time:           2016-11-01 10:07:03.2150 -0700
Launch Time:         2016-11-01 10:05:21.7124 -0700
OS Version:          iPhone OS 10.1 (14B72)
Report Version:      104

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001000f18c0
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [0]
Triggered by Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   MyApp                       -[FIRMessagingSecureSocket closeStream:] (in MyApp) + 56
1   MyApp                       -[FIRMessagingRmq2PersistentStore openDatabase:] (in MyApp) + 228
2   MyApp                       -[FIRMessagingReceiver didSendDataMessageWithID:] (in MyApp) + 128
3   Foundation                      0x00000001835e08f8 
4   CoreFoundation                  0x0000000182aa48f4 
5   CoreFoundation                  0x0000000182aa4608 
6   CoreFoundation                  0x0000000182aa3ec4 
7   CoreFoundation                  0x0000000182aa1ac0 
8   CoreFoundation                  0x00000001829d0048 
9   GraphicsServices                0x0000000184456198 
10  UIKit                           0x00000001889b42fc 
11  UIKit                           0x00000001889af034 
12  MyApp                       -[FIRMessagingClient tryToConnect] (in MyApp) + 212 
13  libdyld.dylib                   0x00000001819b45b8 

update : I published new version put also get this crash log

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001000a1658
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [0]
Triggered by Thread:  0

Filtered syslog:
None found

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   MyApp                       [FIRAMeasurement setUserAttributeOnWorkerQueue:]      (in MyApp) + 580
1   MyApp                       [FIRAMeasurement uploadData] (MyApp) + 180 0x100054000 + 303808
2   MyApp                       [FIRAMeasurement reportOSUpdateOnWorkerQueue] (in PetCasa Vet) + 124
3   Foundation                      0x0000000187acc8f8 0x1879c1000 + 1095928
4   CoreFoundation                  0x0000000186f908f4 0x186eb3000 + 907508
5   CoreFoundation                  0x0000000186f90608 0x186eb3000 + 906760
6   CoreFoundation                  0x0000000186f8fec4 0x186eb3000 + 904900
7   CoreFoundation                  0x0000000186f8dac0 0x186eb3000 + 895680
8   CoreFoundation                  0x0000000186ebc048 0x186eb3000 + 36936
9   GraphicsServices                0x0000000188942198 0x188936000 + 49560
10  UIKit                           0x000000018cea02fc 0x18ce25000 + 504572
11  UIKit                           0x000000018ce9b034 0x18ce25000 + 483380
12  MyApp                       0x00000001000907d8 (in MyApp) + 448
13  libdyld.dylib                   0x0000000185ea05b8 0x185e9c000 + 17848

and this log crash :

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001000e5658
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [0]
Triggered by Thread:  0

Filtered syslog:
None found

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   MyApp                   0x00000001000e5658 (in MyApp) + 1060
1   MyApp                       [FIRMessagingConnection  loginRequestWithToken:authID:] (in MyApp) + 300
2   MyApp                       [FIRMessagingConnection initWithAuthID:token:host:port:runLoop:rmq2Manager:gcmManager:] (in MyApp) + 32
3   Foundation                      0x0000000187acc8f8 0x1879c1000 + 1095928
4   CoreFoundation                  0x0000000186f908f4 0x186eb3000 + 907508
5   CoreFoundation                  0x0000000186f90608 0x186eb3000 + 906760
6   CoreFoundation                  0x0000000186f8fec4 0x186eb3000 + 904900
7   CoreFoundation                  0x0000000186f8dac0 0x186eb3000 + 895680
8   CoreFoundation                  0x0000000186ebc048 0x186eb3000 + 36936
9   GraphicsServices                0x0000000188942198 0x188936000 + 49560
10  UIKit                           0x000000018cea02fc 0x18ce25000 + 504572
11  UIKit                           0x000000018ce9b034 0x18ce25000 + 483380
12  MyApp                       [FIRInstanceIDRegistrationClient parseToken:authToken:withRequestID:handler:] (in MyApp) + 564 
13  libdyld.dylib                   0x0000000185ea05b8 0x185e9c000 + 17848
like image 490
Hosny Avatar asked Nov 02 '16 12:11

Hosny


People also ask

What is Exc_breakpoint Sigtrap?

EXC_BREAKPOINT (SIGTRAP) is a trace trap interrupted the process. It gives an attached debugger, if any, a chance to interrupt the process at a specific point in its execution.

What is Exc_breakpoint?

EXC_BREAKPOINT (SIGTRAP) and EXC_BAD_INSTRUCTION (SIGILL)The breakpoint exception type indicates a trace trap interrupted the process. A trace trap gives an attached debugger the chance to interrupt the process at a specific point in its execution. On ARM processors, this appears as EXC_BREAKPOINT (SIGTRAP).


1 Answers

From apple documentation

Trace Trap [EXC_BREAKPOINT // SIGTRAP]

 ......
 ......
Swift code will terminate with this exception type if an unexpected
condition is encountered at runtime such as:
 1- a non-optional type with a nil 
 2- value a failed forced type conversion

In my app I use location and I send it to backend, and it works fine, but when opening app at first time, system show alert to say that my app want to use your location allow or not allow, if user didn't allow so location methods will not work and location will be nil and unfortunately I didn't check if location is nil so when unwrap it app crashed, it's my mistake.

like image 107
Hosny Avatar answered Sep 22 '22 20:09

Hosny