Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

memory woes - nsarchiver #47

Open
johndpope opened this issue Nov 26, 2017 · 1 comment
Open

memory woes - nsarchiver #47

johndpope opened this issue Nov 26, 2017 · 1 comment

Comments

@johndpope
Copy link

need to fix this

related
remirobert/Dotzu-Objective-c#4

screen shot 2017-11-26 at 10 42 42 am


◽️ [2017-11-26 15:42:20] SFQuery.m.+[SFQuery q:nextRecordsUrl:sObject:cache:callback:][26] : query SELECT Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastViewedDate,LastReferencedDate,FieldStorm__Description__c,FieldStorm__Hide_Survey_Name__c,FieldStorm__Industry__c,FieldStorm__Submit_Response__c,FieldStorm__Survey_Container_CSS__c,FieldStorm__Survey_Header__c,FieldStorm__Thank_You_Text__c,FieldStorm__Title__c,FieldStorm__URL__c,FieldStorm__thankYouLink__c,FieldStorm__thankYouText__c,IsEnabled__c,Customer_Type__c,IsRequired__c FROM FieldStorm__Survey__c ORDER BY Id DESC
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=6594560) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=6606848) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=6615040) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=6627328) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=6635520) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=6647808) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=6656000) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=6668288) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=6676480) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=6688768) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=6696960) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=6709248) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=6717440) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=6725632) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=5382144) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=5382144) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
◽️ [2017-11-26 15:42:20] SFDataEnvironment+SQLSync.m.-[SFDataEnvironment(sync) fetchCountBySObject:queueSoql:]_block_invoke[551] : result:{
    done = 1;
    records =     (
    );
    totalSize = 5;
}
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=3792896) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=3796992) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=4022272) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=4030464) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=4263936) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=4272128) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=4722688) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
FieldStorm(19061,0xb030a000) malloc: *** mach_vm_map(size=3780608) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
2017-11-26 10:42:20.220 FieldStorm[19061:1469979] *** Terminating app due to uncaught exception 'NSMallocException', reason: '*** -[NSConcreteMutableData appendBytes:length:]: unable to allocate memory for length (3777313)'
*** First throw call stack:
(
	0   CoreFoundation                      0x0756b494 __exceptionPreprocess + 180
	1   libobjc.A.dylib                     0x06823e02 objc_exception_throw + 50
	2   CoreFoundation                      0x0756b3bd +[NSException raise:format:] + 141
	3   Foundation                          0x02ab39ae _NSMutableDataGrowBytes + 764
	4   Foundation                          0x02aac0b4 -[NSConcreteMutableData appendBytes:length:] + 434
	5   CoreFoundation                      0x07462d2f CFDataAppendBytes + 175
	6   CoreFoundation                      0x0745ba77 writeBytes + 231
	7   CoreFoundation                      0x0745a32b bufferWrite + 91
	8   CoreFoundation                      0x0745b1c4 _appendString + 580
	9   CoreFoundation                      0x0745a46b _appendObject + 75
	10  CoreFoundation                      0x07510821 __CFBinaryPlistWriteOrPresize + 561
	11  CoreFoundation                      0x074cbe48 __CFBinaryPlistWriteToStreamWithOptions + 40
	12  Foundation                          0x02ac36c5 -[NSKeyedArchiver finishEncoding] + 640
	13  Foundation                          0x02ac0f8b +[NSKeyedArchiver archivedDataWithRootObject:] + 229
	14  Dotzu                               0x05e5911f _T05Dotzu12StoreManagerC11archiveLogs33_6967D8E67826B10122FB2AE77CBE0B9ALLySayxG4logs_tF + 159
	15  Dotzu                               0x05e593ba _T05Dotzu12StoreManagerC3addyx3log_tF + 138
	16  Dotzu                               0x05e1d662 _T05Dotzu6LoggerC9handleLog33_136BBB0DD6D6F1C0603D146F86879E0ALLySayypGd_AA0D5LevelO5levelSSSg4fileAJ8functionSiSg4linetFZyycfU0_ + 946
	17  Dotzu                               0x05e1dceb _T05Dotzu6LoggerC9handleLog33_136BBB0DD6D6F1C0603D146F86879E0ALLySayypGd_AA0D5LevelO5levelSSSg4fileAJ8functionSiSg4linetFZyycfU0_TA + 171
	18  Dotzu                               0x05dd2938 _T0Ix_IyB_TR + 40
	19  libdispatch.dylib                   0x084539e3 _dispatch_call_block_and_release + 15
	20  libdispatch.dylib                   0x084716ed _dispatch_client_callout + 14
	21  libdispatch.dylib                   0x0845932e _dispatch_queue_drain + 1065
	22  libdispatch.dylib                   0x08458c79 _dispatch_queue_invoke + 563
	23  libdispatch.dylib                   0x0845a722 _dispatch_root_queue_drain + 442
	24  libdispatch.dylib                   0x0845a561 _dispatch_worker_thread3 + 108
	25  libsystem_pthread.dylib             0x08799fdc _pthread_wqthread + 1356
	26  libsystem_pthread.dylib             0x08799a6a start_wqthread + 34
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 
@johndpope
Copy link
Author

@remirobert - this class successfully removes NSKeyedUnarchiver for simply adding logs. crash logs are persisted.

https://github.com/liman123/DebugMan/blob/master/Sources/Dotzu/StoreManager.swift

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant