Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reactNativeReload and SIGNAL 11 #4014

Closed
1 of 2 tasks
angelica-snowit opened this issue Apr 14, 2023 · 11 comments
Closed
1 of 2 tasks

reactNativeReload and SIGNAL 11 #4014

angelica-snowit opened this issue Apr 14, 2023 · 11 comments

Comments

@angelica-snowit
Copy link

angelica-snowit commented Apr 14, 2023

A86D0C37-BF03-48BF-BEF1-775E0800A903 2023-04-14 16-30-17Z.startup.log
detox.log

What happened?

We have detox tests implemented on our apps.
But since the latest upgrades (RN, Xcode), after succesfully ending the first test of a file, when it's time to run again the beforeEach hook:

  beforeEach(async () => {
    await device.reloadReactNative();

tests start failing:

 ● Login › should enable biometric and log in with biometric

    The pending request #-1000 ("reactNativeReload") has been rejected due to the following error:

    The app has crashed, see the details below:

    Signal 11 was raised
    (
        0   Detox                               0x000000010f2706f5 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
        1   Detox                               0x000000010f2734fc __DTXHandleCrash + 460
        2   Detox                               0x000000010f273c3c __DTXHandleSignal + 59
        3   libsystem_platform.dylib            0x000000011d50fc1d _sigtramp + 29
        4   ???                                 0x0000000000bf61e8 0x0 + 12542440
        5   ???                                 0x00007f8f521777f0 0x0 + 140253534320624
    )

      13 |
      14 |   beforeEach(async () => {
    > 15 |     await device.reloadReactNative();
         |                  ^
      16 |   });

I'm building the app with NO_FLIPPER.

Can you help me understand what's going on?

What was the expected behaviour?

With previous version of RN/XCode, all the tests where running well, without any crash.

Was it tested on latest Detox?

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

Did your test throw out a timeout?

Help us reproduce this issue!

No response

In what environment did this happen?

Detox version: 20.6.0
React Native version: 0.71.6
Has Fabric (React Native's new rendering system) enabled: no
Node version: 18.13.0
Device model: Simulator, iPhone 14
iOS version: 16.4
macOS version: 13.2.1
Xcode version: 14.3
Test-runner (select one): jest

Detox logs

Attached

Device logs

Attached

@angelica-snowit
Copy link
Author

After some days, I can say it's await device.reloadReactNative(); causing the problem.
I've replaced it with launchApp, and every test just works fine (taking a lot more time).

@stale
Copy link

stale bot commented May 20, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back.

Thank you for your contributions!

For more information on bots in this repository, read this discussion.

@stale stale bot added the 🏚 stale label May 20, 2023
@angelica-snowit
Copy link
Author

Not stale. There's any one that can get an eye on this?

@stale stale bot removed the 🏚 stale label May 22, 2023
@d4vidi
Copy link
Collaborator

d4vidi commented May 29, 2023

@angelica-snowit could you try again with Detox v20.9.1, where issues with xcode 14.3 have been fixed?

@John251314
Copy link

I have the same issue with detox 20.9.1, Xcode 14.3.1

@angelica-snowit
Copy link
Author

I've done a quick test and it seems that the app now is just blank instead of crashing.

@angelica-snowit
Copy link
Author

    The pending request #-1000 ("reactNativeReload") has been rejected due to the following error:
    The app has crashed, see the details below:
    Signal 11 was raised

Same as before.

@stale
Copy link

stale bot commented Aug 7, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back.

Thank you for your contributions!

For more information on bots in this repository, read this discussion.

@stale stale bot added the 🏚 stale label Aug 7, 2023
@angelica-snowit
Copy link
Author

Still present.

@asafkorem asafkorem self-assigned this Aug 27, 2023
@asafkorem
Copy link
Contributor

Hey @angelica-snowit, could you please try the latest version of Detox and confirm if the issue persists?
Are you experiencing a crash or getting a blank page? Also, could you please attach the device + detox logs here?

@angelica-snowit
Copy link
Author

angelica-snowit commented Sep 27, 2023

It seems to be resolved with 20.12.1! Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants