App Crash Log Main Cause

Hi Every 1,


This is my first app on IOS , my app has been rejected for 3 times with the reson of IPV6 connectivity .

finally i have get the symbolicated Crach report but i can't find the main reason of the crash

any help will be much appreciated


my code when its crash :


import UIKit
import SDWebImage
class Codingtbl: UITableViewController {
    @IBOutlet var imgtbl: UITableView!
  
  
    var imgarray = [Images]()
  
    let backendless = Backendless()
  
    override func viewDidLoad() {
        super.viewDidLoad()
       imgtbl.delegate=self
        imgtbl.dataSource=self
    }
  
    override func viewDidAppear(_ animated: Bool) {
    loaddatawithquery()
    }
    override func numberOfSections(in tableView: UITableView) -> Int {
        /
        return 1
    }
    override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        /
        return imgarray.count
    }

    override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
      
        if let cell = self.imgtbl.dequeueReusableCell(withIdentifier: "csmcell") as? csmcell{
            let imgurl = URL(string : self.imgarray [(indexPath as NSIndexPath).row].imgurl)
            cell.imgiv.sd_setImage(with: imgurl)
          
            return cell
        }else{
            let cell = csmcell()
            let imgurl = URL(string : self.imgarray [(indexPath as NSIndexPath).row].imgurl)
            cell.imgiv.sd_setImage(with: imgurl)
            return cell
    }
}
    func loaddatawithquery(){
      
      
        let whereClause = "catogary ='telecom'"
        let dataQuery = BackendlessDataQuery()
        dataQuery.queryOptions.pageSize=50
        dataQuery.whereClause = whereClause
        backendless.data.of(Images.ofClass()).find(dataQuery,response: {(result: BackendlessCollection?) -> Void in
            let data = result?.getCurrentPage()
          
            for obj in data! as! [Images] {
              
                self.imgarray.append(obj)
              
                self.imgtbl.reloadData()
            }
            },
          error: { (fault: Fault?) -> Void in
          let alert = UIAlertController(title: "info", message:"please connect to internet", preferredStyle: .alert)
          alert.addAction(UIAlertAction(title: "OK", style: .default) { _ in
          })
         self.present(alert, animated: true){}
     
         
        })
    }
}


Crash Report :


Exception Type: EXC_CRASH (SIGABRT) 
Exception Codes: 0x0000000000000000, 0x0000000000000000 
Exception Note: EXC_CORPSE_NOTIFY 
Triggered by Thread: 0 Application Specific Information: abort() called 
Filtered syslog: None found 
Thread 0 name: Dispatch queue: com.apple.main-thread 
Thread 0 Crashed:
0 ibsystem_kernel.dylib        0x0000000190f0a014 __pthread_kill + 8 
1 libsystem_pthread.dylib      0x0000000190fd1460 pthread_kill + 112
 2 libsystem_c.dylib           0x0000000190e7e3f4 abort + 140 
