Could please better understand what is problems with AddressSanitizer: allocator is out of memory?

I did not change nothing in my code, but after iOS 14 and Xcode 12 I started to get the crashes. Previous build was on Xcode 11 and I didn't see the crashes, I tried to create same test cases for deferent iOS and Xcode, and I don’t see the crashes in previous build. I started to get the crashes, only for iOS 14 operating systems and after using Xcode 12. 

My function, where I think I have the crash, but I don't understand where exactly, because I didn't change nothing. Maybe something changed in Core Data?
  • (NSMutableArray *)getObjectsforEntity:(NSString *)strEntity sortBy:(NSString *)strSort isAscending:(BOOL)ascending predicate:(NSPredicate *)predicate {

    NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] initWithEntityName:strEntity];
    if (strSort) {
        NSSortDescriptor *sort = [[NSSortDescriptor alloc] initWithKey:strSort ascending:ascending];
        [fetchRequest setSortDescriptors:[NSArray arrayWithObject:sort]];
    }
    if (predicate) {

        [fetchRequest setPredicate:predicate];
    }
    NSError *error;
    NSMutableArray *result = [[[[self managedObjectContext] executeFetchRequest:fetchRequest error:&error] mutableCopy ]autorelease];
    if (result == nil) {
        return [[NSMutableArray alloc] init];
    }
    return result;
}


I tried to caught it and this is what I found:

==13048==ERROR: AddressSanitizer: allocator is out of memory trying to allocate 0x1a0 bytes
==13048==FATAL: AddressSanitizer: internal allocator is out of memory trying to allocate 0x50 bytes
AddressSanitizer report breakpoint hit. Use 'thread info -s' to get extended information about the report.
(lldb)  thread info -s
thread #1: tid = 0x12fa63, 0x00000001041961f8 libclangrt.asaniosdynamic.dylib`asan::AsanDie(), queue = 'SQLQueue 0x16572e2c0 for MyApp.sqlite', stop reason = AddressSanitizer detected: out-of-memory
{
  "access
size": 0,
  "accesstype": 0,
  "address": 0,
  "description": "out-of-memory",
  "instrumentation
class": "AddressSanitizer",
  "pc": 0,
  "stoptype": "fatalerror"
}

This is what I see in log:
self RMNDatabaseManager * 0x164416210 0x0000000164416210
NSObject NSObject
isa _unsafeunretained Class RMNDatabaseManager 0x000021a1019b6131
predicate NSPredicate * 0x2d7143b90 0x00000002d7143b90
NSObject NSObject
predicateFlags struct predicateFlags
evaluationBlocked unsigned int 0
reservedPredicateFlags unsigned int 0
reserved uint32t 0
fetchRequest NSFetchRequest * 0x2ce26f2d0 0x00000002ce26f2d0
NSPersistentStoreRequest NSPersistentStoreRequest
NSObject NSObject
isa
unsafeunretained Class 0x61a1fb9ef989 0x000061a1fb9ef989
error NSError * domain: nil - code: 1287 0x0000000102957960
NSObject NSObject
isa _unsafeunretained Class 0x102957880 0x0000000102957880
reserved void * 0x10295792c 0x000000010295792c
code NSInteger 1287
domain NSString * 0x303 0x0000000000000303
NSObject NSObject
isa
unsafeunretained Class 0x0
userInfo NSDictionary * 0x20ff 0x00000000000020ff
NSObject NSObject
isa
unsafeunretained Class 0x0
result NSMutableArray * 0x2d5131420 0x00000002d5131420
NSArray NSArray
NSObject NSObject
isa _unsafeunretained Class 0x154000452 0x0000000154000452

Crashlog  details: 

[[Crashed: 0 CoreData 0x000000019d9fb6b8 PFObjectIDFastHash64 + 36 (NSBasicObjectID.m:707) 1 CoreData 0x000000019d9fb6b4 PFObjectIDFastHash64 + 32 (NSBasicObjectID.m:706) 2 CoreFoundation 0x0000000197c1c10c CFBasicHashRehash + 996 (CFBasicHash.c:477) 3 CoreFoundation 0x0000000197c1fdf4 CFBasicHashRemoveValue + 2352 (CFBasicHash.c:1386) 4 CoreFoundation 0x0000000197b3e2f8 CFDictionaryRemoveValue + 224 (CFDictionary.c:471) 5 CoreData 0x000000019d94b8e8 -[NSManagedObjectContext(NSInternalAdditions) forgetObject:propagateToObjectStore:removeFromRegistry:] + 120 (NSManagedObjectContext.m:5088) 6 CoreData 0x000000019d92b450 -[PFManagedObjectReferenceQueue processReferenceQueue:] + 864 (NSManagedObjectContext.m:5077) 7 CoreData 0x000000019da43578 90-[NSManagedObjectContext(NSInternalNotificationHandling) registerAsyncReferenceCallback]blockinvoke + 68 (NSManagedObjectContext.m:8825) 8 CoreData 0x000000019da39b18 developerSubmittedBlockToNSManagedObjectContextPerform + 156 (NSManagedObjectContext.m:3880) 9 libdispatch.dylib 0x000000019782b280 dispatchclientcallout + 16 (object.m:559) 10 libdispatch.dylib 0x00000001977d3fa8 dispatchlaneserialdrain$VARIANT$mp + 612 (inlineinternal.h:2548) 11 libdispatch.dylib 0x00000001977d4a84 dispatchlaneinvoke$VARIANT$mp + 424 (queue.c:3862) 12 libdispatch.dylib 0x00000001977de518 dispatchworkloopworkerthread + 712 (queue.c:6590) 13 libsystempthread.dylib 0x00000001dc7005a4 pthreadwqthread + 272 (pthread.c:2193) 14 libsystempthread.dylib 0x00000001dc703874 startwqthread + 8]]

I found this by searching for "AddressSanitizer: allocator is out of memory trying to allocate"

I have turned on Address Sanitizer. I know I am having memory problems. I want to find where

My problem is there is what looks like a stack trace output, but it is not including any code I wrote. Where can I get a useful stack trace? How can I profile allocations to find the offending allocation?

2021-08-12 09:12:07.313295+1200 B52FloorManagement[526:176200]     #0 0x1082f4db4 in __sanitizer_mz_calloc+0x8c (/private/var/containers/Bundle/Application/31C1D5A3-40AB-4C5D-8B1B-6E3D2692BFEF/B52FloorManagement.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64e+0x40db4)
2021-08-12 09:12:07.313351+1200 B52FloorManagement[526:176200]     #1 0x1a14aba9c in <redacted>+0x54 (/usr/lib/system/libsystem_malloc.dylib:arm64e+0x12a9c)
2021-08-12 09:12:07.313398+1200 B52FloorManagement[526:176200]     #2 0x1938f9fe4 in <redacted>+0xf8 (/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics:arm64e+0x1e7fe4)
2021-08-12 09:12:07.313442+1200 B52FloorManagement[526:176200]     #3 0x1938f8eec in <redacted>+0x1cec (/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics:arm64e+0x1e6eec)
2021-08-12 09:12:07.313489+1200 B52FloorManagement[526:176200]     #4 0x1938f5720 in <redacted>+0x424 (/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics:arm64e+0x1e3720)
2021-08-12 09:12:07.313532+1200 B52FloorManagement[526:176200]     #5 0x1937142b8 in <redacted>+0x2c8 (/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics:arm64e+0x22b8)
2021-08-12 09:12:07.313607+1200 B52FloorManagement[526:176200]     #6 0x193916258 in <redacted>+0x47c (/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics:arm64e+0x204258)
2021-08-12 09:12:07.313873+1200 B52FloorManagement[526:176200]     #7 0x193980e24 in <redacted>+0x2d8 (/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics:arm64e+0x26ee24)
2021-08-12 09:12:07.314147+1200 B52FloorManagement[526:176200]     #8 0x1938b23c8 in CGDisplayListDrawInContextDelegate+0x1c4 (/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics:arm64e+0x1a03c8)
2021-08-12 09:12:07.314393+1200 B52FloorManagement[526:176200]     #9 0x19374b86c in <redacted>+0x704 (/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics:arm64e+0x3986c)
2021-08-12 09:12:07.314634+1200 B52FloorManagement[526:176200]     #10 0x19374b130 in <redacted>+0x34 (/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics:arm64e+0x39130)
2021-08-12 09:12:07.314837+1200 B52FloorManagement[526:176200]     #11 0x19441ae18 in <redacted>+0x24 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64e+0x76fe18)
2021-08-12 09:12:07.314985+1200 B52FloorManagement[526:176200]     #12 0x19441b8cc in <redacted>+0x24 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64e+0x7708cc)
2021-08-12 09:12:07.315161+1200 B52FloorManagement[526:176200]     #13 0x19441e2d4 in <redacted>+0x1d0 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64e+0x7732d4)
2021-08-12 09:12:07.315403+1200 B52FloorManagement[526:176200]     #14 0x19441e0cc in <redacted>+0x78 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64e+0x7730cc)
2021-08-12 09:12:07.315536+1200 B52FloorManagement[526:176200]     #15 0x19441b80c in <redacted>+0xc0 (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64e+0x77080c)
2021-08-12 09:12:07.315679+1200 B52FloorManagement[526:176200]     #16 0x105ffee80 in $s18B52FloorManagement24createQCIScreenShotImageSo7UIImageCyF+0x938 (/private/var/containers/Bundle/Application/31C1D5A3-40AB-4C5D-8B1B-6E3D2692BFEF/B52FloorManagement.app/B52FloorManagement:arm64+0x1010e2e80)
2021-08-12 09:12:07.315855+1200 B52FloorManagement[526:176200]     #17 0x105a41be4 in $s18B52FloorManagement18DialogMainMoreMenuV17createLayoutImageyyF13_layoutImagesL_yyF+0x1264 (/private/var/containers/Bundle/Application/31C1D5A3-40AB-4C5D-8B1B-6E3D2692BFEF/B52FloorManagement.app/B52FloorManagement:arm64+0x100b25be4)
2021-08-12 09:12:07.316102+1200 B52FloorManagement[526:176200]     #18 0x105ecb9b4 in $s18B52FloorManagement11CoordinatorC4draw2inySo7MTKViewC_tF+0x598 (/private/var/containers/Bundle/Application/31C1D5A3-40AB-4C5D-8B1B-6E3D2692BFEF/B52FloorManagement.app/B52FloorManagement:arm64+0x100faf9b4)
2021-08-12 09:12:07.316304+1200 B52FloorManagement[526:176200]     #19 0x105ecc364 in $s18B52FloorManagement11CoordinatorC4draw2inySo7MTKViewC_tFTo+0x84 (/private/var/containers/Bundle/Application/31C1D5A3-40AB-4C5D-8B1B-6E3D2692BFEF/B52FloorManagement.app/B52FloorManagement:arm64+0x100fb0364)
2021-08-12 09:12:07.316433+1200 B52FloorManagement[526:176200]     #20 0x1c474779c in <redacted>+0xb4 (/System/Library/Frameworks/MetalKit.framework/MetalKit:arm64e+0x1379c)
2021-08-12 09:12:07.316637+1200 B52FloorManagement[526:176200]     #21 0x1c4743d10 in <redacted>+0x24 (/System/Library/Frameworks/MetalKit.framework/MetalKit:arm64e+0xfd10)
2021-08-12 09:12:07.316826+1200 B52FloorManagement[526:176200]     #22 0x10967fd6c in -[DYDisplayLinkInterposer forwardDisplayLinkCallback:]+0xa8 (/Developer/Library/PrivateFrameworks/GPUToolsCore.framework/GPUToolsCore:arm64e+0x13d6c)
2021-08-12 09:12:07.316964+1200 B52FloorManagement[526:176200]     #23 0x1950ea7b4 in <redacted>+0x29c (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64e+0x147b4)
2021-08-12 09:12:07.317103+1200 B52FloorManagement[526:176200]     #24 0x1951c97f0 in <redacted>+0x114 (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64e+0xf37f0)
2021-08-12 09:12:07.317252+1200 B52FloorManagement[526:176200]     #25 0x191ddca58 in <redacted>+0xac (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64e+0x7ea58)
2021-08-12 09:12:07.317406+1200 B52FloorManagement[526:176200]     #26 0x191e02270 in <redacted>+0x38 (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64e+0xa4270)
2021-08-12 09:12:07.317549+1200 B52FloorManagement[526:176200]     #27 0x191e015f0 in <redacted>+0x250 (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64e+0xa35f0)
2021-08-12 09:12:07.317747+1200 B52FloorManagement[526:176200]     #28 0x191dfb1d4 in <redacted>+0x940 (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64e+0x9d1d4)
2021-08-12 09:12:07.317903+1200 B52FloorManagement[526:176200]     #29 0x191dfa35c in CFRunLoopRunSpecific+0x254 (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64e+0x9c35c)
2021-08-12 09:12:07.318266+1200 B52FloorManagement[526:176200] 
Could please better understand what is problems with AddressSanitizer: allocator is out of memory?
 
 
Q