Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 13 crash NSMallocException #410

Closed
zoufishanmehdi opened this issue Mar 16, 2020 · 1 comment
Closed

iOS 13 crash NSMallocException #410

zoufishanmehdi opened this issue Mar 16, 2020 · 1 comment

Comments

@zoufishanmehdi
Copy link

zoufishanmehdi commented Mar 16, 2020

What did you do?

ℹ We tried to access a Groups feature

What did you expect to happen?

ℹ We expected to be able to view the list of Groups after scrolling

What happened instead?

ℹ After Groups load, the app crashes as I begin to scroll. We suspect this might be related to the high volume of users recently and perhaps the image size being too large but not entirely sure. Below you can see the stack trace.

Alamofire Environment

Alamofire version: 4.8.0
Xcode version: 11.3.1
Swift version: 5
Platform(s) running AlamofireImage: 3.5.0
macOS version running Xcode: macOS Mojave 10.14.6

Demo Project

ℹWhile I don't have a demo project, you can see the crash log below:

# URL: https://fabric.io/the-wing2/ios/apps/com.the-wing.thewing/issues/31dea66982916414a2ff7b5292a476ce?time=last-seven-days/sessions/b75a3195931a45789646102546d7cd64_DNE_0_v2
# Organization: The Wing
# Platform: ios
# Application: The Wing
# Version: 4.0.2 (1)
# Bundle Identifier: com.the-wing.thewing
# Issue ID: 31dea66982916414a2ff7b5292a476ce
# Session ID: b75a3195931a45789646102546d7cd64_DNE_0_v2
# Date: 2020-03-16T14:31:00Z
# OS Version: 13.3.1 (17D50)
# Device: iPhone X
# RAM Free: 1.9%
# Disk Free: 10.4%

#2. Crashed: com.twitter.crashlytics.ios.exception
0  The Wing                       0x1009ed708 CLSProcessRecordAllThreads + 4309522184
1  The Wing                       0x1009edaf0 CLSProcessRecordAllThreads + 4309523184
2  The Wing                       0x1009dd35c CLSHandler + 4309455708
3  The Wing                       0x1009ebd00 __CLSExceptionRecord_block_invoke + 4309515520
4  libdispatch.dylib              0x1a01db184 _dispatch_client_callout + 16
5  libdispatch.dylib              0x1a01bedc8 _dispatch_lane_barrier_sync_invoke_and_complete + 56
6  The Wing                       0x1009eb76c CLSExceptionRecord + 4309514092
7  The Wing                       0x1009eb598 CLSExceptionRecordNSException + 4309513624
8  The Wing                       0x1009eb18c CLSTerminateHandler() + 4309512588
9  libc++abi.dylib                0x1a02db304 std::__terminate(void (*)()) + 16
10 libc++abi.dylib                0x1a02db29c std::terminate() + 44
11 libobjc.A.dylib                0x1a02361dc _objc_terminate() + 10
12 libdispatch.dylib              0x1a01db198 _dispatch_client_callout + 36
13 libdispatch.dylib              0x1a01b4e8c _dispatch_continuation_pop$VARIANT$armv81 + 404
14 libdispatch.dylib              0x1a01b4600 _dispatch_async_redirect_invoke + 592
15 libdispatch.dylib              0x1a01c1110 _dispatch_root_queue_drain + 344
16 libdispatch.dylib              0x1a01c18b0 _dispatch_worker_thread2 + 116
17 libsystem_pthread.dylib        0x1a022ab48 _pthread_wqthread + 212
18 libsystem_pthread.dylib        0x1a022d760 start_wqthread + 8

--

Fatal Exception: NSMallocException
0  CoreFoundation                 0x1a050ea48 __exceptionPreprocess
1  libobjc.A.dylib                0x1a0235fa4 objc_exception_throw
2  CoreFoundation                 0x1a056a220 _CFPreferencesCopyManagedPreferencesContainerURL.cold.1
3  CoreFoundation                 0x1a0562a30 __CFReallocationFailed
4  CoreFoundation                 0x1a042c23c __CFSafelyReallocate
5  CoreFoundation                 0x1a044dba8 __CFDataGrow
6  CoreFoundation                 0x1a044d9bc CFDataSetLength
7  CoreGraphics                   0x1a737b2ac CGDataProviderCopyData
8  AlamofireImage                 0x100fc3c00 (Missing)
9  AlamofireImage                 0x100fbd0ec (Missing)
10 AlamofireImage                 0x100fa7ae0 (Missing)
11 Alamofire                      0x100e7adc0 (Missing)
12 Alamofire                      0x100e5d740 (Missing)
13 Foundation                     0x1a08d33a0 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__
14 Foundation                     0x1a07dd0c8 -[NSBlockOperation main]
15 Foundation                     0x1a08d5628 __NSOPERATION_IS_INVOKING_MAIN__
16 Foundation                     0x1a07dcd60 -[NSOperation start]
17 Foundation                     0x1a08d6020 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__
18 Foundation                     0x1a08d5aec __NSOQSchedule_f
19 libdispatch.dylib              0x1a01be998 _dispatch_block_async_invoke2
20 libdispatch.dylib              0x1a01db184 _dispatch_client_callout
21 libdispatch.dylib              0x1a01b4e8c _dispatch_continuation_pop$VARIANT$armv81
22 libdispatch.dylib              0x1a01b4600 _dispatch_async_redirect_invoke
23 libdispatch.dylib              0x1a01c1110 _dispatch_root_queue_drain
24 libdispatch.dylib              0x1a01c18b0 _dispatch_worker_thread2
25 libsystem_pthread.dylib        0x1a022ab48 _pthread_wqthread
26 libsystem_pthread.dylib        0x1a022d760 start_wqthread

#0. com.apple.main-thread
0  libsystem_kernel.dylib         0x1a02e4634 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x1a02e3aa0 mach_msg + 72
2  CoreFoundation                 0x1a048c288 __CFRunLoopServiceMachPort + 216
3  CoreFoundation                 0x1a04873a8 __CFRunLoopRun + 1444
4  CoreFoundation                 0x1a0486adc CFRunLoopRunSpecific + 464
5  GraphicsServices               0x1aa427328 GSEventRunModal + 104
6  UIKitCore                      0x1a459463c UIApplicationMain + 1936
7  The Wing                       0x1002d7894 main + 12 (AppDelegate.swift:12)
8  libdyld.dylib                  0x1a0310360 start + 4

#1. Thread
0  libsystem_pthread.dylib        0x1a022d758 start_wqthread + 190

#2. Crashed: com.twitter.crashlytics.ios.exception
0  The Wing                       0x1009ed708 CLSProcessRecordAllThreads + 4309522184
1  The Wing                       0x1009edaf0 CLSProcessRecordAllThreads + 4309523184
2  The Wing                       0x1009dd35c CLSHandler + 4309455708
3  The Wing                       0x1009ebd00 __CLSExceptionRecord_block_invoke + 4309515520
4  libdispatch.dylib              0x1a01db184 _dispatch_client_callout + 16
5  libdispatch.dylib              0x1a01bedc8 _dispatch_lane_barrier_sync_invoke_and_complete + 56
6  The Wing                       0x1009eb76c CLSExceptionRecord + 4309514092
7  The Wing                       0x1009eb598 CLSExceptionRecordNSException + 4309513624
8  The Wing                       0x1009eb18c CLSTerminateHandler() + 4309512588
9  libc++abi.dylib                0x1a02db304 std::__terminate(void (*)()) + 16
10 libc++abi.dylib                0x1a02db29c std::terminate() + 44
11 libobjc.A.dylib                0x1a02361dc _objc_terminate() + 10
12 libdispatch.dylib              0x1a01db198 _dispatch_client_callout + 36
13 libdispatch.dylib              0x1a01b4e8c _dispatch_continuation_pop$VARIANT$armv81 + 404
14 libdispatch.dylib              0x1a01b4600 _dispatch_async_redirect_invoke + 592
15 libdispatch.dylib              0x1a01c1110 _dispatch_root_queue_drain + 344
16 libdispatch.dylib              0x1a01c18b0 _dispatch_worker_thread2 + 116
17 libsystem_pthread.dylib        0x1a022ab48 _pthread_wqthread + 212
18 libsystem_pthread.dylib        0x1a022d760 start_wqthread + 8

#3. Thread
0  libsystem_kernel.dylib         0x1a0306a7c __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1a022abd4 _pthread_wqthread + 352
2  libsystem_pthread.dylib        0x1a022d760 start_wqthread + 8

#4. Thread
0  libsystem_kernel.dylib         0x1a0306a7c __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1a022abd4 _pthread_wqthread + 352
2  libsystem_pthread.dylib        0x1a022d760 start_wqthread + 8

#5. com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0x1a02e4634 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x1a02e3aa0 mach_msg + 72
2  CoreFoundation                 0x1a048c288 __CFRunLoopServiceMachPort + 216
3  CoreFoundation                 0x1a04873a8 __CFRunLoopRun + 1444
4  CoreFoundation                 0x1a0486adc CFRunLoopRunSpecific + 464
5  Foundation                     0x1a07c6784 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 228
6  Foundation                     0x1a07c6664 -[NSRunLoop(NSRunLoop) runUntilDate:] + 88
7  UIKitCore                      0x1a462ce80 -[UIEventFetcher threadMain] + 152
8  Foundation                     0x1a08f709c __NSThread__start__ + 848
9  libsystem_pthread.dylib        0x1a0229d8c _pthread_start + 156
10 libsystem_pthread.dylib        0x1a022d76c thread_start + 8