3 libswiftCore.dylib           0x00000001003e7570 swift_deletedMethodError (__hidden#17462_:282) 
4 libswiftCore.dylib           0x00000001003ccfdc _hidden#16819_ (__hidden#16861_:392)
 5 libswiftCore.dylib          0x00000001003cd06c swift_dynamicCastClass (__hidden#16861_:478) 
6 libswiftCore.dylib           0x00000001003cdbd0 swift_dynamicCastUnknownClassUnconditional (__hidden#16793_:49) 
7 libswiftCore.dylib           0x00000001003d00a4 _hidden#16825_ (__hidden#16861_:1637) 
8 libswiftCore.dylib           0x00000001003cec6c swift_dynamicCast (__hidden#16861_:1676) 
9 libswiftCore.dylib           0x00000001003cefb8 swift_dynamicCast (__hidden#16861_:1684)
 10 Horizon Wave               0x000000010003963c _hidden#1084_ (__hidden#1140_:0) 
11 Horizon Wave                0x0000000100039d98 _hidden#1088_ (__hidden#1140_:0) 
12 Horizon Wave                0x000000010003a260 _hidden#1091_ (__hidden#1140_:0) 
13 Horizon Wave                0x000000010003a918 _hidden#1095_ (__hidden#1140_:0)
 14 Horizon Wave               0x0000000100067964 _hidden#3408_ (__hidden#3439_:302) 
15 Horizon Wave                0x0000000100067404 _hidden#3398_ (__hidden#3439_:208) 
16 Horizon Wave                0x0000000100067428 _hidden#3398_ (__hidden#3439_:214) 
17 Horizon Wave                0x000000010003cc54 _hidden#1404_ (__hidden#1447_:290) 
18 libdispatch.dylib           0x0000000190dc5200 _dispatch_call_block_and_release + 24
 19 libdispatch.dylib          0x0000000190dc51c0 _dispatch_client_callout + 16 2
0 libdispatch.dylib            0x0000000190dc9d6c _dispatch_main_queue_callback_4CF + 1000 
21 CoreFoundation              0x0000000191ee9f2c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
 22 CoreFoundation             0x0000000191ee7b18 __CFRunLoopRun + 1660 
23 CoreFoundation              0x0000000191e16048 CFRunLoopRunSpecific + 444 
24 GraphicsServices            0x0000000193899198 GSEventRunModal + 180 
25 UIKit                       0x0000000197df0628 -[UIApplication _run] + 684 
26 UIKit                       0x0000000197deb360 UIApplicationMain + 208 
27 Horizon Wave                0x000000010002efd8 main (__hidden#367_:12) 
28 libdyld.dylib               0x0000000190df85b8 start + 4

Replies

To be clear, your app was rejected for crashing, not for “IPV6 connectivity” issues. Regardless of the state of the network, your app shouldn’t crash.

The backtrace you posted shows that the crash was triggered by some sort of type cast made by your app. Specifically, frame 9 is part of Swift’s type casting machinery and frame 10 is your app.

Unfortunately that’s about as far as we can get here because the crash backtrace isn’t symbolicated properly. Specifically, frame 10 doesn’t show the function name or line number, as you’d expect in a symbolicated backtrace. You’ll need to get that sorted out. Technote 2151 Understanding and Analyzing iOS Application Crash Reports offers advice on that front.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi Eskimo,

My App is got rejected many time by Apple review team but not able to find out the issue can you please help me with the crash log so that i can find out the issue.


Message of Rejection :

Your app crashed on iPhone 6 and iPad Air running iOS 10.3.2 connected to an IPv6 network when we:


-enter code and tap to login


This occurred when your app was used:


- On Wi-Fi


Here is the crash Log :-


Date/Time:

2017-06-30 17:06:34.9993 -0700

Launch Time:

2017-06-30 17:03:19.3633 -0700

OS Version:

iPhone OS 10.3.2 (14F89)

Report Version:

104


Exception Type: EXC_CRASH (SIGABRT)

Exception Codes: 0x0000000000000000, 0x0000000000000000

Exception Note: EXC_CORPSE_NOTIFY

Triggered by Thread: 11


Application Specific Information:

abort() called


Filtered syslog:

None found


Thread 0 name: Dispatch queue: com.apple.main-thread

Thread 0:

0 libsystem_kernel.dylib 0x000000018d05f224 0x18d05e000 + 4644

1 libsystem_kernel.dylib 0x000000018d05f09c 0x18d05e000 + 4252

2 CoreFoundation 0x000000018e030e90 0x18df56000 + 896656

3 CoreFoundation 0x000000018e02eae4 0x18df56000 + 887524

4 CoreFoundation 0x000000018df5eda4 0x18df56000 + 36260

5 GraphicsServices 0x000000018f9c8074 0x18f9bc000 + 49268

6 UIKit 0x0000000194219058 0x1941a4000 + 479320

7 KidsAcademy 0x00000001000b8484 0x10004c000 + 443524

8 libdyld.dylib 0x000000018cf6d59c 0x18cf69000 + 17820


Thread 1 name: com.apple.uikit.eventfetch-thread

Thread 1:

0 libsystem_kernel.dylib 0x000000018d05f224 0x18d05e000 + 4644

1 libsystem_kernel.dylib 0x000000018d05f09c 0x18d05e000 + 4252

2 CoreFoundation 0x000000018e030e90 0x18df56000 + 896656

3 CoreFoundation 0x000000018e02eae4 0x18df56000 + 887524

4 CoreFoundation 0x000000018df5eda4 0x18df56000 + 36260

5 Foundation 0x000000018ea78d74 0x18ea6c000 + 52596

6 Foundation 0x000000018ea99b44 0x18ea6c000 + 187204

7 UIKit 0x0000000194ba36a8 0x1941a4000 + 10483368

8 Foundation 0x000000018eb762d8 0x18ea6c000 + 1090264

9 libsystem_pthread.dylib 0x000000018d14568c 0x18d142000 + 13964

10 libsystem_pthread.dylib 0x000000018d14559c 0x18d142000 + 13724

11 libsystem_pthread.dylib 0x000000018d142cb4 0x18d142000 + 3252


Thread 2 name: AXSpeech

Thread 2:

0 libsystem_kernel.dylib 0x000000018d05f224 0x18d05e000 + 4644

1 libsystem_kernel.dylib 0x000000018d05f09c 0x18d05e000 + 4252

2 CoreFoundation 0x000000018e030e90 0x18df56000 + 896656

3 CoreFoundation 0x000000018e02eae4 0x18df56000 + 887524

4 CoreFoundation 0x000000018df5eda4 0x18df56000 + 36260

5 Foundation 0x000000018ea78d74 0x18ea6c000 + 52596

6 libAXSpeechManager.dylib 0x0000000199818e5c 0x199812000 + 28252

7 Foundation 0x000000018eb762d8 0x18ea6c000 + 1090264

8 libsystem_pthread.dylib 0x000000018d14568c 0x18d142000 + 13964

9 libsystem_pthread.dylib 0x000000018d14559c 0x18d142000 + 13724

10 libsystem_pthread.dylib 0x000000018d142cb4 0x18d142000 + 3252


Thread 3 name: AVAudioSession Notify Thread

Thread 3:

0 libsystem_kernel.dylib 0x000000018d05f224 0x18d05e000 + 4644

1 libsystem_kernel.dylib 0x000000018d05f09c 0x18d05e000 + 4252

2 CoreFoundation 0x000000018e030e90 0x18df56000 + 896656

3 CoreFoundation 0x000000018e02eae4 0x18df56000 + 887524

4 CoreFoundation 0x000000018df5eda4 0x18df56000 + 36260

5 AVFAudio 0x00000001a82a2540 0x1a822e000 + 476480

6 AVFAudio 0x00000001a82c8814 0x1a822e000 + 632852

7 libsystem_pthread.dylib 0x000000018d14568c 0x18d142000 + 13964

8 libsystem_pthread.dylib 0x000000018d14559c 0x18d142000 + 13724

9 libsystem_pthread.dylib 0x000000018d142cb4 0x18d142000 + 3252


Thread 4 name: AXSpeech

Thread 4:

0 libsystem_kernel.dylib 0x000000018d05f224 0x18d05e000 + 4644

1 libsystem_kernel.dylib 0x000000018d05f09c 0x18d05e000 + 4252

2 CoreFoundation 0x000000018e030e90 0x18df56000 + 896656

3 CoreFoundation 0x000000018e02eae4 0x18df56000 + 887524

4 CoreFoundation 0x000000018df5eda4 0x18df56000 + 36260

5 Foundation 0x000000018ea78d74 0x18ea6c000 + 52596

6 libAXSpeechManager.dylib 0x0000000199818e5c 0x199812000 + 28252

7 Foundation 0x000000018eb762d8 0x18ea6c000 + 1090264

8 libsystem_pthread.dylib 0x000000018d14568c 0x18d142000 + 13964

9 libsystem_pthread.dylib 0x000000018d14559c 0x18d142000 + 13724

10 libsystem_pthread.dylib 0x000000018d142cb4 0x18d142000 + 3252


Thread 5 name: com.twitter.crashlytics.ios.MachExceptionServer

Thread 5:

0 libsystem_kernel.dylib 0x000000018d05f224 0x18d05e000 + 4644

1 libsystem_kernel.dylib 0x000000018d05f09c 0x18d05e000 + 4252

2 KidsAcademy 0x00000001000fabb4 0x10004c000 + 715700

3 libsystem_pthread.dylib 0x000000018d14568c 0x18d142000 + 13964

4 libsystem_pthread.dylib 0x000000018d14559c 0x18d142000 + 13724

5 libsystem_pthread.dylib 0x000000018d142cb4 0x18d142000 + 3252


Thread 6 name: com.apple.NSURLConnectionLoader

Thread 6:

0 libsystem_kernel.dylib 0x000000018d05f224 0x18d05e000 + 4644

1 libsystem_kernel.dylib 0x000000018d05f09c 0x18d05e000 + 4252

2 CoreFoundation 0x000000018e030e90 0x18df56000 + 896656

3 CoreFoundation 0x000000018e02eae4 0x18df56000 + 887524

4 CoreFoundation 0x000000018df5eda4 0x18df56000 + 36260

5 CFNetwork 0x000000018e76adf4 0x18e689000 + 925172

6 Foundation 0x000000018eb762d8 0x18ea6c000 + 1090264

7 libsystem_pthread.dylib 0x000000018d14568c 0x18d142000 + 13964

8 libsystem_pthread.dylib 0x000000018d14559c 0x18d142000 + 13724

9 libsystem_pthread.dylib 0x000000018d142cb4 0x18d142000 + 3252


Thread 7:

0 libsystem_pthread.dylib 0x000000018d142ca8 0x18d142000 + 3240


Thread 8:

0 libsystem_pthread.dylib 0x000000018d142ca8 0x18d142000 + 3240


Thread 9:

0 libsystem_pthread.dylib 0x000000018d142ca8 0x18d142000 + 3240


Thread 10:

0 libsystem_pthread.dylib 0x000000018d142ca8 0x18d142000 + 3240


Thread 11 name: Dispatch queue: NSOperationQueue 0x1700339e0 :: NSOperation 0x170441e30 (QOS: DEFAULT)

Thread 11 Crashed:

0 libsystem_kernel.dylib 0x000000018d07d014 0x18d05e000 + 126996

1 libsystem_pthread.dylib 0x000000018d147264 0x18d142000 + 21092

2 libsystem_c.dylib 0x000000018cff1a60 0x18cf90000 + 399968

3 libsystem_c.dylib 0x000000018cff19d0 0x18cf90000 + 399824

4 libswiftCore.dylib 0x00000001004e75fc 0x100318000 + 1897980

5 libswiftCore.dylib 0x00000001004cd6bc 0x100318000 + 1791676

6 libswiftCore.dylib 0x00000001004cd74c 0x100318000 + 1791820

7 libswiftCore.dylib 0x00000001004f6210 0x100318000 + 1958416

8 KidsAcademy 0x00000001000c90d4 0x10004c000 + 512212

9 CFNetwork 0x000000018e68c34c 0x18e689000 + 13132

10 CFNetwork 0x000000018e6a4048 0x18e689000 + 110664

11 Foundation 0x000000018eb51814 0x18ea6c000 + 940052

12 Foundation 0x000000018ea96770 0x18ea6c000 + 173936

13 Foundation 0x000000018ea86b28 0x18ea6c000 + 109352

14 Foundation 0x000000018eb53bb0 0x18ea6c000 + 949168

15 libdispatch.dylib 0x000000018cf3a9a0 0x18cf39000 + 6560

16 libdispatch.dylib 0x000000018cf48ad4 0x18cf39000 + 64212

17 libdispatch.dylib 0x000000018cf3e2cc 0x18cf39000 + 21196

18 libdispatch.dylib 0x000000018cf4aa50 0x18cf39000 + 72272

19 libdispatch.dylib 0x000000018cf4a7d0 0x18cf39000 + 71632

20 libsystem_pthread.dylib 0x000000018d143100 0x18d142000 + 4352

21 libsystem_pthread.dylib 0x000000018d142cac 0x18d142000 + 3244


Thread 11 crashed with ARM Thread State (64-bit):

x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000001

x4: 0x0000000000000000 x5: 0x0000000000989680 x6: 0x0000000000000000 x7: 0x0000000000000000

x8: 0x000000000c000000 x9: 0x0000000004000000 x10: 0x00000000ffffffff x11: 0x00000001b6ad6d63

x12: 0x00000001b6ad6d63 x13: 0x0000000000000018 x14: 0x0000000000000001 x15: 0x0000000000000881

x16: 0x0000000000000148 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000006

x20: 0x000000016e177000 x21: 0x00000001b4358c28 x22: 0x000000016e176848 x23: 0x000000016e176830

x24: 0x00000001b434ed80 x25: 0x0000000170679c40 x26: 0x0000000000000000 x27: 0x000000016e1770e0

x28: 0x0000000000000000 fp: 0x000000016e176740 lr: 0x000000018d147264

sp: 0x000000016e176720 pc: 0x000000018d07d014 cpsr: 0x00000000


Binary Images:

0x10004c000 - 0x10016ffff KidsAcademy arm64 <292b36e471673884a60bbd7170168fd3> /var/containers/Bundle/Application/E4A21E0C-10E2-412F-A912-675045E97919/KidsAcademy.app/KidsAcademy

0x1001d4000 - 0x1001dffff libswiftCoreAudio.dylib arm64 <2a83b7f4b26d31f5aa8fe088546ac194> /var/containers/Bundle/Application/E4A21E0C-10E2-412F-A912-675045E97919/KidsAcademy.app/Frameworks/libswiftCoreAudio.dylib

0x1001f0000 - 0x1001f7fff libswiftAVFoundation.dylib arm64 <f23f27a07858354da0a922f06d0b7435> /var/containers/Bundle/Application/E4A21E0C-10E2-412F-A912-675045E97919/KidsAcademy.app/Frameworks/libswiftAVFoundation.dylib

0x100204000 - 0x10020ffff libswiftCoreGraphics.dylib arm64 <adf5f288bfa73b1295fbda0be4041582> /var/containers/Bundle/Application/E4A21E0C-10E2-412F-A912-675045E97919/KidsAcademy.app/Frameworks/libswiftCoreGraphics.dylib ........


Please Help me out.


Thank You

Bandan Preet Kaur

You need to symbolicate your crash log (see TN2151) so that you can work out what’s happening on frame 8 of thread 11. That code is cause the Swift runtime to call

abort
, which is the immediate cause of your crash.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"