Detox: Signal 11 was raised

Description

All tests fails very fast with Signal 11 was raised. Sometimes it works, but as soon as some test need reinstall app, it breaks.

  • I have tested this issue on the latest Detox release and it still reproduces

Reproduction

  1. Build iOS .app
  2. Start tests
  3. All tests will fail very fast

Environment (please complete the following information):

  • Detox: 18.7.1
  • React Native: 0.63.4
  • Node: 14.15.3
  • Device: Simulator iPhone 11 (13.7)
  • Xcode: 11.7
  • iOS: 13.7
  • macOS: Cataline 10.15.7

Logs

thrown: "Signal 11 was raised
    (
        0   Detox                               0x000000010a915eb5 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
        1   Detox                               0x000000010a9190c0 __DTXHandleCrash + 464
        2   Detox                               0x000000010a919805 __DTXHandleSignal + 59
        3   libsystem_platform.dylib            0x00007fff522f95fd _sigtramp + 29
        4   ???                                 0x000000010b6a8058 0x0 + 4486496344
        5   libobjc.A.dylib                     0x00007fff512b7a16 objc_object::sidetable_release(bool) + 174
        6   libobjc.A.dylib                     0x00007fff512b3f5a _object_remove_assocations + 240
        7   libobjc.A.dylib                     0x00007fff512b1474 objc_destructInstance + 79
        8   libobjc.A.dylib                     0x00007fff512b7296 -[NSObject dealloc] + 21
        9   libobjc.A.dylib                     0x00007fff512b7a16 objc_object::sidetable_release(bool) + 174
        10  libobjc.A.dylib                     0x00007fff512b9077 AutoreleasePoolPage::releaseUntil(objc_object**) + 147
        11  libobjc.A.dylib                     0x00007fff512b8f96 objc_autoreleasePoolPop + 199
        12  FrontBoardServices                  0x00007fff36d0e75f -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 228
        13  FrontBoardServices                  0x00007fff36d29a52 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke + 355
        14  libdispatch.dylib                   0x00007fff520dc8cb _dispatch_client_callout + 8
        15  libdispatch.dylib                   0x00007fff520df292 _dispatch_block_invoke_direct + 285
        16  FrontBoardServices                  0x00007fff36d4f6e9 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
        17  FrontBoardServices                  0x00007fff36d4f3d7 -[FBSSerialQueue _queue_performNextIfPossible] + 441
        18  FrontBoardServices                  0x00007fff36d4f8e6 -[FBSSerialQueue _performNextFromRunLoopSource] + 22
        19  CoreFoundation                      0x00007fff23da1c91 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
        20  CoreFoundation                      0x00007fff23da1bbc __CFRunLoopDoSource0 + 76
        21  CoreFoundation                      0x00007fff23da1394 __CFRunLoopDoSources0 + 180
        22  CoreFoundation                      0x00007fff23d9bf8e __CFRunLoopRun + 974
        23  CoreFoundation                      0x00007fff23d9b8a4 CFRunLoopRunSpecific + 404
        24  GraphicsServices                    0x00007fff38c05bbe GSEventRunModal + 139
        25  DetoxSync                           0x000000010b5ac34d __detox_sync_UIApplication_run + 362
        26  UIKitCore                           0x00007fff49372964 UIApplicationMain + 1605
        27  APP_NAME                                0x00000001088cc800 main + 112
        28  libdyld.dylib                       0x00007fff5211c1fd start + 1
        29  ???                                 0x000000000000000a 0x0 + 10
    )"

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15

Most upvoted comments

I have a similar issue with Xcode 12.4, Big Sur 11.2.3, Detox 18.9.0, RN 0.64, iPhone 11 Simulator with iOS 14.4:

App crashed in test '...', here are the crash details:
Signal 11 was raised...

Works perfectly with Detox 17.14.9.

EDIT I tracked it down to the @react-native-firebase/perf package. Removing it solved the crashes for me.

somewhat related: https://github.com/wix/Detox/issues/2627 https://github.com/wix/Detox/issues/2641 https://github.com/wix/DetoxSync/issues/5 https://github.com/firebase/firebase-ios-sdk/issues/7277

All, we are currently on a break and a bit short-staffed at the moment, in general. We hope to get on top of this within 1-2 weeks. Here are similar discussions that could be relevant, in the meantime:

@d4vidi Didn’t worked 😦

I provide more context in #2641 with a full crash log