Skip to content

Crash in FeaturesViewModel #131

@Arideno

Description

@Arideno

Hi, we have found a crash in FeaturesViewModel.prepareFeaturesData. It looks like some data race. Here is the stack trace:

          Crashed: com.apple.NSURLSession-delegate
0  ***********                    0x6a94cc FeaturesViewModel.prepareFeaturesData(data:) + 4308423884
1  ***********                    0x6a80a8 closure #1 in FeaturesViewModel.fetchFeatures(apiUrl:remoteEval:payload:) + 4308418728
2  ***********                    0x6a95a0 partial apply for closure #2 in FeaturesViewModel.fetchFeatures(apiUrl:remoteEval:payload:) + 4308424096
3  ***********                    0x6a71e8 partial apply for closure #1 in FeaturesDataSource.fetchFeatures(apiUrl:fetchResult:) + 4308414952
4  ***********                    0x6a6bbc thunk for @escaping @callee_guaranteed (@guaranteed Data) -> () + 4308413372
5  ***********                    0x6d6d88 partial apply for thunk for @escaping @callee_unowned @convention(block) (@unowned NSData) -> () + 4308610440
6  ***********                    0x6d6b08 closure #1 in CoreNetworkClient.perform(url:method:params:successResult:errorResult:) + 4308609800
7  ***********                    0x3846f8 thunk for @escaping @callee_guaranteed @Sendable (@guaranteed Data?, @guaranteed NSURLResponse?, @guaranteed Error?) -> () + 4305127160
8  ***********                    0x61c7d0 __InstrumentDataTaskWithRequestCompletionHandler_block_invoke_2 + 4307847120
9  ***********                    0x61c7d0 __InstrumentDataTaskWithRequestCompletionHandler_block_invoke_2 + 4307847120
10 CFNetwork                      0xae634 __40-[__NSURLSessionLocal taskForClassInfo:]_block_invoke + 508
11 CFNetwork                      0xae3fc __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke_2 + 160
12 libdispatch.dylib              0x1aac _dispatch_call_block_and_release + 32
13 libdispatch.dylib              0x1b584 _dispatch_client_callout + 16
14 libdispatch.dylib              0xa2d0 _dispatch_lane_serial_drain + 740
15 libdispatch.dylib              0xade0 _dispatch_lane_invoke + 440
16 libdispatch.dylib              0x151dc _dispatch_root_queue_drain_deferred_wlh + 292
17 libdispatch.dylib              0x14a60 _dispatch_workloop_worker_thread + 540
18 libsystem_pthread.dylib        0xa0c _pthread_wqthread + 292
19 libsystem_pthread.dylib        0xaac start_wqthread + 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions