Support Topics Documentation Slack YouTube Blog

Probelm in ios SDK

SIGSEGV: count > gnedInt: > length > ncyGroupingSeparator: > rangeOfString:options:range:locale:
libobjc.A 0x199189354 objc_msgSend
libswiftCore 0x1af761ee4 Dictionary.subscript.setter
Backendless 0x105b4e330 StoredObjects.rememberObjectId
Backendless 0x105ae5a0c PersistenceHelper.dictionaryToEntity
Backendless 0x105a2f148 DataStoreFactory.find
Backendless 0x105af0be0 PersistenceServiceUtils.find
Backendless 0x1059f8360 BackendlessRequestManager.makeRequest
Backendless 0x1059f8488 @callee_guaranteed
CFNetwork 0x199ee1e94 CFNetServiceBrowserSearchForServices
CFNetwork 0x199ef2960 _CFHTTPMessageSetResponseProxyURL
Foundation 0x19a45d6e4 NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK
Foundation 0x19a35d5a4 -[NSBlockOperation main]
Foundation 0x19a45f99c NSOPERATION_IS_INVOKING_MAIN
Foundation 0x19a35d260 -[NSOperation start]
Foundation 0x19a460394 NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION
Foundation 0x19a45fe60 __NSOQSchedule_f
libdispatch 0x19927034c _dispatch_block_async_invoke2
libdispatch 0x199262e74 _dispatch_client_callout
libdispatch 0x199265fc4 _dispatch_continuation_pop
libdispatch 0x199265708 _dispatch_async_redirect_invoke
libdispatch 0x199272b20 _dispatch_root_queue_drain
libdispatch 0x1992732e4 _dispatch_worker_thread2
libsystem_pthread 0x19948f7ac _pthread_wqthread

@Vinod_Sahu , how about adding a few details describing what you are doing, what result you get, etc?

Hi mark,

Actually this provided my crashlytics sdk and not getting much information.

Could you let me know what can be possible problem ?

I have no idea. The information you shared does not provide any useful details.

Ok i am finding usefull information that help you to find out problem

OS Version: tvOS 14.4 (18K802)
Report Version: 104

Exception Type: Unknown (SIGABRT)
Crashed Thread: 0

Application Specific Information:
Signal 6, Code 0

Thread 0 Crashed:
0 libsystem_kernel.dylib 0x31970284c __pthread_kill
1 libsystem_pthread.dylib 0x319832c2c pthread_kill
2 libsystem_c.dylib 0x3195928a8 abort
3 libclang_rt.asan_tvos_dynamic.dylib0x102b3e8f0 __sanitizer::Abort
4 libclang_rt.asan_tvos_dynamic.dylib0x102b3e2f4 __sanitizer::Die
5 libclang_rt.asan_tvos_dynamic.dylib0x102b2eb60 __sanitizer::ReportInternalAllocatorOutOfMemory
6 libclang_rt.asan_tvos_dynamic.dylib0x102b2eb28 __sanitizer::InternalAlloc
7 libclang_rt.asan_tvos_dynamic.dylib0x102b41d3c __sanitizer::SymbolizedStack::New
8 libclang_rt.asan_tvos_dynamic.dylib0x102b42784 __sanitizer::Symbolizer::SymbolizePC
9 libclang_rt.asan_tvos_dynamic.dylib0x102b40f64 __sanitizer::StackTrace::Print
10 libclang_rt.asan_tvos_dynamic.dylib0x102af32d4 __asan::ErrorOutOfMemory::Print
11 libclang_rt.asan_tvos_dynamic.dylib0x102b27c2c __asan::ScopedInErrorReport::~ScopedInErrorReport
12 libclang_rt.asan_tvos_dynamic.dylib0x102b26a1c __asan::ReportOutOfMemory
13 libclang_rt.asan_tvos_dynamic.dylib0x102aeb2fc __asan::Allocator::Allocate
14 libclang_rt.asan_tvos_dynamic.dylib0x102aeab90 __asan::asan_malloc
15 libclang_rt.asan_tvos_dynamic.dylib0x102b21e28 __sanitizer_mz_malloc
16 libsystem_malloc.dylib 0x3197b3b2c _malloc_zone_malloc
17 libswiftCore.dylib 0x34602a838 swift_slowAlloc
18 libswiftCore.dylib 0x34602a9fc swift_allocObject
19 libswiftCore.dylib 0x345ef2ac8 _allocateStringStorage
20 libswiftCore.dylib 0x345fc7b9c __StringStorage.create
21 libswiftCore.dylib 0x345ee531c _StringGuts.prepareForAppendInPlace
22 libswiftCore.dylib 0x345ee5530 _StringGuts.append
23 libswiftCore.dylib 0x345e88704 _StringGuts.append
24 libswiftCore.dylib 0x345e88598 String.write
25 libswiftCore.dylib 0x345d70d88 DefaultStringInterpolation.appendInterpolation
26 Backendless 0x101a8ac14 BackendlessRequestManager.init
27 Backendless 0x101a8a290 BackendlessRequestManager.__allocating_init
28 Backendless 0x101da19b4 RTClient.connectSocket
29 Backendless 0x101db2478 RTClient.tryToReconnectSocket
30 Backendless 0x101a6e53c @callee_guaranteed
31 libclang_rt.asan_tvos_dynamic.dylib0x102b20a90 __wrap_dispatch_after_block_invoke
32 libdispatch.dylib 0x3193d6e74 _dispatch_client_callout
33 libdispatch.dylib 0x3193d9fc4 _dispatch_continuation_pop
34 libdispatch.dylib 0x3193eac74 _dispatch_source_invoke
35 libdispatch.dylib 0x3193e3b58 _dispatch_main_queue_callback_4CF
36 CoreFoundation 0x319e7c9cc CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
37 CoreFoundation 0x319e76e74 __CFRunLoopRun
38 CoreFoundation 0x319e75f8c CFRunLoopRunSpecific
39 GraphicsServices 0x31f560594 GSEventRunModal
40 UIKitCore 0x372df286c -[UIApplication _run]
41 UIKitCore 0x372df7dc8 UIApplicationMain
42 OneDenison 0x200d1a3c8 main
43 libdyld.dylib 0x31945a5c8 start

Thread 0 Crashed:
0 libsystem_kernel.dylib 0x31970284c __pthread_kill
1 libsystem_pthread.dylib 0x319832c2c pthread_kill
2 libsystem_c.dylib 0x3195928a8 abort
3 libclang_rt.asan_tvos_dynamic.dylib0x102b3e8f0 __sanitizer::Abort
4 libclang_rt.asan_tvos_dynamic.dylib0x102b3e2f4 __sanitizer::Die
5 libclang_rt.asan_tvos_dynamic.dylib0x102b2eb60 __sanitizer::ReportInternalAllocatorOutOfMemory
6 libclang_rt.asan_tvos_dynamic.dylib0x102b2eb28 __sanitizer::InternalAlloc
7 libclang_rt.asan_tvos_dynamic.dylib0x102b41d3c __sanitizer::SymbolizedStack::New
8 libclang_rt.asan_tvos_dynamic.dylib0x102b42784 __sanitizer::Symbolizer::SymbolizePC
9 libclang_rt.asan_tvos_dynamic.dylib0x102b40f64 __sanitizer::StackTrace::Print
10 libclang_rt.asan_tvos_dynamic.dylib0x102af32d4 __asan::ErrorOutOfMemory::Print
11 libclang_rt.asan_tvos_dynamic.dylib0x102b27c2c __asan::ScopedInErrorReport::~ScopedInErrorReport
12 libclang_rt.asan_tvos_dynamic.dylib0x102b26a1c __asan::ReportOutOfMemory
13 libclang_rt.asan_tvos_dynamic.dylib0x102aeb2fc __asan::Allocator::Allocate
14 libclang_rt.asan_tvos_dynamic.dylib0x102aeab90 __asan::asan_malloc
15 libclang_rt.asan_tvos_dynamic.dylib0x102b21e28 __sanitizer_mz_malloc
16 libsystem_malloc.dylib 0x3197b3b2c _malloc_zone_malloc
17 libswiftCore.dylib 0x34602a838 swift_slowAlloc
18 libswiftCore.dylib 0x34602a9fc swift_allocObject
19 libswiftCore.dylib 0x345ef2ac8 _allocateStringStorage
20 libswiftCore.dylib 0x345fc7b9c __StringStorage.create
21 libswiftCore.dylib 0x345ee531c _StringGuts.prepareForAppendInPlace
22 libswiftCore.dylib 0x345ee5530 _StringGuts.append
23 libswiftCore.dylib 0x345e88704 _StringGuts.append
24 libswiftCore.dylib 0x345e88598 String.write
25 libswiftCore.dylib 0x345d70d88 DefaultStringInterpolation.appendInterpolation
26 Backendless 0x101a8ac14 BackendlessRequestManager.init
27 Backendless 0x101a8a290 BackendlessRequestManager.__allocating_init
28 Backendless 0x101da19b4 RTClient.connectSocket
29 Backendless 0x101db2478 RTClient.tryToReconnectSocket
30 Backendless 0x101a6e53c @callee_guaranteed
31 libclang_rt.asan_tvos_dynamic.dylib0x102b20a90 __wrap_dispatch_after_block_invoke
32 libdispatch.dylib 0x3193d6e74 _dispatch_client_callout
33 libdispatch.dylib 0x3193d9fc4 _dispatch_continuation_pop
34 libdispatch.dylib 0x3193eac74 _dispatch_source_invoke
35 libdispatch.dylib 0x3193e3b58 _dispatch_main_queue_callback_4CF
36 CoreFoundation 0x319e7c9cc CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
37 CoreFoundation 0x319e76e74 __CFRunLoopRun
38 CoreFoundation 0x319e75f8c CFRunLoopRunSpecific
39 GraphicsServices 0x31f560594 GSEventRunModal
40 UIKitCore 0x372df286c -[UIApplication _run]
41 UIKitCore 0x372df7dc8 UIApplicationMain
42 OneDenison 0x200d1a3c8 main
43 libdyld.dylib 0x31945a5c8 start

Hello @Vinod_Sahu

Unfortunately, according to the log, we cannot determine what exactly leads to the crash.
Could you please specify what version of the iOS SDK you use and would be great if you provide us with a code snippet that causes the problem.

Regards, Vlad

Hi,

Using 6.2.10 Backendless Version. I also getting exactly why app crashing. My crash report only providing that.

OS Version: tvOS 14.4 (18K802)

Hello @Vinod_Sahu ,

Unfortunately we cannot reproduce the issue without knowing the error description and steps we can follow to reproduce it.
According to the log you’ve provided, you’re using RT in your project. After the RT is connected some request brokes your app.
Unfortunately this log doesn’t contain any information about the request, that’s why @vladimir-upirov asked you to provide a code snippet and steps that can help us to reproduce this crash.

Regards,
Olha

Hi Olha,

Here is my code. Could you please check there is memory leak. Because app crashing on production only and not getting exact error

func getData() {

    let queryBuilder = DataQueryBuilder()
    queryBuilder.pageSize = 100
    
    dataStore.find(queryBuilder: queryBuilder, responseHandler: { [weak self] foundTenants in
        
        if foundTenants.capacity > 0 {
            
            if let models = foundTenants as? [Event] {
                
                self?.allEvents = models
            }
        }
    
    }, errorHandler: {  fault in
        
        print("Error : \(#function)-\(#line)",fault.description)
    })
}

func getEvent(objectId:String,response:@escaping (Event?)->Void) {
    
    let queryBuilder = DataQueryBuilder()
    queryBuilder.whereClause = "objectId = '\(objectId)' OR eventid = '\(objectId)'"
    //queryBuilder.setWhereClause(whereClause: "objectId = '\(objectId)' OR eventid = '\(objectId)'")
    
    dataStore.find(queryBuilder: queryBuilder, responseHandler: { foundTenants in
        
        //print("Total Event in ----------------------",foundTenants.count,"objectId = '\(objectId)'")
        response((foundTenants as? [Event])?.first)
    
    }, errorHandler: {  fault in
        
        response(nil)
        print("Error : \(#function)-\(#line)",fault.description)
    })
}

Hello @Vinod_Sahu,

I’ve created an internal ticket BKNDLSS-24320 to investigate this issue.

Regards,
Olha

Also please provide your application id.

Regards,
Olha

App ID : CEE6C01E-DD2D-47F5-BE7A-2EF06B5AA69D

Unfortunately I cannot reproduce this issue.
The getData() and getEvent() methods work properly and return data as expected. It’s impossible to figure out the problem without knowing details of your application.
Also it’s weird that it’s crashing only in the production mode but works fine in the development one (as I understood)

Regards,
Olha