ios – Swift SDK Crash – is there any case that the after adding a new custom class I’ll see crashes because of object deallocation?


Thread 20 name:
Thread 20 Crashed:
0   libswiftCore.dylib              0x00000001b0e3d600 _swift_release_dealloc + 32 (HeapObject.cpp:714)
1   libswiftCore.dylib              0x00000001b0e3e43c bool swift::RefCounts<swift::RefCountBitsT<(swift::RefCountInlinedness)1> >::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 132 (RefCount.h:0)
2   AAASDK                          0x00000001081884e8 AAAServerHttpRequestsConfigurationContract.deinit + 32 (<compiler-generated>:0)
3   AAASDK                          0x00000001081884e8 AAAServerHttpRequestsConfigurationContract.__deallocating_deinit + 40 (AAAServerHttpRequestsConfigurationContract.swift:0)
4   libswiftCore.dylib              0x00000001b0e3d618 _swift_release_dealloc + 56 (HeapObject.cpp:714)
5   libswiftCore.dylib              0x00000001b0e3e43c bool swift::RefCounts<swift::RefCountBitsT<(swift::RefCountInlinedness)1> >::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 132 (RefCount.h:0)
6   AAASDK                          0x00000001080cb180 AAAClientConfigurationContract.deinit + 80 (<compiler-generated>:0)
7   AAASDK                          0x00000001080cb198 AAAClientConfigurationContract.__deallocating_deinit + 12 (AAAClientConfigurationContract.swift:0)
8   libswiftCore.dylib              0x00000001b0e3d618 _swift_release_dealloc + 56 (HeapObject.cpp:714)
9   libswiftCore.dylib              0x00000001b0e3e43c bool swift::RefCounts<swift::RefCountBitsT<(swift::RefCountInlinedness)1> >::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 132 (RefCount.h:0)
10  AAASDK                          0x000000010806dc44 SDKConfigurationContract.__deallocating_deinit + 32
11  libswiftCore.dylib              0x00000001b0e3d618 _swift_release_dealloc + 56 (HeapObject.cpp:714)
12  libswiftCore.dylib              0x00000001b0e3e43c bool swift::RefCounts<swift::RefCountBitsT<(swift::RefCountInlinedness)1> >::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 132 (RefCount.h:0)
13  AAASDK              0x0000000108113310 ConfigurationContract.deinit + 16 (<compiler-generated>:0)
14  AAASDK              0x0000000108113310 ConfigurationContract.__deallocating_deinit + 24 (ConfigurationContract.swift:0)
15  libswiftCore.dylib              0x00000001b0e3d618 _swift_release_dealloc + 56 (HeapObject.cpp:714)
16  libswiftCore.dylib              0x00000001b0e3e43c bool swift::RefCounts<swift::RefCountBitsT<(swift::RefCountInlinedness)1> >::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 132 (RefCount.h:0)
17  AAASDK              0x00000001080a55a0 closure #2 in AAABrain.getConfigurationForNewSession(backgroundTime:sessionInactivityTime:) + 196 (<compiler-generated>:0)
18  AAASDK              0x00000001080b1ddc closure #1 in AAABrain.getConfig(success:failure:) + 4 (AAABrain.swift:1111)
19  AAASDK              0x00000001080b1ddc partial apply for closure #1 in AAABrain.getConfig(success:failure:) + 24 (<compiler-generated>:0)
20  AAASDK              0x0000000108054960 closure #2 in AAAClient.getConfiguration(locale:success:failure:) + 244 (AAAClient.swift:72)
21  AAASDK              0x000000010812c994 specialized LocalConfiguration.getConfig(isOffline:success:failure:) + 2496 (LocalConfiguration.swift:49)
22  AAASDK              0x000000010819033c closure #1 in ConfigurationClient.logic() + 1540 (ConfigurationClient.swift:130)
23  AAASDK              0x0000000108064af0 closure #1 in UUIDFetcher.fetch(succuess:failure:) + 1376 (UUIDFetcher.swift:33)
24  AAASDK              0x000000010804b390 closure #1 in Request.execute() + 4760 (Request.swift:190)
25  AAASDK              0x000000010804c134 thunk for @escaping @callee_guaranteed @Sendable (@guaranteed Data?, @guaranteed NSURLResponse?, @guaranteed Error?) -> () + 148 (<compiler-generated>:0)
26  CFNetwork                       0x00000001b7d8109c __40-[__NSURLSessionLocal taskForClassInfo:]_block_invoke + 484 (LocalSession.mm:718)
27  CFNetwork                       0x00000001b7d90bd8 __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke_2 + 164 (LocalSessionTask.mm:544)
28  libdispatch.dylib               0x00000001be21e320 _dispatch_call_block_and_release + 32 (init.c:1518)
29  libdispatch.dylib               0x00000001be21feac _dispatch_client_callout + 20 (object.m:560)
30  libdispatch.dylib               0x00000001be227534 _dispatch_lane_serial_drain + 668 (queue.c:3885)
31  libdispatch.dylib               0x00000001be2280d8 _dispatch_lane_invoke + 436 (queue.c:3976)
32  libdispatch.dylib               0x00000001be232cdc _dispatch_workloop_worker_thread + 648 (queue.c:6507)
33  libsystem_pthread.dylib         0x0000000216b8dddc _pthread_wqthread + 288 (pthread.c:2618)
34  libsystem_pthread.dylib         0x0000000216b8db7c start_wqthread + 8 (:-1)

Any idea what am I missing here? started to crash after adding a new custom class AAAServerHttpRequestsConfigurationContract.
Can’t find any point in the code of what can cause this issue.
This code is triggered after the user open the app from background after more than One hour

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img