在加载包含大量图形的TableView时,应用程序崩溃。 我已经使用SwiftCharts制作图表。
SwiftCharts ver 0.6 https://github.com/i-schuetz/SwiftCharts
{app_name":"<AppName>","timestamp":"2019-02-28 12:23:17.42 -0300","app_version":"1.20.0","slice_uuid":"6a161ab3-8650-3bf4-8a23-82ec1ec66e0c","adam_id":0,"build_version":"1","bundleID":"<BundleID>","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 12.1.4 (16D57)","incident_id":"539C20DD-B05D-4A4B-9490-02F918B2D76C","name":"<AppName>"}
Incident Identifier: 539C20DD-B05D-4A4B-9490-02F918B2D76C
CrashReporter Key: e91d785129fda9bbd014479a50925a1c7bd315c7
Hardware Model: iPad5,4
Process: <AppName> [3474]
Path: /private/var/containers/Bundle/Application/01B3F900-27C8-4FA0-87DD-D47623337CE6/<AppName>.app/<AppName>
Identifier: <BundleID>
Version: 1 (1.20.0)
AppStoreTools: 10B61
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Coalition: <BundleID> [725]
Date/Time: 2019-02-28 12:23:17.2402 -0300
Launch Time: 2019-02-28 12:03:36.1499 -0300
OS Version: iPhone OS 12.1.4 (16D57)
Baseband Version: 7.32.00
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000101efcb8c
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [3474]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libswiftCore.dylib 0x0000000101efcb8c 0x101d0c000 + 2034572
ReportingChartOptionsProfile.adjustViewLayout(estimatedHeight:) (in <AppName>) (__hidden#8009_:533)
1 libswiftCore.dylib 0x0000000101efcb8c 0x101d0c000 + 2034572
ReportingChartOptionsProfile.adjustViewLayout(estimatedHeight:) (in <AppName>) (__hidden#8009_:533)
2 libswiftCore.dylib 0x0000000101d65fc0 0x101d0c000 + 368576
_hidden#1266_ (in <AppName>) (__hidden#159_:0)
3 <AppName> 0x0000000101058a60 0x100fdc000 + 510560
NewSummaryTableViewCell.calculateLesionSummaryTable(lesion:) (in <AppName>) (__hidden#2197_:0)
4 <AppName> 0x000000010105d838 0x100fdc000 + 530488
NewSummaryTableViewCell.calculateSummaryForAllLesions() (in <AppName>) (__hidden#2197_:258)
5 <AppName> 0x0000000101055424 0x100fdc000 + 496676
NewSummaryTableViewCell.selectedChartNames(chartNames:lesionsFromPostingSummary:) (in <AppName>) (__hidden#2197_:47)
6 <AppName> 0x000000010136d36c 0x100fdc000 + 3740524
NewGenerateReportViewController.tableView(_:cellForRowAt:) (in <AppName>) (__hidden#15899_:869)
7 <AppName> 0x0000000101372870 0x100fdc000 + 3762288
_hidden#15838_ (in <AppName>) (__hidden#159_:0)
8 UIKitCore 0x00000001ddd46d84 0x1dd234000 + 11611524
9 UIKitCore 0x00000001ddd472cc 0x1dd234000 + 11612876
10 UIKitCore 0x00000001ddd129a4 0x1dd234000 + 11397540
11 UIKitCore 0x00000001ddd30890 0x1dd234000 + 11520144
12 UIKitCore 0x00000001ddfc577c 0x1dd234000 + 14227324
13 QuartzCore 0x00000001b5239b7c 0x1b50fa000 + 1309564
14 QuartzCore 0x00000001b523eb34 0x1b50fa000 + 1329972
15 UIKitCore 0x00000001ddfb0c68 0x1dd234000 + 14142568
16 <AppName> 0x000000010136c2c8 0x100fdc000 + 3736264
17 <AppName> 0x000000010135ddd4 0x100fdc000 + 3677652
18 <AppName> 0x00000001010504d8 0x100fdc000 + 476376
19 libdispatch.dylib 0x00000001b06756c8 0x1b0615000 + 394952
20 libdispatch.dylib 0x00000001b0676484 0x1b0615000 + 398468
21 libdispatch.dylib 0x00000001b06229a4 0x1b0615000 + 55716
22 CoreFoundation 0x00000001b0bcdce4 0x1b0b21000 + 707812
23 CoreFoundation 0x00000001b0bc8bac 0x1b0b21000 + 687020
24 CoreFoundation 0x00000001b0bc80e0 0x1b0b21000 + 684256
25 GraphicsServices 0x00000001b2e41584 0x1b2e36000 + 46468
26 UIKitCore 0x00000001ddb1cc00 0x1dd234000 + 9341952
27 <AppName> 0x00000001010befbc 0x100fdc000 + 929724
28 libdyld.dylib 0x00000001b0686bb4 0x1b0686000 + 2996
Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x00000001b07c7ea4 0x1b07b0000 + 97956
1 libsystem_kernel.dylib 0x00000001b07c737c 0x1b07b0000 + 95100
2 CoreFoundation 0x00000001b0bcdad8 0x1b0b21000 + 707288
3 CoreFoundation 0x00000001b0bc8974 0x1b0b21000 + 686452
4 CoreFoundation 0x00000001b0bc80e0 0x1b0b21000 + 684256
5 Foundation 0x00000001b15be494 0x1b15b6000 + 33940
6 Foundation 0x00000001b15be340 0x1b15b6000 + 33600
7 UIKitCore 0x00000001ddc0d0c4 0x1dd234000 + 10326212
8 Foundation 0x00000001b16f123c 0x1b15b6000 + 1290812
9 libsystem_pthread.dylib 0x00000001b085825c 0x1b084d000 + 45660
10 libsystem_pthread.dylib 0x00000001b08581bc 0x1b084d000 + 45500
11 libsystem_pthread.dylib 0x00000001b085bcf4 0x1b084d000 + 60660
Thread 2 name: AVAudioSession Notify Thread
Thread 2:
0 libsystem_kernel.dylib 0x00000001b07c7ea4 0x1b07b0000 + 97956
1 libsystem_kernel.dylib 0x00000001b07c737c 0x1b07b0000 + 95100
2 CoreFoundation 0x00000001b0bcdad8 0x1b0b21000 + 707288
3 CoreFoundation 0x00000001b0bc8974 0x1b0b21000 + 686452
4 CoreFoundation 0x00000001b0bc80e0 0x1b0b21000 + 684256
5 AVFAudio 0x00000001b6bdc60c 0x1b6b4d000 + 587276
6 AVFAudio 0x00000001b6c08768 0x1b6b4d000 + 767848
7 libsystem_pthread.dylib 0x00000001b085825c 0x1b084d000 + 45660
8 libsystem_pthread.dylib 0x00000001b08581bc 0x1b084d000 + 45500
9 libsystem_pthread.dylib 0x00000001b085bcf4 0x1b084d000 + 60660
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x00000001b07c7ea4 0x1b07b0000 + 97956
1 libsystem_kernel.dylib 0x00000001b07c737c 0x1b07b0000 + 95100
2 CoreFoundation 0x00000001b0bcdad8 0x1b0b21000 + 707288
3 CoreFoundation 0x00000001b0bc8974 0x1b0b21000 + 686452
4 CoreFoundation 0x00000001b0bc80e0 0x1b0b21000 + 684256
5 CFNetwork 0x00000001b11eb00c 0x1b11e9000 + 8204
6 Foundation 0x00000001b16f123c 0x1b15b6000 + 1290812
7 libsystem_pthread.dylib 0x00000001b085825c 0x1b084d000 + 45660
8 libsystem_pthread.dylib 0x00000001b08581bc 0x1b084d000 + 45500
9 libsystem_pthread.dylib 0x00000001b085bcf4 0x1b084d000 + 60660
Thread 4 name: Dispatch queue: NSManagedObjectContext 0x28084c4b0
Thread 4:
0 libobjc.A.dylib 0x00000001afe26b3c 0x1afe07000 + 129852
1 libobjc.A.dylib 0x00000001afe2738c 0x1afe07000 + 131980
2 CoreData 0x00000001b3896ea0 0x1b3756000 + 1314464
3 libdispatch.dylib 0x00000001b0676484 0x1b0615000 + 398468
4 libdispatch.dylib 0x00000001b06235c8 0x1b0615000 + 58824
5 CoreData 0x00000001b375e8b8 0x1b3756000 + 35000
6 <AppName> 0x00000001010777e4 0x100fdc000 + 636900
7 <AppName> 0x0000000101005684 0x100fdc000 + 169604
8 <AppName> 0x0000000101077950 0x100fdc000 + 637264
9 libswiftObjectiveC.dylib 0x0000000101b4ae34 0x101b44000 + 28212
10 <AppName> 0x000000010107728c 0x100fdc000 + 635532
11 <AppName> 0x000000010135d8a8 0x100fdc000 + 3676328
12 <AppName> 0x00000001010504d8 0x100fdc000 + 476376
13 libdispatch.dylib 0x00000001b06756c8 0x1b0615000 + 394952
14 libdispatch.dylib 0x00000001b0676484 0x1b0615000 + 398468
15 libdispatch.dylib 0x00000001b0619490 0x1b0615000 + 17552
16 libdispatch.dylib 0x00000001b0625a18 0x1b0615000 + 68120
17 libdispatch.dylib 0x00000001b06262c0 0x1b0615000 + 70336
18 libsystem_pthread.dylib 0x00000001b085917c 0x1b084d000 + 49532
19 libsystem_pthread.dylib 0x00000001b085bcec 0x1b084d000 + 60652
Thread 5:
0 libsystem_pthread.dylib 0x00000001b085bce8 0x1b084d000 + 60648
Thread 6:
0 libsystem_pthread.dylib 0x00000001b085bce8 0x1b084d000 + 60648
Thread 7:
0 libsystem_pthread.dylib 0x00000001b085bce8 0x1b084d000 + 60648
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000101bf4000 x1: 0x000000028b9ad110 x2: 0x0000000000000002 x3: 0x00000001b080ab2c
x4: 0x0000000000000000 x5: 0x0000000000000010 x6: 0x0048000004210103 x7: 0x000000000000003f
x8: 0x000000009ca7d857 x9: 0x0000000000000154 x10: 0x000000000000005c x11: 0x00000000000007fb
x12: 0x0000000000000000 x13: 0x000000009cc7e000 x14: 0x00000000000000fc x15: 0x0000000080000000
x16: 0x000000001cc00000 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x0000000000000002 x21: 0x0000000000000039 x22: 0x0000000101689390 x23: 0x0000000000000002
x24: 0x000000000000000b x25: 0x000000010169aefc x26: 0x000000028b9ad110 x27: 0x00000001e98f4000
x28: 0x0000000000000000 fp: 0x000000016ee1e0c0 lr: 0x0000000101efcb8c
sp: 0x000000016ee1e080 pc: 0x0000000101efcb8c cpsr: 0x60000000
Binary Images:
0x100fdc000 - 0x1016f3fff <AppName> arm64 <6a161ab386503bf48a2382ec1ec66e0c> /var/containers/Bundle/Application/01B3F900-27C8-4FA0-87DD-D47623337CE6/<AppName>.app/<AppName>
0x101860000 - 0x1018c7fff Alamofire arm64 <46ed51a36e8a38b59ecfec92165da272> /var/containers/Bundle/Application/01B3F900-27C8-4FA0-87DD-D47623337CE6/<AppName>.app/Frameworks/Alamofire.framework/Alamofire
0x1018f4000 - 0x1018fbfff libswiftCoreAudio.dylib arm64 <ef8c38ddbaed31e0a179f4abeb8f3761> /var/containers/Bundle/Application/01B3F900-27C8-4FA0-87DD-D47623337CE6/<AppName>.app/Frameworks/libswiftCoreAudio.dylib
0x10190c000 - 0x101927fff AppAuth arm64 <ec405e9a0bcf3b7ea5449019738bdc46> /var/containers/Bundle/Application/01B3F900-27C8-4FA0-87DD-D47623337CE6/<AppName>.app/Frameworks/AppAuth.framework/AppAuth
0x10194c000 - 0x1019f7fff SwiftCharts arm64 <6bc17a4f0939389da0fbdcd4dbe59c82> /var/containers/Bundle/Application/01B3F900-27C8-4FA0-87DD-D47623337CE6/<AppName>.app/Frameworks/SwiftCharts.framework/SwiftCharts
0x101a44000 - 0x101a4bfff libswiftCoreData.dylib arm64 <3c82774dea273b858cfe800d8c83e970> /var/containers/Bundle/Application/01B3F900-27C8-4FA0-87DD-D47623337CE6/<AppName>.app/Frameworks/libswiftCoreData.dylib
0x101a5c000 - 0x101a6ffff libswiftAVFoundation.dylib arm64 <33329bbd5d933c2eb4c16329aa06d81e> /var/containers/Bundle/Application/01B3F900-27C8-4FA0-87DD-D47623337CE6/<AppName>.app/Frameworks/libswiftAVFoundation.dylib
0x101a80000 - 0x101a87fff libswiftCoreFoundation.dylib arm64 <f002375cb3493578bb9449460f4f8606> /var/containers/Bundle/Application/01B3F900-27C8-4FA0-87DD-D47623337CE6/<AppName>.app/Frameworks/libswiftCoreFoundation.dylib
0x101a94000 - 0x101aa3fff libswiftCoreGraphics.dylib arm64 <6554bcc59138304a8ad2af874b053f50> /var/containers/Bundle/Application/01B3F900-27C8-4FA0-87DD-D47623337CE6/<AppName>.app/Frameworks/libswiftCoreGraphics.dylib
0x101ab8000 - 0x101abffff libswiftCoreImage.dylib arm64 <1e3ffa373e123e5bb14797faa18f3097> /var/containers/Bundle/Application/01B3F900-27C8-4FA0-87DD-D47623337CE6/<AppName>.app/Frameworks/libswiftCoreImage.dylib
0x101acc000 - 0x101ad3fff libswiftCoreMedia.dylib arm64 <28183368065935f8bf3748f688773faa> /var/containers/Bundle/Application/01B3F900-27C8-4FA0-87DD-D47623337CE6/<AppName>.app/Frameworks/libswiftCoreMedia.dylib
.
.
.
操作系统版本:iPhone OS 12.1.4(16D57)
无法确定崩溃原因。需要一些有关如何调试问题的想法。