File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
platform/swift/source/reports Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -128,12 +128,17 @@ static uint64_t count_frames(NSDictionary *rootFrame) {
128128static uint32_t crashed_thread_index (NSArray *stacks) {
129129 for (uint32_t index = 0 ; index < stacks.count ; index++) {
130130 if ([number_for_key (stacks[index], @" threadAttributed" ) boolValue ]) {
131- return index;
131+ if (count_frames (thread_root_frame (stacks[index])) > 0 ) {
132+ // match only if thread contains frames (FB18302500)
133+ return index;
134+ }
135+ break ;
132136 }
133137 }
134138 for (uint32_t index = 0 ; index < stacks.count ; index++) {
135139 if (count_frames (thread_root_frame (stacks[index])) > 0 ) {
136- return index; // grab first thread with frames if none attributed
140+ // grab first thread with frames if none attributed or attributed to empty
141+ return index;
137142 }
138143 }
139144
You can’t perform that action at this time.
0 commit comments