У нас возникла проблема в AlamofireImage. Эта проблема возникает только в Apple 4k TV.
Эта проблема возникает при быстрой прокрутке экрана. У нас есть несколько довольно больших изображений для загрузки. Но мы не можем точно определить причину проблемы.
Как вы можете видеть, происходит сбой в методе AlamofireImage af_inflate (). Я не нашел, что они используют некоторые манипуляции cgimage. Я считаю, что это проблема с AlamofireImage.
Я прикрепил cra sh log.
# Crashlytics - plaintext stacktrace downloaded by Shreesha SK at Tue, 18 Feb 2020 07:11:03 GMT
# URL: https://fabric.io/########-s-projects/tvos/apps/com.########.########tvosdev/issues/78119407de07fcb70cf745cc9f083be8?time=last-seven-days/sessions/79be25b795b24c03accb439f07a76b37_DNE_0_v2
# Organization: ######## ’s Projects
# Platform: tvos
# Application: ########
# Version: 2.0.1 (62)
# Bundle Identifier: com.########.########tvosdev
# Issue ID: 78119407de07fcb70cf745cc9f083be8
# Session ID: 79be25b795b24c03accb439f07a76b37_DNE_0_v2
# Date: 2020-02-17T12:59:00Z
# OS Version: 13.3.1 (17K795)
# Device: Apple TV 4K
# RAM Free: 2.3%
# Disk Free: 82.2%
#5. Crashed: com.twitter.crashlytics.tvos.exception
0 ######## 0x100b699a4 _hidden#39542_ + 376 (__hidden#40409_:376)
1 ######## 0x100b69d8c _hidden#39542_ + 407 (__hidden#40409_:407)
2 ######## 0x100b5a2ac _hidden#39412_ + 26 (__hidden#39551_:26)
3 ######## 0x100b67f9c _hidden#40280_ + 198 (__hidden#40299_:198)
4 libdispatch.dylib 0x1b69fd338 <redacted> + 16
5 libdispatch.dylib 0x1b6a09b68 <redacted> + 56
6 ######## 0x100b67a08 _hidden#39265_ + 205 (__hidden#40299_:205)
7 ######## 0x100b67834 _hidden#40276_ + 102 (__hidden#40299_:102)
8 ######## 0x100b67428 _hidden#40275_ + 258 (__hidden#40299_:258)
9 libc++abi.dylib 0x1b6925304 <redacted> + 16
10 libc++abi.dylib 0x1b692529c std::terminate() + 44
11 libobjc.A.dylib 0x1b6933ae8 objc_terminate + 10
12 libdispatch.dylib 0x1b69fd34c <redacted> + 36
13 libdispatch.dylib 0x1b69ff9f4 <redacted> + 412
14 libdispatch.dylib 0x1b69ff148 <redacted> + 600
15 libdispatch.dylib 0x1b6a0befc <redacted> + 372
16 libdispatch.dylib 0x1b6a0c6bc <redacted> + 128
17 libsystem_pthread.dylib 0x1b6c2f4d4 _pthread_wqthread + 212
18 libsystem_pthread.dylib 0x1b6c3581c start_wqthread + 8
--
Fatal Exception: NSMallocException
0 CoreFoundation 0x1b7029e14 (Missing)
1 libobjc.A.dylib 0x1b69338b0 (Missing)
2 CoreFoundation 0x1b708543c (Missing)
3 CoreFoundation 0x1b707db64 (Missing)
4 CoreFoundation 0x1b6f4836c (Missing)
5 CoreFoundation 0x1b6f69cd0 (Missing)
6 CoreFoundation 0x1b6f69ae4 (Missing)
7 CoreGraphics 0x1b8f822ac (Missing)
8 AlamofireImage 0x100fe1450 UIImage.af_inflate() + 103 (__hidden#541_:103)
9 AlamofireImage 0x100fdac90 _hidden#39_ + 97 (__hidden#557_:97)
10 AlamofireImage 0x100fc1014 _hidden#40_ (__hidden#408_)
11 Alamofire 0x100e594fc _hidden#2940_ + 150 (__hidden#1015_:150)
12 Alamofire 0x100e3fc34 _hidden#1387_ (__hidden#739_)
13 Foundation 0x1b7a6f7c0 (Missing)
14 Foundation 0x1b797c0a8 (Missing)
15 Foundation 0x1b7a71a48 (Missing)
16 Foundation 0x1b797bd40 (Missing)
17 Foundation 0x1b7a72440 (Missing)
18 Foundation 0x1b7a71f0c (Missing)
19 libdispatch.dylib 0x1b6a09740 (Missing)
20 libdispatch.dylib 0x1b69fd338 (Missing)
21 libdispatch.dylib 0x1b69ff9f4 (Missing)
22 libdispatch.dylib 0x1b69ff148 (Missing)
23 libdispatch.dylib 0x1b6a0befc (Missing)
24 libdispatch.dylib 0x1b6a0c6bc (Missing)
25 libsystem_pthread.dylib 0x1b6c2f4d4 (Missing)
26 libsystem_pthread.dylib 0x1b6c3581c (Missing)
#0. com.apple.main-thread
0 CoreText 0x1baf91b90 <redacted> + 1184
1 CoreText 0x1baf91864 <redacted> + 372
2 CoreText 0x1bafb057c <redacted> + 500
3 CoreText 0x1bafaffa8 <redacted> + 1320
4 CoreText 0x1baf16ff4 <redacted> + 216
5 CoreText 0x1baf44248 CTFontTransformGlyphs + 448
6 UIFoundation 0x1c13692cc -[NSCoreTypesetter _NSFastDrawString:length:attributes:paragraphStyle:typesetterBehavior:lineBreakMode:rect:padding:graphicsContext:baselineRendering:usesFontLeading:usesScreenFont:scrollable:syncAlignment:mirrored:boundingRectPointer:baselineOffsetPointer:wantsTextLineFragments:drawingContext:] + 4932
7 UIFoundation 0x1c1369824 -[NSCoreTypesetter _stringDrawingCoreTextEngineWithOriginalString:rect:padding:graphicsContext:forceClipping:attributes:stringDrawingOptions:drawingContext:wantsTextLineFragments:validatedAttributedString:firstNonRenderedCharacterIndex:foundSoftHyphenAtEOL:enginePathUsed:] + 1052
8 UIFoundation 0x1c1365c08 __NSStringDrawingEngine + 4976
9 UIFoundation 0x1c12e70b0 -[NSString(NSExtendedStringDrawing) boundingRectWithSize:options:attributes:context:] + 156
10 UIKitCore 0x1da397de4 <redacted> + 2272
11 UIKitCore 0x1da39c7b8 <redacted> + 484
12 UIKitCore 0x1da39cbac <redacted> + 248
13 UIKitCore 0x1da369e44 <redacted> + 52
14 UIKitCore 0x1da369b2c <redacted> + 380
15 UIKitCore 0x1da37372c <redacted> + 124
16 UIKitCore 0x1da3724c0 <redacted> + 500
17 UIKitCore 0x1da37298c <redacted> + 948
18 UIKitCore 0x1da372870 <redacted> + 664
19 UIKitCore 0x1da372870 <redacted> + 664
20 UIKitCore 0x1da372870 <redacted> + 664
21 UIKitCore 0x1da372870 <redacted> + 664
22 Foundation 0x1b7984fdc <redacted> + 80
23 UIKitCore 0x1da372bac <redacted> + 120
24 UIKitCore 0x1da372870 <redacted> + 664
25 UIKitCore 0x1da372870 <redacted> + 664
26 UIKitCore 0x1da372870 <redacted> + 664
27 UIKitCore 0x1da372870 <redacted> + 664
28 Foundation 0x1b7984fdc <redacted> + 80
29 UIKitCore 0x1da373068 <redacted> + 92
30 UIKitCore 0x1da371a3c <redacted> + 120
31 UIKitCore 0x1da372ca0 <redacted> + 160
32 UIKitCore 0x1da373ae0 <redacted> + 428
33 UIKitCore 0x1da4298c0 <redacted> + 368
34 UIKitCore 0x1da43cc60 <redacted> + 2140
35 QuartzCore 0x1bb442200 <redacted> + 284
36 QuartzCore 0x1bb44836c <redacted> + 480
37 QuartzCore 0x1bb4530a8 <redacted> + 136
38 QuartzCore 0x1bb3a24d4 <redacted> + 284
39 QuartzCore 0x1bb3cc040 <redacted> + 672
40 QuartzCore 0x1bb3cca2c <redacted> + 92
41 CoreFoundation 0x1b6fa7354 <redacted> + 32
42 CoreFoundation 0x1b6fa2240 <redacted> + 416
43 CoreFoundation 0x1b6fa280c <redacted> + 1308
44 CoreFoundation 0x1b6fa1fc8 CFRunLoopRunSpecific + 464
45 GraphicsServices 0x1b946f328 GSEventRunModal + 104
46 UIKitCore 0x1da00040c UIApplicationMain + 1852
47 ######## 0x100833654 main + 13 (__hidden#1954_:13)
48 libdyld.dylib 0x1b6a3a5f8 <redacted> + 4
#1. com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x1b6b8c634 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b6b8baa0 mach_msg + 72
2 CoreFoundation 0x1b6fa7774 <redacted> + 216
3 CoreFoundation 0x1b6fa2894 <redacted> + 1444
4 CoreFoundation 0x1b6fa1fc8 CFRunLoopRunSpecific + 464
5 Foundation 0x1b7965764 <redacted> + 228
6 Foundation 0x1b7965644 <redacted> + 88
7 UIKitCore 0x1da0901d4 <redacted> + 152
8 Foundation 0x1b7a93204 <redacted> + 848
9 libsystem_pthread.dylib 0x1b6c2d600 _pthread_start + 156
10 libsystem_pthread.dylib 0x1b6c35828 thread_start + 8
#2. com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x1b6b8c634 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b6b8baa0 mach_msg + 72
2 CoreFoundation 0x1b6fa7774 <redacted> + 216
3 CoreFoundation 0x1b6fa2894 <redacted> + 1444
4 CoreFoundation 0x1b6fa1fc8 CFRunLoopRunSpecific + 464
5 CFNetwork 0x1b7604470 (Missing)
6 Foundation 0x1b7a93204 <redacted> + 848
7 libsystem_pthread.dylib 0x1b6c2d600 _pthread_start + 156
8 libsystem_pthread.dylib 0x1b6c35828 thread_start + 8
#3. Thread
0 libsystem_kernel.dylib 0x1b6baea7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1b6c2f560 _pthread_wqthread + 352
2 libsystem_pthread.dylib 0x1b6c3581c start_wqthread + 8
#4. NSOperationQueue 0x11b2a9e50 (QOS: UTILITY)
0 ImageIO 0x1b9518068 <redacted> + 376
1 ImageIO 0x1b96bb984 <redacted> + 328
2 ImageIO 0x1b95a6394 <redacted> + 232
3 ImageIO 0x1b95b759c <redacted> + 1148
4 ImageIO 0x1b95b6b64 <redacted> + 32
5 ImageIO 0x1b953fe98 <redacted> + 140
6 ImageIO 0x1b953cc44 <redacted> + 1220
7 CoreGraphics 0x1b914c424 <redacted> + 88
8 CoreGraphics 0x1b8f4da88 <redacted> + 84
9 CoreGraphics 0x1b913be8c CGAccessSessionCreate + 104
10 CoreGraphics 0x1b8f82264 CGDataProviderCopyData + 160
11 AlamofireImage 0x100fe1450 UIImage.af_inflate() + 103 (__hidden#541_:103)
12 AlamofireImage 0x100fdac90 _hidden#39_ + 97 (__hidden#557_:97)
13 AlamofireImage 0x100fc1014 _hidden#40_ + 4349136916 (__hidden#408_:4349136916)
14 Alamofire 0x100e594fc _hidden#2940_ + 150 (__hidden#1015_:150)
15 Alamofire 0x100e3fc34 _hidden#1387_ + 4348591156 (__hidden#739_:4348591156)
16 Foundation 0x1b7a6f7c0 <redacted> + 16
17 Foundation 0x1b797c0a8 <redacted> + 100
18 Foundation 0x1b7a71a48 <redacted> + 20
19 Foundation 0x1b797bd40 <redacted> + 732
20 Foundation 0x1b7a72440 <redacted> + 20
21 Foundation 0x1b7a71f0c <redacted> + 180
22 libdispatch.dylib 0x1b6a09740 <redacted> + 104
23 libdispatch.dylib 0x1b69fd338 <redacted> + 16
24 libdispatch.dylib 0x1b69ff9f4 <redacted> + 412
25 libdispatch.dylib 0x1b69ff148 <redacted> + 600
26 libdispatch.dylib 0x1b6a0befc <redacted> + 372
27 libdispatch.dylib 0x1b6a0c6bc <redacted> + 128
28 libsystem_pthread.dylib 0x1b6c2f4d4 _pthread_wqthread + 212
29 libsystem_pthread.dylib 0x1b6c3581c start_wqthread + 8
#5. Crashed: com.twitter.crashlytics.tvos.exception
0 ######## 0x100b699a4 _hidden#39542_ + 376 (__hidden#40409_:376)
1 ######## 0x100b69d8c _hidden#39542_ + 407 (__hidden#40409_:407)
2 ######## 0x100b5a2ac _hidden#39412_ + 26 (__hidden#39551_:26)
3 ######## 0x100b67f9c _hidden#40280_ + 198 (__hidden#40299_:198)
4 libdispatch.dylib 0x1b69fd338 <redacted> + 16
5 libdispatch.dylib 0x1b6a09b68 <redacted> + 56
6 ######## 0x100b67a08 _hidden#39265_ + 205 (__hidden#40299_:205)
7 ######## 0x100b67834 _hidden#40276_ + 102 (__hidden#40299_:102)
8 ######## 0x100b67428 _hidden#40275_ + 258 (__hidden#40299_:258)
9 libc++abi.dylib 0x1b6925304 <redacted> + 16
10 libc++abi.dylib 0x1b692529c std::terminate() + 44
11 libobjc.A.dylib 0x1b6933ae8 objc_terminate + 10
12 libdispatch.dylib 0x1b69fd34c <redacted> + 36
13 libdispatch.dylib 0x1b69ff9f4 <redacted> + 412
14 libdispatch.dylib 0x1b69ff148 <redacted> + 600
15 libdispatch.dylib 0x1b6a0befc <redacted> + 372
16 libdispatch.dylib 0x1b6a0c6bc <redacted> + 128
17 libsystem_pthread.dylib 0x1b6c2f4d4 _pthread_wqthread + 212
18 libsystem_pthread.dylib 0x1b6c3581c start_wqthread + 8
#6. Thread
0 libsystem_pthread.dylib 0x1b6c35814 pthread_dependency_wait_np + 174
#7. Thread
0 libsystem_kernel.dylib 0x1b6baea7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1b6c2f560 _pthread_wqthread + 352
2 libsystem_pthread.dylib 0x1b6c3581c start_wqthread + 8
#8. NSOperationQueue 0x11b2ef890 (QOS: UTILITY)
0 ImageIO 0x1b95180d8 <redacted> + 488
1 ImageIO 0x1b96bb984 <redacted> + 328
2 ImageIO 0x1b95a6394 <redacted> + 232
3 ImageIO 0x1b95b759c <redacted> + 1148
4 ImageIO 0x1b95b6b64 <redacted> + 32
5 ImageIO 0x1b953fe98 <redacted> + 140
6 ImageIO 0x1b953cc44 <redacted> + 1220
7 CoreGraphics 0x1b914c424 <redacted> + 88
8 CoreGraphics 0x1b8f4da88 <redacted> + 84
9 CoreGraphics 0x1b913be8c CGAccessSessionCreate + 104
10 CoreGraphics 0x1b8f82264 CGDataProviderCopyData + 160
11 AlamofireImage 0x100fe1450 UIImage.af_inflate() + 103 (__hidden#541_:103)
12 AlamofireImage 0x100fdac90 _hidden#39_ + 97 (__hidden#557_:97)
13 AlamofireImage 0x100fc1014 _hidden#40_ + 4349136916 (__hidden#408_:4349136916)
14 Alamofire 0x100e594fc _hidden#2940_ + 150 (__hidden#1015_:150)
15 Alamofire 0x100e3fc34 _hidden#1387_ + 4348591156 (__hidden#739_:4348591156)
16 Foundation 0x1b7a6f7c0 <redacted> + 16
17 Foundation 0x1b797c0a8 <redacted> + 100
18 Foundation 0x1b7a71a48 <redacted> + 20
19 Foundation 0x1b797bd40 <redacted> + 732
20 Foundation 0x1b7a72440 <redacted> + 20
21 Foundation 0x1b7a71f0c <redacted> + 180
22 libdispatch.dylib 0x1b6a09740 <redacted> + 104
23 libdispatch.dylib 0x1b69fd338 <redacted> + 16
24 libdispatch.dylib 0x1b69ff9f4 <redacted> + 412
25 libdispatch.dylib 0x1b69ff148 <redacted> + 600
26 libdispatch.dylib 0x1b6a0befc <redacted> + 372
27 libdispatch.dylib 0x1b6a0c6bc <redacted> + 128
28 libsystem_pthread.dylib 0x1b6c2f4d4 _pthread_wqthread + 212
29 libsystem_pthread.dylib 0x1b6c3581c start_wqthread + 8