Crash on Publishers.ReceiveOn.Inner.cancel()

We are experiencing crash on Combine on iOS 16

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000021dc6408c
Termination Reason: SIGNAL 5 Trace/BPT trap: 5
Terminating Process: exc handler [11489]

Triggered by Thread:  0


Thread 0 name:
Thread 0 Crashed:
0   libsystem_platform.dylib      	0x000000021dc6408c _os_unfair_lock_recursive_abort + 36 (lock.c:508)
1   libsystem_platform.dylib      	0x000000021dc5e898 _os_unfair_lock_lock_slow + 280 (lock.c:567)
2   Combine                       	0x00000001d8298174 Publishers.ReceiveOn.Inner.cancel() + 28 (Locking.swift:35)
3   Combine                       	0x00000001d8297c98 protocol witness for Cancellable.cancel() in conformance Publishers.ReceiveOn<A, B>.Inner<A1> + 24 (<compiler-generated>:0)
4   Combine                       	0x00000001d828ffc0 Subscribers.Sink.cancel() + 628 (Sink.swift:161)
5   Combine                       	0x00000001d82ca8ec protocol witness for Cancellable.cancel() in conformance Subscribers.Sink<A, B> + 24 (<compiler-generated>:0)
6   Combine                       	0x00000001d82945fc AnyCancellable.cancel() + 212 (Subscription.swift:107)
7   Combine                       	0x00000001d828e250 AnyCancellable.__deallocating_deinit + 16 (Subscription.swift:92)
8   libswiftCore.dylib            	0x00000001c9c24134 _swift_release_dealloc + 56 (HeapObject.cpp:706)
9   libswiftCore.dylib            	0x00000001c9c15294 swift_arrayDestroy + 124 (Array.cpp:208)
10  libswiftCore.dylib            	0x00000001c9a38140 _SetStorage.deinit + 328 (UnsafePointer.swift:954)
11  libswiftCore.dylib            	0x00000001c9a38164 _SetStorage.__deallocating_deinit + 16 (SetStorage.swift:0)
12  libswiftCore.dylib            	0x00000001c9c24134 _swift_release_dealloc + 56 (HeapObject.cpp:706)
13  AppNameCore                   	0x00000001033ae3ec MessagesThreadPresenterImpl.deinit + 396 (<compiler-generated>:0)
14  AppNameCore                   	0x00000001033ae43c MessagesThreadPresenterImpl.__deallocating_deinit + 12 (MessagesThreadPresenter.swift:0)
15  libswiftCore.dylib            	0x00000001c9c24134 _swift_release_dealloc + 56 (HeapObject.cpp:706)
16  libswiftCore.dylib            	0x00000001c9c25120 bool swift::HeapObjectSideTableEntry::decrementStrong<(swift::PerformDeinit)1>(unsigned int) + 292 (RefCount.h:1032)
17  AppNameCore                   	0x00000001033b7c44 0x102f64000 + 4537412
18  libswiftCore.dylib            	0x00000001c9c24134 _swift_release_dealloc + 56 (HeapObject.cpp:706)
19  Combine                       	0x00000001d82c0b48 Publishers.FlatMap.Outer.deinit + 232 (<compiler-generated>:0)
20  Combine                       	0x00000001d82b8244 Publishers.FlatMap.Outer.__deallocating_deinit + 16 (FlatMap.swift:0)
21  libswiftCore.dylib            	0x00000001c9c24134 _swift_release_dealloc + 56 (HeapObject.cpp:706)
22  Combine                       	0x00000001d829366c assignWithTake for SubscriptionStatus + 68 (<compiler-generated>:0)
23  Combine                       	0x00000001d82906ec outlined assign with take of SubscriptionStatus + 76 (<compiler-generated>:0)
24  Combine                       	0x00000001d82dd138 closure #1 in Publishers.ReceiveOn.Inner.receive(completion:) + 144 (ReceiveOn.swift:201)
25  Foundation                    	0x00000001c9fb312c $sIegh_IeyBh_TR + 36 (<compiler-generated>:0)
26  CoreFoundation                	0x00000001cfab6514 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28 (CFRunLoop.c:1805)
27  CoreFoundation                	0x00000001cfb1ed6c __CFRunLoopDoBlocks + 368 (CFRunLoop.c:1847)
28  CoreFoundation                	0x00000001cfaef1cc __CFRunLoopRun + 2452 (CFRunLoop.c:3201)
29  CoreFoundation                	0x00000001cfaf3eb0 CFRunLoopRunSpecific + 612 (CFRunLoop.c:3418)
30  GraphicsServices              	0x0000000209ce9368 GSEventRunModal + 164 (GSEvent.c:2196)
31  UIKitCore                     	0x00000001d1fe9668 -[UIApplication _run] + 888 (UIApplication.m:3758)
32  UIKitCore                     	0x00000001d1fe92cc UIApplicationMain + 340 (UIApplication.m:5348)
33  AppName                        	0x000000010009190c main + 180 (main.swift:11)
34  dyld                          	0x00000001ee3ec960 start + 2528 (dyldMain.cpp:1170)

Post not yet marked as solved Up vote post of patrikbelis Down vote post of patrikbelis
619 views