Thomvis/BrightFutures

High crash rate after upgrade to Xcode 10

00FA9A opened this issue · 3 comments

Hi! We are seeing a high number of crash reports that appear to be stemming from BrightFutures. Started to occur after recent release built with Xcode 10.

#0. Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x1b31d6b00 objc_object::release() + 16
1  libswiftCore.dylib             0x109ba440c (anonymous namespace)::destroyGenericBox(swift::HeapObject*) + 40
2  libswiftCore.dylib             0x109ba440c (anonymous namespace)::destroyGenericBox(swift::HeapObject*) + 40
3  libswiftCore.dylib             0x109ba3844 _swift_release_dealloc + 28
4  BrightFutures                  0x108c7a08c $SxIegn_xytIegnr_lTRTA + 64
5  libswiftCore.dylib             0x109ba3844 _swift_release_dealloc + 28
6  libsystem_blocks.dylib         0x1b3a84a44 _Block_release + 152
7  libdispatch.dylib              0x1b3a28484 _dispatch_client_callout + 16
8  libdispatch.dylib              0x1b39d49ec _dispatch_main_queue_callback_4CF$VARIANT$mp + 1068
9  CoreFoundation                 0x1b3f7e1bc __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
10 CoreFoundation                 0x1b3f79084 __CFRunLoopRun + 1964
11 CoreFoundation                 0x1b3f785b8 CFRunLoopRunSpecific + 436
12 GraphicsServices               0x1b61ec584 GSEventRunModal + 100
13 UIKitCore                      0x1e0f70bc8 UIApplicationMain + 212
14 InstaShopper                   0x104762fb0 main (main.m:13)
15 libdyld.dylib                  0x1b3a38b94 start + 4

Was wondering if anybody else is seeing something similar? So far we have been unable to reproduce this crash.

Sorry to hear you're having trouble with BrightFutures. I have not seen similar issues myself, but perhaps other members of the community can provide additional data points.

Unfortunately, without additional input, I don't think I'll be able to fix the issue. Please do let me know if you find out more.

We do see very similar stack trace in our product too.

0 | libobjc.A.dylib | objc_object::release() + 16
1 | libswiftCore.dylib | (anonymous namespace)::destroyGenericBox(swift::HeapObject*) + 40
2 | libswiftCore.dylib | _swift_release_dealloc + 28
3 | BrightFutures | $SxIegn_xytIegnr_lTRTA + 64
4 | libswiftCore.dylib | _swift_release_dealloc + 28
5 | BrightFutures | $S13BrightFutures17InvalidationTokenCAA0cD4TypeAAWa + 36
6 | libswiftCore.dylib | _swift_release_dealloc + 28
7 | libsystem_blocks.dylib | _Block_release + 160
8 | libdispatch.dylib | _dispatch_client_callout + 16
9 | libdispatch.dylib | _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 968
10 | CoreFoundation | __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
11 | CoreFoundation | __CFRunLoopRun + 2012
12 | CoreFoundation | CFRunLoopRunSpecific + 436
13 | GraphicsServices | GSEventRunModal + 100
14 | UIKit | UIApplicationMain + 208
15 | OurProductName | AppDelegate.swift line 17main
16 | libdyld.dylib | start + 4

We just moved to Xcode 10 and version is still in beta, so it is hard to predict how impactful it will be.

@nikita-leonov thanks for the report. At this time I don't see any obvious reason why BF would be crashing. Did you find out anything in the meantime? There's also a chance this is a Swift bug, so it might make sense filing it at https://bugs.swift.org.