wix / Detox

Gray box end-to-end testing and automation framework for mobile apps
https://wix.github.io/Detox/
MIT License
11.15k stars 1.92k forks source link

Signal 11 was raised #2802

Closed walterholohan closed 2 years ago

walterholohan commented 3 years ago

Description

I am getting the following Signal 11 crash intermittently when running tests on iOS Simulator

DetoxRuntimeError: The pending request #321 ("invoke") has been rejected due to the following error:

    The app has crashed, see the details below:

    Signal 11 was raised
    (
        0   Detox                               0x0000000104ad3335 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
        1   Detox                               0x0000000104ad6540 __DTXHandleCrash + 464
        2   Detox                               0x0000000104ad6c85 __DTXHandleSignal + 59
        3   libsystem_platform.dylib            0x00007fff5e733d7d _sigtramp + 29
        4   ???                                 0x0000000000000001 0x0 + 1
        5   DetoxSync                           0x00000001063d274f -[_DTXTimerTrampoline fire:] + 188
        6   DetoxSync                           0x00000001063bab10 _DTXCFTimerTrampoline + 74
        7   CoreFoundation                      0x00007fff2038cc47 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
        8   CoreFoundation                      0x00007fff2038c71a __CFRunLoopDoTimer + 926
        9   CoreFoundation                      0x00007fff2038bccd __CFRunLoopDoTimers + 265
        10  CoreFoundation                      0x00007fff2038634e __CFRunLoopRun + 1949
        11  CoreFoundation                      0x00007fff203856c6 CFRunLoopRunSpecific + 567
        12  MinoApp                             0x0000000103a4ee9a +[RCTCxxBridge runRunLoop] + 274
        13  DetoxSync                           0x00000001063c300e swz_runRunLoopThread + 291
        14  Foundation                          0x00007fff20852e68 __NSThread__start__ + 1042
        15  libsystem_pthread.dylib             0x00007fff5e741954 _pthread_start + 224
        16  libsystem_pthread.dylib             0x00007fff5e73d4a7 thread_start + 15
    )

Environment (please complete the following information):

ball-hayden commented 1 year ago

@Janaka-Steph please follow https://github.com/wix/Detox/issues/3207

LucidityDesign commented 1 year ago

I mocked all files, that import suspicious modules and so far both react-native-tab-view and react-native-reanimated cause crashes. @see https://github.com/wix/Detox/issues/3207#issuecomment-1618326655