#6. Thread
0  libsystem_pthread.dylib        0x1a022d758 start_wqthread + 190

#7. Thread
0  libsystem_kernel.dylib         0x1a0306a7c __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1a022abd4 _pthread_wqthread + 352
2  libsystem_pthread.dylib        0x1a022d760 start_wqthread + 8

#8. NSOperationQueue 0x1560a3310 (QOS: UTILITY)
0  libsystem_platform.dylib       0x1a021b958 _platform_memmove + 88
1  CoreGraphics                   0x1a754529c imageProvider_getBytesAtPosition + 552
2  CoreGraphics                   0x1a73464c0 CGDataProviderDirectGetBytesAtPositionInternal + 304
3  CoreGraphics                   0x1a75351c0 get_chunks_direct + 228
4  CoreGraphics                   0x1a737b2c4 CGDataProviderCopyData + 256
5  AlamofireImage                 0x100fc3c00 $sSo7UIImageC14AlamofireImageE10af_inflateyyF + 380
6  AlamofireImage                 0x100fbd0ec $s9Alamofire11DataRequestC0A5ImageE23imageResponseSerializer0E5Scale07inflatefD0AA0bfG0VySo7UIImageCG12CoreGraphics7CGFloatV_SbtFZAA6ResultOyAKG10Foundation10URLRequestVSg_So17NSHTTPURLResponseCSgAS0B0VSgs5Error_pSgtcfU_ + 464
7  AlamofireImage                 0x100fa7ae0 $s10Foundation10URLRequestVSgSo17NSHTTPURLResponseCSgAA4DataVSgs5Error_pSg9Alamofire6ResultOySo7UIImageCGIegngggo_AdgjlRIegngggr_TR + 24
8  Alamofire                      0x100e7adc0 $s9Alamofire11DataRequestC8response5queue0D10Serializer17completionHandlerACXDSo012OS_dispatch_E0CSg_xyAA0B8ResponseVy16SerializedObjectQzGctAA0bkF8ProtocolRzlFyycfU_ + 1284
9  Alamofire                      0x100e5d740 $sIeg_IeyB_TR + 28
10 Foundation                     0x1a08d33a0 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
11 Foundation                     0x1a07dd0c8 -[NSBlockOperation main] + 100
12 Foundation                     0x1a08d5628 __NSOPERATION_IS_INVOKING_MAIN__ + 20
13 Foundation                     0x1a07dcd60 -[NSOperation start] + 732
14 Foundation                     0x1a08d6020 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 20
15 Foundation                     0x1a08d5aec __NSOQSchedule_f + 180
16 libdispatch.dylib              0x1a01be998 _dispatch_block_async_invoke2 + 104
17 libdispatch.dylib              0x1a01db184 _dispatch_client_callout + 16
18 libdispatch.dylib              0x1a01b4e8c _dispatch_continuation_pop$VARIANT$armv81 + 404
19 libdispatch.dylib              0x1a01b4600 _dispatch_async_redirect_invoke + 592
20 libdispatch.dylib              0x1a01c1110 _dispatch_root_queue_drain + 344
21 libdispatch.dylib              0x1a01c18b0 _dispatch_worker_thread2 + 116
22 libsystem_pthread.dylib        0x1a022ab48 _pthread_wqthread + 212
23 libsystem_pthread.dylib        0x1a022d760 start_wqthread + 8

#9. Thread
0  libsystem_kernel.dylib         0x1a0306a7c __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1a022abd4 _pthread_wqthread + 352
2  libsystem_pthread.dylib        0x1a022d760 start_wqthread + 8

#10. com.twitter.crashlytics.ios.MachExceptionServer
0  libsystem_kernel.dylib         0x1a02e4634 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x1a02e3aa0 mach_msg + 72
2  The Wing                       0x1009d8970 CLSMachExceptionServer + 4309436784
3  libsystem_pthread.dylib        0x1a0229d8c _pthread_start + 156
4  libsystem_pthread.dylib        0x1a022d76c thread_start + 8

#11. com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x1a02e4634 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x1a02e3aa0 mach_msg + 72
2  CoreFoundation                 0x1a048c288 __CFRunLoopServiceMachPort + 216
3  CoreFoundation                 0x1a04873a8 __CFRunLoopRun + 1444
4  CoreFoundation                 0x1a0486adc CFRunLoopRunSpecific + 464
5  CFNetwork                      0x1a37504e8 (Missing)
6  Foundation                     0x1a08f709c __NSThread__start__ + 848
7  libsystem_pthread.dylib        0x1a0229d8c _pthread_start + 156
8  libsystem_pthread.dylib        0x1a022d76c thread_start + 8```
@jshier
Copy link
Contributor

jshier commented Mar 27, 2020

This is most likely #332. Please take a look at that thread for possible workaround.

@jshier jshier closed this as completed Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants